:root {
    --blue: #1DA1DB;
    --dark: #0F172A;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --bg-light: #F9FAFB;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
}

/* ===== HEADER ===== */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;            /* ✅ FIX */
    justify-content: space-between;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;                   /* ✅ IDEAL HEADER LOGO SIZE */
    width: auto;
    display: block;                 /* removes baseline gap */
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    height: 40px;                   /* ✅ SAME HEIGHT AS LOGO */
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    line-height: 1;
    cursor: pointer;
}

.nav a:hover,
.dropdown-toggle:hover {
    color: var(--blue);
}

/* ===== DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 44px;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 220px;
    display: none;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--blue);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== CTA BUTTON ===== */
.btn-cta {
    height: 40px;
    padding: 0 18px;
    background: var(--blue);
    color: #fff !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-cta:hover {
    background: #1679B8;
}

/* ===== CONTENT ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
}

.hero {
    text-align: center;
}

.subtitle {
    margin-top: 12px;
    font-size: 18px;
    color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 24px;
    font-size: 14px;
    color: var(--muted);
}


/* ===== STICKY HEADER ===== */
.header-wrapper {
    position: relative;
    z-index: 99999;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);

    position: sticky;     /* 🔥 */
    top: 0;
    width: 100%;
    z-index: 99999;       /* 🔥 FORCE ABOVE HERO */
    
    transform: translateY(0);
    transition:
        transform 0.3s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}



/* Hero Section */
.about-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient(135deg,#E5F6FB,#F9FAFB);
}
.about-hero .intro-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.about-hero .intro-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.about-hero img {
    max-width: 400px;
    border-radius: 12px;
}

/* Timeline */
.about-journey {
    padding: 80px 0;
}
.timeline {
    position: relative;
    margin-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: -15px;
    top:0;
    bottom:0;
    width:4px;
    background:#1DA1DB;
}
.timeline-item {
    margin-bottom:50px;
    position: relative;
}
.timeline-item::before {
    content:'';
    position: absolute;
    left:-19px;
    width:20px;
    height:20px;
    background:#fff;
    border:4px solid #1DA1DB;
    border-radius:50%;
}
.timeline-date {
    font-weight:700;
    color:#1DA1DB;
    margin-bottom:0.5rem;
}

/* Skills Section */
.about-skills {
    padding:80px 0;
}
.skills-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}
.skill-bar {
    background:#E5E7EB;
    height:12px;
    border-radius:6px;
    overflow:hidden;
}
.skill-progress {
    background:#1DA1DB;
    height:100%;
    width:0;
    transition:width 1.5s ease;
}

/* Portfolio Section */
.about-portfolio {
    padding:80px 0;
}
.portfolio-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}
.portfolio-item {
    position:relative;
    overflow:hidden;
    border-radius:12px;
}
.portfolio-item img {
    width:100%;
    display:block;
    transition: transform 0.3s ease;
}
.portfolio-item:hover img {
    transform:scale(1.1);
}
.portfolio-hover {
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.7);
    color:#fff;
    opacity:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:20px;
    text-align:center;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-hover {
    opacity:1;
}

/* CTA Section */
.about-cta {
    padding:80px 0;
    background:#1DA1DB;
    color:#fff;
    text-align:center;
}
.about-cta a {
    margin-top:20px;
}


/* ===== HIDE / SHOW ON SCROLL ===== */
.site-header {
    transform: translateY(0);
    transition: 
        transform 0.3s ease,
        height 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.hero,
.about-hero {
    position: relative;
    z-index: 1; /* 🔥 ALWAYS BELOW HEADER */
}


/* ===============================
   MOBILE NAVIGATION
================================ */

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 2px;
}

/* Mobile styles */
@media (max-width: 768px) {

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        border-top: 1px solid var(--border);
        display: none;

        z-index: 99998; /* 🔥 BELOW HEADER, ABOVE HERO */
    }

    .nav.active {
        display: flex;
    }

    .nav a,
    .dropdown-toggle {
        width: 100%;
        padding: 12px 0;
        margin: 0;
    }

    /* Dropdown on mobile */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        border: none;
        padding-left: 12px;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    /* CTA button mobile */
    .mobile-cta {
        width: 100%;
        margin-top: 12px;
        text-align: center;
    }
}


