:root {
    --primary-color: #2563eb;
    --text-color: #1e293b;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.25);
    --nav-bg: rgba(255, 255, 255, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition: all 0.3s ease;
    --glass-blur: blur(12px);
}

/* [data-theme="dark"] {
    --primary-color: #60a5fa;
    --text-color: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: rgba(30, 41, 59, 0.4);
    --nav-bg: rgba(15, 23, 42, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before, .bg-animation::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: moveBlob 15s infinite alternate;
}

.bg-animation::before {
    top: -100px;
    left: -100px;
}

.bg-animation::after {
    bottom: -100px;
    right: -100px;
    animation-direction: alternate-reverse;
    background: #8b5cf6; /* Secondary accent color */
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glass Mixin */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 50px; /* Pill shape nav */
    border: var(--glass-border);
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
    border-radius: 10px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-color);
}

button#theme-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

button#theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
    transform: rotate(-1deg);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    min-height: 40px;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 5px solid rgba(255,255,255,0.2);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn:hover::before {
    left: 100%;
}

/* Sections General */
.section {
    padding: 6rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 80%;
    height: 6px;
    background: var(--primary-color);
    opacity: 0.3;
    margin: -10px auto 0;
    border-radius: 10px;
}

/* About Section */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: var(--card-bg); /* Glass effect */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow);
    padding: 3rem;
    border-radius: 30px;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.15rem;
    font-weight: 500;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.05); /* Inner glass */
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    width: 200px;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px) scale(1.05);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 6px;
    width: 0;
    position: relative;
}

/* Contact Section */
.contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Styling - Glass */
.contact-form {
    display: block; /* Add form back if hidden, or allow user to use social links only */
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

/* Assuming form exists, if not, just styling container */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-color);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: var(--transition);
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: var(--glass-border);
}

/* Responsive */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

@media screen and (max-width: 768px) {
    .navbar {
        border-radius: 0;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        max-width: 100%;
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        padding-top: 8rem;
        background: var(--card-bg); /* Glass mobile menu */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: var(--shadow);
        z-index: 998;
        border-left: var(--glass-border);
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
    }

    .burger {
        display: block;
        z-index: 999;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .profile-img {
        width: 250px;
        height: 250px;
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Scroll Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
