:root {
    --primary: #c084fc;
    /* Soft Lavender */
    --secondary: #6366f1;
    /* Indigo */
    --accent: #22d3ee;
    /* Cyan */
    --gold: #fbbf24;
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --text-white: #f8fafc;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, #1e1b4b 0%, #0f172a 100%);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    margin-bottom: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -4px;
    line-height: 0.9;
    margin-bottom: 15px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.3);
}

.full-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-style: italic;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--gold);
    opacity: 0.95;
    letter-spacing: 1px;
}

.lineage-subheading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    padding: 5px;
    background: white;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    margin-bottom: 30px;
}

/* Profile Image */
.profile-section {
    margin-bottom: 100px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.portrait-card {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px;
    transform: rotate(-2deg);
}

.image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-card:hover .profile-img {
    transform: scale(1.05) rotate(2deg);
}

.status-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.bakar-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* TikTok Grid */
.tiktok-feed-section {
    margin-bottom: 150px;
    padding: 0 10px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
}

.tiktok-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.tiktok-card {
    flex: 1;
    min-width: 325px;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tiktok-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Aesthetic Section */
.aesthetic-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.aesthetic-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.aesthetic-item h4 {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.aesthetic-item p {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Countdown */
.timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.time-block span {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.time-block small {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

/* Media Showcase Section */
.part-of-section {
    margin-bottom: 120px;
    padding-top: 20px;
}

.circular-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.circular-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gold);
    box-shadow: 0 20px 40px -10px rgba(251, 191, 36, 0.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.circular-logo:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -15px rgba(192, 132, 252, 0.6);
}

.logo-title {
    margin-top: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.circular-logo-wrapper:hover .logo-title {
    color: var(--primary);
}

.media-showcase-section {
    margin-bottom: 100px;
    padding-top: 40px;
}

.media-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.media-sub-section h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.portrait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

.portrait-item {
    aspect-ratio: 475 / 455;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.portrait-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(192, 132, 252, 0.3);
}

.portrait-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.portrait-title {
    font-size: 1.4rem;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.portrait-card-wrapper:hover .portrait-title {
    color: var(--primary);
}

.relation {
    font-weight: 800;
    opacity: 0.95;
}

.relation-father {
    color: var(--accent);
}

.relation-mother {
    color: #f472b6; /* Soft Pink / Rose */
}

.relation-mamoon {
    color: #34d399; /* Mint Green */
}

/* Slider Section */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: slideRight 20s linear infinite;
}

.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

@keyframes slideRight {
    0% {
        transform: translateX(calc(-50% - 15px));
    }
    100% {
        transform: translateX(0);
    }
}

.slider-item {
    width: 240px;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.slider-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(192, 132, 252, 0.3);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portrait-item.placeholder::after {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portrait-item.image-item.placeholder::after {
    content: "Image Space";
}

.portrait-item.video-item.placeholder::after {
    content: "Video Space";
}

/* Footer / Social */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 80px;
}

.social-btn {
    text-decoration: none;
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.social-btn:hover {
    background: white;
    color: black;
    transform: translateY(-8px);
}

#celebrate-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 20px 40px;
    background: var(--gold);
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

#celebrate-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background: white;
}

@media (max-width: 768px) {
    .timer {
        gap: 20px;
    }

    .social-btn {
        width: 100%;
    }
}

/* Video Slider & Modal */
.slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(192, 132, 252, 0.5);
    background: #000;
}

#popup-video {
    max-height: 85vh;
    width: auto;
    display: block;
    outline: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

/* Celebration Modal */
#celebration-modal {
    z-index: 2000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.5s ease;
}

.celebration-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 80px rgba(192, 132, 252, 0.3), inset 0 0 30px rgba(192, 132, 252, 0.1);
    padding: 60px 100px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

#popup-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

#celebration-modal:not(.hidden) .celebration-content {
    transform: scale(1);
    opacity: 1;
}

.happy-birthday-text {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold);
    text-transform: capitalize;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    opacity: 0;
    transform: translateY(-20px);
}

#celebration-modal:not(.hidden) .happy-birthday-text {
    animation: fadeInDown 1s ease forwards 0.4s;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-animation {
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    height: 1em;
    line-height: 1em;
    overflow: hidden;
    position: relative;
    color: var(--primary);
    text-shadow: 0 0 50px rgba(192, 132, 252, 0.8), 0 0 20px var(--accent);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
}

.age-numbers {
    display: flex;
    flex-direction: column;
    text-align: center;
    transform: translateY(0);
}

.animate-age {
    animation: slideUpAge 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s forwards;
}

@keyframes slideUpAge {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.age-16, .age-17 {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}