/* --- Global Variables & Reset --- */

html, body {
    overflow-x: hidden; /* Cuts off content spilling to the right */
    max-width: 100vw;   /* Ensures page is never wider than screen */
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative; /* Helps contain absolute elements */
}

:root {
    --bg-gradient: linear-gradient(135deg, #FFDAB9 0%, #ffc3a0 50%, #f7b7b7 100%);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-dark: #4a3b3b;
    --text-light: #6d5c5c;
    --accent-color: #d66d75;
    --font-heading: 'Comfortaa', cursive;
    --font-body: 'Quicksand', sans-serif;
    --font-script: 'Pacifico', cursive;
}

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

body {
    background: var(--bg-gradient);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* --- Background Decorations --- */
.circle {
    position: fixed;
    border-radius: 50%;
    z-index: -1; /* Keeps it behind text */
    filter: blur(80px);
    pointer-events: none; /* Prevents them from interfering with clicks */
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 105, 180, 0.3);
    top: -50px;
    left: -100px;
    animation: float 10s infinite ease-in-out;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 218, 185, 0.6);
    bottom: 50px;
    right: -50px;
    animation: float 12s infinite ease-in-out reverse;
}

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

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-nav {
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--accent-color) !important;
}

.btn-nav:hover {
    background: var(--accent-color);
    color: white !important;
}

.hamburger { display: none; }

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.highlight-name {
    font-family: var(--font-script);
    color: var(--accent-color);
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-btns {
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 1rem;
    transition: transform 0.3s;
    display: inline-block;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 109, 117, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.profile-frame {
    width: 380px;
    height: 400px;
    border: 3px solid white;
    border-radius: 50% 50% 50% 10%; /* Unique shape */
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vw;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    position: relative;
    background: white;
}

.profile-img-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #ccc;
    font-family: var(--font-script);
}

/* --- Common Section Styles --- */
.section {
    padding: 2rem 10%;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* --- Cards (Glassmorphism) --- */
.card-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    width: 350px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-10px); }

.card-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.card h4 { font-size: 0.9rem; color: var(--text-light); }
.card .date { font-size: 0.8rem; font-weight: bold; margin: 0.5rem 0; color: var(--accent-color); }

/* --- Highlight Section --- */
.highlight-section {
    padding: 3rem 10%;
    margin: 2rem 5%;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2));
    border-radius: 30px;
    text-align: center;
    border: 2px solid white;
    box-shadow: 0 10px 40px rgba(214, 109, 117, 0.2);
}

.trophy-icon { font-size: 3rem; color: #FFD700; margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(255,215,0,0.5)); }
.mentors { font-size: 0.9rem; margin-top: 1rem; font-style: italic; color: #777; }

/* --- Timeline (Experience) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 4px solid white;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after { right: -8px; }
.timeline-item:nth-child(even)::after { left: -8px; }

/* --- Projects & Skills --- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.text-block h3 {
    background: rgba(255,255,255,0.4);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-align: center;
}

.styled-list li {
    list-style: none;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.styled-list li::before {
    content: '🌸';
    position: absolute;
    left: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags span {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.3);
    margin-top: 4rem;
}

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-links a:hover { transform: scale(1.2); }

/* --- Animations (Hidden state) --- */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

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

/* Influencer Section Specific Styles */
.influencer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.insta-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.insta-handle {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.insta-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat-box h4 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.stat-box p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.btn-insta {
    display: inline-block;
    padding: 10px 25px;
    background: #d62976;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-insta:hover {
    transform: scale(1.05);
    background: #ac205e;
}

.brands-wrapper h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-tag {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

.brand-tag.highlight {
    background: #ffebf2;
    color: #d62976;
    border-color: #d62976;
}

@media (max-width: 768px) {
    .influencer-grid {
        grid-template-columns: 1fr;
    }
}


/* later changes with education box adjustments and golden bar styles*/

/* 1. Tighten the spacing */
#education {
    padding-bottom: 1rem !important; /* Reduces bottom space of education */
}

#highlight {
    margin-top: 1rem !important; /* Reduces top space of achievement */
}

/* 2. Golden Bar Container */
.gold-separator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0; /* Small vertical buffer */
    position: relative;
    z-index: 10;
}

/* 3. The Bar Itself */
.gold-bar {
    width: 60%; /* Adjusts how wide the line is */
    height: 4px;
    /* Golden Gradient */
    background: linear-gradient(90deg, #b8860b, #FFD700, #ffec8b, #FFD700, #b8860b);
    background-size: 200% auto;
    border-radius: 50%; /* Tapered edges */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 5px rgba(255, 215, 0, 0.8);
    animation: goldShine 2.5s linear infinite;
    position: relative;
}

/* 4. Sparkles on the ends */
.gold-bar::before, .gold-bar::after {
    content: "✨";
    position: absolute;
    font-size: 1.2rem;
    top: -12px;
    color: #FFF;
    text-shadow: 0 0 10px #FFD700;
    animation: sparkle 2s ease-in-out infinite;
}

.gold-bar::before { left: -15px; }
.gold-bar::after { right: -15px; animation-delay: 1s; }

/* Animations */
@keyframes goldShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}


/* updated mobile navs*/
/* --- Back to Top Button Styles --- */
#myBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #d66d75; /* Your accent color */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#myBtn:hover {
    background-color: #555; /* Darker on hover */
    transform: translateY(-5px);
}



/* --- MOBILE RESPONSIVE STYLES --- */
/* --- MOBILE RESPONSIVE STYLES (UPDATED) --- */
@media screen and (max-width: 768px) {

    /* 1. HERO SECTION FIXES */
    .hero {
        min-height: 100vh;
        /* Stack vertically: Photo on top, Text below */
        flex-direction: column;
        /* Start content from the top, not center */
        justify-content: flex-start;
        align-items: center;
        text-align: center;

        /* [CHANGE 1] REDUCED GAP: Controls space between Logo and Photo */
        padding-top: 80px;
    }

    /* Force the Image to appear ABOVE the text */
    .hero-visual {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-content {
        order: 2;
    }

    /* 2. PROFILE PHOTO SIZE */
    .profile-frame {
        width: 250px; /* Smaller size for mobile */
        height: 250px;
        margin: 0 auto;
        max-width: 80vw;
    }

    /* [CHANGE 2] BUTTONS FIX (Side-by-Side + Spacing) */
    .hero-btns {
        display: flex;
        flex-direction: row; /* Horizontal row */
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .hero-btns .btn {
        /* Force spacing on left and right of EACH button */
        margin-left: 10px !important;
        margin-right: 10px !important;
        margin-bottom: 0 !important;

        width: auto;
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    /* 3. NAVIGATION & OTHERS (Standard Mobile Logic) */
    body { overflow-x: hidden; }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 998;
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0;
    }

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

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

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 999;
        color: var(--accent-color);
        font-size: 1.8rem;
        position: absolute;
        right: 30px;
        top: 30px;
    }

    /* Layout Patches */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; text-align: left; }
    .timeline-item:nth-child(odd) { left: 0%; text-align: left; }
    .timeline-item::after { left: 23px; }
    .grid-layout, .influencer-grid { grid-template-columns: 1fr; }

    /* Back to top button for mobile */
    #myBtn {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99;
        font-size: 18px;
        border: none;
        outline: none;
        background-color: #d66d75;
        color: white;
        cursor: pointer;
        padding: 15px;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
}


/* Keyframe for link fade in */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}



/* --- UPDATED PATCH: Animated Black Underline with Golden Glow --- */

/* 1. Setup the parent heading */
.section-title {
    position: relative;
    padding-bottom: 15px; /* Create space between text and line */
}

/* 2. Create the line (Start state: Width 0, No Glow) */
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%); /* Centers the line */

    height: 4px;           /* Thickness */
    background-color: black; /* Core color */
    border-radius: 2px;    /* Rounded edges */

    width: 0px;            /* Start invisible/collapsed */
    opacity: 0;
    box-shadow: none;      /* No glow initially */

    /* Animation settings - added box-shadow for smooth glowing effect */
    transition: width 2s ease-out, opacity 0.5s ease-in, box-shadow 2s ease-out;
}

/* 3. The End State (Triggered when heading appears) */
.section-title.show::after {
    width: 100px; /* Final width */
    opacity: 1;
    /* Slight Golden Glow: offset-x | offset-y | blur-radius | color */
    box-shadow: 0 0 12px rgba(237, 132, 109, 0.8), 0 0 5px rgba(253, 182, 0, 0.5);
}