/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #0c0e14;
    --card-bg: #151821;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary: #22d3ee;
    --accent: #f472b6;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition: all 0.3s ease;

    /* New Variables for consistent theming */
    --nav-bg: rgba(12, 14, 20, 0.8);
    --text-heading: #ffffff;
    --btn-secondary-border: rgba(255, 255, 255, 0.2);
    --btn-secondary-color: #ffffff;
    --contact-bg: linear-gradient(135deg, rgba(21, 24, 33, 0.9), rgba(99, 102, 241, 0.1));
    --service-hover-bg: rgba(21, 24, 33, 0.8);
    --icon-gold: #fbbf24;
}

:root.light-mode {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --secondary: #0891b2;
    --accent: #db2777;

    /* Light mode specific overrides */
    --nav-bg: rgba(255, 255, 255, 0.8);
    --text-heading: #0f172a;
    --btn-secondary-border: rgba(15, 23, 42, 0.2);
    --btn-secondary-color: #0f172a;
    --contact-bg: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    --service-hover-bg: rgba(241, 245, 249, 0.8);
    --icon-gold: #d97706;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--btn-secondary-border);
    color: var(--btn-secondary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-heading);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--glass);
    color: var(--primary);
    border-color: var(--primary);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed nav */
}

/* Background Decorations */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-title {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   SECTIONS GLOBAL
   ========================================= */
.section {
    padding: 6rem 0;
}

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

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   EXPERIENCE & EDUCATION TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-period {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
}

/* =========================================
   SKILLS & INTERESTS
   ========================================= */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-tag {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(34, 211, 238, 0.05);
}

/* =========================================
   AWARDS & CERTIFICATES
   ========================================= */
.awards-list {
    max-width: 800px;
    margin: 0 auto;
}

.award-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
}

.award-icon {
    color: var(--icon-gold);
    font-size: 1.5rem;
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.blog-content {
    padding: 2rem;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.blog-summary {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5vh auto;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-heading);
}

.modal-date {
    display: block;
    margin-bottom: 2rem;
    color: var(--primary);
}

.modal-body-content {
    color: var(--text-muted);
    line-height: 1.8;
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-card {
    background: var(--contact-bg);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 0 auto;
}

.contact-card p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.social-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--text-heading);
    transform: translateY(-3px);
}

.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

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

    /* Section & Typography Adjustments */
    .section {
        padding: 4rem 0;
    }

    .section-heading {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
        /* Visual below content on mobile? Usually visual on top is better or text on top. content order: text(1), visual(2). Let's keep text on top for this specific design or default. 
                   Actually, often profile image on top is nicer. Let's switch order. */
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 1rem;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .profile-img-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    /* Navbar & Mobile Menu */
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        background: var(--card-bg);
        /* Use card-bg for opacity/solid feel or nav-bg */
        background: var(--bg-color);
        height: 100vh;
        width: 100%;
        top: 0;
        right: -100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        z-index: 999;
        /* Below hamburger */
        border-left: 1px solid var(--glass-border);
    }

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

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        /* Animate in */
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Grids */
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .contact-card p {
        font-size: 1.2rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10vh auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .profile-img-container {
        width: 240px;
        height: 240px;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        width: 100%;
        margin: 0.5rem 0 0 0;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation for Menu Items */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}