* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc5;
    --accent-green: #10b981;
    --gradient-green: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --border: rgba(255, 255, 255, 0.1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-green: #059669;
    --gradient-green: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border: rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* Theme Toggle - FIXED */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;

    width: 50px;
    height: 50px;

    border: 2px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 2000;

    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.theme-toggle i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.95);
}

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

.nav-logo h2 {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gradient-green);
    color: white;
    border-color: var(--accent-green);
}

/* Buttons - FIXED */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    padding: 140px 2rem 100px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    height: 500px;
    position: relative;
}

.image-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent 0%, var(--bg-primary) 100%);
}

.image-text {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 2;
    color: white;
}

.image-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Sections */
section {
    padding: 120px 0;
}

section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    height: 450px;
}

.about-image .image-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h1, .about-text h2, .about-text h3 {
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.about-text strong {
    color: var(--accent-green);
}

/* Repos */
.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.repo-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}

.repo-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow);
}

.repo-card i {
    font-size: 4rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.repo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.github-link {
    text-align: center;
}

/* Blog */
.blog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-image {
    height: 400px;
}

.blog-image .image-container {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-contact h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-green);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
        .about-content,
    .blog-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* ===== MOBILE ===== */

.nav-menu {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    z-index: 1501;
    color: var(--text-primary);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {

    /* NAVBAR */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 2rem;
        
        transition: right 0.3s ease;
        z-index: 1500;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    /* HERO */
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 1.5rem 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .hero-image {
        height: 300px;
    }

    /* ABOUT */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        height: 300px;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px;
    }

    /* BLOG */
    .blog-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .blog-image {
        height: 250px;
    }

    /* BUTTONS */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* FOOTER */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 2rem;
        
        transition: right 0.3s ease;
        z-index: 1500;
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }
}

