/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.home-tab {
    background: rgba(52, 152, 219, 0.6);
    color: white;
}

.nav-link.about-tab {
    background: rgba(231, 76, 60, 0.6);
    color: white;
}

.nav-link.writings-tab {
    background: rgba(243, 156, 18, 0.6);
    color: white;
}

.nav-link.projects-tab {
    background: rgba(39, 174, 96, 0.6);
    color: white;
}

.nav-link.contact-tab {
    background: rgba(155, 89, 182, 0.6);
    color: white;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-link.home-tab:hover {
    background: #3498db;
}

.nav-link.about-tab:hover {
    background: #e74c3c;
}

.nav-link.writings-tab:hover {
    background: #f39c12;
}

.nav-link.projects-tab:hover {
    background: #27ae60;
}

.nav-link.contact-tab:hover {
    background: #9b59b6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line-1 {
    color: #e74c3c;
    display: block;
}

.title-line-2 {
    color: #3498db;
    display: block;
}

.title-line-3 {
    color: #27ae60;
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 30%;
    animation-delay: 1.5s;
}

.element-3 {
    bottom: 30%;
    left: 40%;
    animation-delay: 3s;
}

.element-4 {
    top: 40%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.personality-traits {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.trait {
    background: #ecf0f1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

/* Writings Section */
.writings {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.featured-article {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.featured-article h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.featured-article p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.article-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.article-card p {
    color: #666;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.project-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.project-card {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-card.warehouse {
    border: 3px solid #3498db;
}

.project-card.calculator {
    border: 3px solid #e74c3c;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.project-card.warehouse .project-icon {
    color: #3498db;
}

.project-card.calculator .project-icon {
    color: #e74c3c;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.contact .section-title {
    color: white;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn.email {
    background: #3498db;
    color: white;
}

.contact-btn.linkedin {
    background: #0077b5;
    color: white;
}

.contact-btn.twitter {
    background: #1da1f2;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar{
        height: 80px;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: row;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 10px;
        padding-bottom: 0px;
        padding-top: 0px;
        gap: 10px;
        justify-content: space-around;
        overflow: auto;
        scrollbar-width: none;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .project-icons {
        gap: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .navbar{
        height: 80px;
    }
    
    .hero{
        height: 170vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .bar{
        width: 20px;
        height: 3px;
        margin: 2px;
    }
    
    .project-card {
        width: 150px;
        height: 150px;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
    }

    .navbar{
        height: 60px;
    }
    
    .nav-logo h3 {
    font-size: 1.2rem;
    }

    .nav-menu{
        top: 60px;
    }

    .about-stats{
        flex-direction: column;
    }
}

