/* --- GLOBAL RESET & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #050505;
    --card-beige: #E6E3D9;
    --text-black: #0e0e0e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: #f2efe9;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* NOISE TEXTURE */
body::before {
    content: ""; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 99; mix-blend-mode: screen;
}

/* --- NAVIGATION MENU STYLES (FUNCTIONAL) --- */

/* 1. Toggle Button (Glass Circle) */
.menu-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000; /* Sabse upar */
    transition: transform 0.3s ease, background 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Lines */
.hamburger {
    width: 24px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #f2efe9; /* Matching text color */
    transition: all 0.3s ease;
}

/* Active State (X Icon) */
.nav-container.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-container.active .hamburger span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 2. Overlay Menu (Hidden by default) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.95); /* Dark background */
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* Click through when hidden */
    transition: opacity 0.4s ease;
}

.nav-container.active .nav-overlay {
    opacity: 1;
    pointer-events: all;
}

/* 3. Menu Links Styling */
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; /* Bada text */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5); /* Outline style */
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    
    /* Animation Start State */
    opacity: 0;
    transform: translateY(50px);
}

/* Hover Effect - Fill color */
.nav-item:hover {
    color: #f2efe9;
    -webkit-text-stroke: 0px;
    transform: scale(1.1) !important; /* Scale on hover */
}

/* 4. Staggered Animation (One by one appear) */
.nav-container.active .nav-item {
    animation: slideUpFade 0.5s forwards;
    /* --i variable HTML mein set hai delay ke liye */
    animation-delay: calc(0.1s * var(--i));
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO SECTION */
.hero-section { height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; position: relative; padding: 0 15px; }
.top-accents { position: absolute; top: 30px; left: 30px; display: flex; gap: 8px; z-index: 10; }
.circle-outline { width: 12px; height: 12px; border: 1px solid #666; border-radius: 50%; }
.circle-solid { width: 12px; height: 12px; background: #f2efe9; border-radius: 50%; }
.hero-content { position: relative; width: max-content; max-width: 100%; display: flex; justify-content: center; align-items: center; }
.main-title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 15vw, 13rem); font-weight: 500; color: #f2efe9; text-transform: uppercase; letter-spacing: -0.03em; position: relative; z-index: 1; text-align: center; line-height: 0.9; white-space: nowrap; }
.year-badge { position: absolute; top: -40%; left: 15%; border: 1px solid #666; padding: 6px 22px; border-radius: 50px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.2); }
.name-tag { position: absolute; bottom: -40%; right: 18%; background: #f2efe9; color: var(--bg-dark); padding: 8px 28px; border-radius: 50px; font-family: 'Playfair Display', serif; font-weight: 600; font-style: italic; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); white-space: nowrap; }
.dot { width: 6px; height: 6px; background: var(--bg-dark); border-radius: 50%; }
.glass-pill { position: absolute; border-radius: 100px; z-index: 2; border: 1px solid rgba(255, 255, 255, 0.15); overflow: hidden; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.5); }
.glass-pill::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 0, 0, 0.7) 1px, transparent 1px); background-size: 3px 3px; opacity: 0.6; mix-blend-mode: overlay; pointer-events: none; }
.left-pill { width: 380px; height: 110px; bottom: -15px; left: -50px; transform: rotate(-3deg); }
.right-pill { width: 320px; height: 110px; top: -10px; right: -40px; transform: rotate(2deg); }

/* RESUME GRID */
.grid-section { background-color: #000; padding: 20px; display: flex; justify-content: center; }
.main-grid-container { width: 100%; max-width: 1400px; display: grid; grid-template-columns: 380px 1fr; gap: 12px; position: relative; }
.card { background-color: var(--card-beige); color: var(--text-black); border-radius: 20px; padding: 30px; position: relative; overflow: hidden; }
h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.8rem; text-transform: uppercase; color: #000; margin-bottom: 20px; letter-spacing: -0.5px; }
h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: #000; margin-bottom: 2px; }
p { font-family: 'Inter', sans-serif; color: #333; font-size: 0.9rem; line-height: 1.4; }
.grid-col-left { display: flex; flex-direction: column; gap: 12px; }
.profile-block { height: 450px; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.main-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); position: absolute; inset: 0; }
.glass-circle-overlay { position: absolute; top: 80px; left: 40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); z-index: 10; }
.name-overlay { position: relative; z-index: 5; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 20px; color: #fff; }
.name-overlay h2 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tags-row span { border: 1px solid rgba(255,255,255,0.5); border-radius: 20px; padding: 4px 12px; font-size: 0.7rem; text-transform: uppercase; backdrop-filter: blur(4px); }
.about-block { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.header-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 15px;}
.dots-deco { display: flex; gap: 5px; }
.h-dot { width: 8px; height: 8px; border: 1px solid #000; border-radius: 50%; }
.h-dot.solid { background: #000; }
.greeting { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; margin-bottom: 10px; }
.bio-footer { margin-top: 15px; font-weight: 500; font-size: 0.85rem; }
.grid-col-right-wrapper { display: flex; flex-direction: column; gap: 12px; position: relative; }
.grid-row-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex-grow: 1; }
.center-content { padding-right: 10px; }
.timeline-entry { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.year-pill { border: 1px solid #000; border-radius: 50px; padding: 2px 12px; font-size: 0.85rem; font-weight: 600; min-width: 60px; text-align: center; margin-top: 2px; }
.entry-details p { color: #555; font-size: 0.8rem; }
.software-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sw-row { display: flex; gap: 10px; align-items: center; }
.sw-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-family: sans-serif; font-size: 1.1rem; overflow: hidden; }

/* -- UPDATED ICON STYLES -- */
/* Default for text based icons */
.sw-icon.id { background: #49021e; color: #ff3366; }
.sw-icon.ps { background: #001e36; color: #31a8ff; }
.sw-icon.ae { background: #00005b; color: #d8aaff; }

/* Image based icons (Canva, Figma, Corel) */
.sw-icon.img-logo {
    background: transparent;
    padding: 0;
}
.sw-icon.img-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures logo fits well */
    border-radius: 8px;
}

.sw-info h4 { font-size: 0.7rem; margin-bottom: 2px; }
.dots { display: flex; gap: 2px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #000; }
.dots span.f { background: #000; } .dots span.e { background: transparent; }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skills-cloud span { border: 1px solid #000; border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; font-family: 'Playfair Display', serif; font-style: italic; }
.contact-bar { display: flex; justify-content: space-between; padding: 25px 40px; }
.contact-left { display: flex; align-items: center; gap: 20px; }
.contact-left h2 { margin: 0; margin-right: 15px; border-right: 2px solid #000; padding-right: 20px; height: 40px; line-height: 40px;}
.qr-code { width: 60px; height: 60px; mix-blend-mode: multiply; }
.scan-text { font-size: 0.75rem; line-height: 1.1; font-weight: 600; }
.arrow { font-size: 1.2rem; display: block; margin-bottom: -5px; }
.contact-right { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 8px; align-items: center; }
.c-item { font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }

/* -- CONTACT ICON SVG STYLE -- */
.c-item .icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.c-item .icon svg { width: 100%; height: 100%; fill: #000000; }

.floating-glass-bar { position: absolute; bottom: 95px; right: -20px; width: 350px; height: 70px; background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1)); backdrop-filter: blur(15px); border-radius: 50px; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 20; }
.floating-glass-bar::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,0.6) 1px, transparent 1px); background-size: 3px 3px; opacity: 0.2; border-radius: 50px; }

/* POSTERS */
.posters-banner { width: 100%; min-height: 350px; background-color: var(--bg-dark); display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-top: 1px solid #111; }
.side-deco { display: flex; flex-direction: column; align-items: center; gap: 15px; color: var(--card-beige); width: 50px; }
.side-deco .star { font-size: 2.5rem; line-height: 1; }
.side-deco .vertical-pill { width: 20px; height: 150px; border: 2px solid var(--card-beige); border-radius: 20px; }
.poster-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.poster-title { font-family: 'Playfair Display', serif; font-size: clamp(5rem, 15vw, 12rem); color: var(--card-beige); margin: 0; line-height: 0.8; letter-spacing: -0.02em; font-weight: 500; border-bottom: none; padding: 0; }
.subtitle-wrapper { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.line-deco { width: 60px; height: 2px; background-color: var(--card-beige); position: relative; border-radius: 2px; }
.left-line::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background-color: var(--card-beige); border-radius: 50%; }
.right-line::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background-color: var(--card-beige); border-radius: 50%; }
.pill-text { font-family: 'Playfair Display', serif; font-style: italic; color: var(--card-beige); font-size: 1.1rem; padding: 6px 25px; border: 1px solid var(--card-beige); border-radius: 50px; }

.posters-grid-section { background-color: var(--bg-dark); padding: 20px 40px 60px 40px; display: flex; justify-content: center; }
.posters-grid-container { width: 100%; max-width: 1400px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }

/* ALBUM */
.album-section { background-color: var(--bg-dark); padding: 30px 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.album-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.header-left { display: flex; align-items: center; gap: 10px; }
.star-icon { font-size: 2.5rem; color: var(--card-beige); line-height: 1; }
.album-title { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--card-beige); margin: 0; line-height: 0.9; border-bottom: none; padding: 0; letter-spacing: -1px; }
.header-line { flex-grow: 1; height: 1px; background-color: var(--card-beige); margin: 0 20px; opacity: 0.5; }
.header-pill { border: 1px solid var(--card-beige); color: var(--card-beige); padding: 6px 20px; border-radius: 50px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1rem; white-space: nowrap; }
.album-content-wrapper { display: flex; gap: 15px; position: relative; }
.side-handle { width: 25px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 300px; }
.handle-inner { width: 8px; height: 90%; border-top: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); border-radius: 50px; }
.album-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.poster-card { background-color: var(--card-beige); border-radius: 8px; aspect-ratio: 3 / 4; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s; cursor: pointer; }
.poster-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255,255,255,0.1); }
.poster-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- NEW GLASS BANNER SECTION --- */
.glass-banner-section {
    background-color: var(--bg-dark);
    padding: 40px 40px;
    display: flex;
    justify-content: center;
}
.glass-banner-container {
    width: 100%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* --- UPDATED MODAL STYLES (Glass & Pop-up Animation) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0); 
    backdrop-filter: blur(0px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(8px);
}

.modal-glass-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    /* Zoom Animation Init */
    transform: scale(0.6) translateY(50px); 
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.modal-overlay.active .modal-glass-wrapper {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-btn:hover {
    color: var(--card-beige);
    transform: rotate(90deg) scale(1.1);
}

#modal-img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .main-title { font-size: 14vw; }
    .year-badge { top: -60px; left: 50%; transform: translateX(-50%); }
    .name-tag { bottom: -70px; right: auto; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; white-space: nowrap; }
    .glass-pill { backdrop-filter: blur(2px) !important; opacity: 0.8; }
    .left-pill { width: 135px; height: 30px; top: auto; bottom: -15px; left: -20px; transform: rotate(-1deg); }
    .right-pill { width: 125px; height: 35px; bottom: auto; top: -17px; right: -20px; transform: rotate(2deg); }
    .main-grid-container { grid-template-columns: 1fr; }
    .grid-col-left { flex-direction: row; height: 400px; }
    .profile-block, .about-block { width: 50%; height: 100%; }
    .floating-glass-bar { display: none; }
    
    .side-deco { display: none; } 
    .posters-banner { padding: 40px 20px; justify-content: center; }
    .posters-grid-container { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px; }
    
    .album-section { padding: 20px 10px; }
    .album-title { font-size: 1.8rem; }
    .star-icon { font-size: 1.5rem; }
    .header-pill { font-size: 0.8rem; padding: 4px 12px; }
    .header-line { display: none; }
    .album-header { justify-content: center; gap: 10px; }
    .side-handle { display: none; }
    .album-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

    .glass-banner-section { padding: 20px 10px; }
    .glass-banner-container { padding: 8px; border-radius: 15px; }
    .banner-img { border-radius: 10px; }
}

@media (max-width: 768px) {
    .grid-col-left { flex-direction: column; height: auto; }
    .profile-block, .about-block { width: 100%; height: auto; }
    .profile-block { height: 400px; }
    .grid-row-top { grid-template-columns: 1fr; }
    .contact-bar { flex-direction: column; gap: 20px; }
    .contact-right { grid-template-columns: 1fr; }
    .contact-left h2 { border-right: none; margin-right: 0; padding-right: 0; margin-bottom: 10px; display: block;}
    .contact-left { flex-direction: column; text-align: center;}
    
    .poster-title { font-size: 16vw; }
    .subtitle-wrapper { gap: 8px; }
    .line-deco { width: 30px; }
    .pill-text { font-size: 0.9rem; padding: 5px 15px; }

    /* Mobile adjustments for Modal */
    .modal-glass-wrapper {
        padding: 10px;
        width: 100%;
    }
    .close-btn {
        top: -45px;
        right: 10px;
        font-size: 2.5rem;
    }
}

/* --- FINAL MODAL STYLES (Origin Zoom Animation) --- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0); 
    backdrop-filter: blur(0px);
    z-index: 9999;
    display: none; /* JS handle karega display block/none */
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    /* Important: Taaki modal content click block na kare jab band ho */
    pointer-events: none; 
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.modal-glass-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
    position: relative;

    /* ANIMATION MAGIC HERE */
    transform: scale(0); /* Shuru mein bilkul gayab (0 size) */
    opacity: 0;
    /* Smooth elastic bezier curve */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

/* Jab active class lagegi, to full size (scale 1) hoga */
.modal-overlay.active .modal-glass-wrapper {
    transform: scale(1);
    opacity: 1;
}

/* Close button style same rahega */
.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-btn:hover {
    color: var(--card-beige);
    transform: rotate(90deg) scale(1.1);
}

#modal-img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-glass-wrapper { padding: 10px; width: 100%; }
    .close-btn { top: -45px; right: 10px; font-size: 2.5rem; }
}

/* --- SOCIAL MEDIA POSTS SECTION --- */
.social-media-section {
    background-color: var(--bg-dark);
    padding: 40px 40px 60px 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

/* Header Styling */
.sm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
    gap: 20px;
}

.sm-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sm-header-left .star-icon.large {
    font-size: 3rem;
    color: var(--card-beige);
    animation: rotateStar 10s linear infinite;
}

@keyframes rotateStar { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.sm-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--card-beige);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-weight: 500;
}

.sm-header-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-grow: 1;
    justify-content: flex-end;
    max-width: 600px;
}

.long-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--card-beige);
    position: relative;
    margin-right: 15px;
    opacity: 0.6;
}

.line-dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--card-beige);
    border-radius: 50%;
}

.sm-pill {
    border: 1px solid var(--card-beige);
    color: var(--card-beige);
    padding: 8px 25px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Content Wrapper */
.sm-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Side Handles (Vertical Bars) */
.sm-side-handle {
    width: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-shrink: 0;
}

.sm-side-handle .hole {
    width: 12px;
    height: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--card-beige);
    border-radius: 50%;
}

/* Grid Layout */
.sm-grid {
    flex-grow: 1;
    display: grid;
    /* Desktop: 4 Columns */
    grid-template-columns: repeat(4, 1fr);
    /* 3 Rows implies strict grid, but auto-rows handles content better */
    grid-template-rows: repeat(3, 1fr); 
    gap: 15px;
}

.sm-card {
    background-color: var(--bg-dark); /* Card bg dark to match theme */
    aspect-ratio: 1 / 1; /* Square posts */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15); /* Subtle border */
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.sm-card:hover {
    transform: scale(0.98);
    border-color: var(--card-beige);
    box-shadow: 0 0 15px rgba(230, 227, 217, 0.1);
}

.sm-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.8) contrast(1.1); /* Slight filter for mood */
    transition: filter 0.3s;
}

.sm-card:hover img {
    filter: saturate(1) contrast(1);
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .sm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .sm-title { font-size: 2.2rem; }
    .sm-header-right { width: 100%; justify-content: flex-start; }
    .long-line { display: none; } /* Hide line on mobile for clean look */
    
    .sm-side-handle { display: none; } /* Hide handles on mobile */
    
    .sm-grid {
        /* Mobile: 2 Columns x 6 Rows */
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto); /* Auto height based on aspect ratio */
        gap: 8px;
    }
    
    .social-media-section { padding: 30px 15px; }
}

/* --- UPDATED MASK SECTION (Rounded Square Images + White Text) --- */

.mask-section {
    background-color: var(--bg-dark);
    padding: 60px 40px;
    display: flex;
    justify-content: center;
}

.mask-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1400px;
}

/* Card Base Styles */
.mask-card {
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 650px; /* Thoda height badhaya taaki spacing achi lage */
    transition: transform 0.3s ease;
}

.mask-card:hover {
    transform: translateY(-5px);
    z-index: 5;
}

/* --- UPDATED IMAGE AREA (Rounded Square) --- */
.mask-img-container {
    width: 100%;
    padding: 20px; /* Side se spacing taaki chipke na */
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    position: relative;
    background-color: transparent; 
}

.mask-img-container img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Pura Square */
    object-fit: cover;
    border-radius: 30px; /* Rounded Corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Thoda shadow uthav ke liye */
}

/* Content Area */
.mask-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Typography & Colors per Theme */

/* -- BLUE THEME -- */
.blue-theme {
    background-color: #1a3b8e; 
    color: #cbd5e1;
    border-bottom-left-radius: 5px; 
    border-bottom-right-radius: 5px;
}
.blue-theme .meta-label, .blue-theme .mask-subtitle { color: #93c5fd; } 
.blue-theme .mask-title { color: rgba(255,255,255,0.8); }

/* -- RED THEME -- */
.red-theme {
    background-color: #b91c1c; 
    color: #fecaca;
}
.red-theme .meta-label, .red-theme .mask-subtitle { color: #fee2e2; } 
.red-theme .mask-title { color: #fff; }

/* --- TEXT UPDATE: WHITE COLOR --- */
.red-theme .mask-desc {
    color: #ffffff; /* Bilkul White */
    opacity: 1; /* Transparency hatayi */
    font-weight: 400;
}

/* -- GREEN THEME -- */
.green-theme {
    background-color: #047857; 
    color: #064e3b;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.green-theme .meta-label, .green-theme .mask-subtitle { color: #022c22; font-weight: 700; opacity: 0.6;} 
.green-theme .mask-title { color: #022c22; opacity: 0.8; }
.green-theme .meta-line { background-color: #022c22 !important; opacity: 0.3; }
.green-theme .line-dot { background-color: #022c22 !important; }

/* Common Text Elements */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    text-transform: uppercase;
    margin-top: 10px; /* Image ke baad thoda gap */
}

.meta-line {
    flex-grow: 1;
    height: 1px;
    background-color: currentColor;
    margin: 0 10px;
    opacity: 0.5;
    position: relative;
}

.meta-line .line-dot {
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 4px; background-color: currentColor; border-radius: 50%;
}

.mask-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.mask-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem; 
    font-weight: 700;
    margin: -10px 0 15px -5px; 
    line-height: 0.8;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.mask-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: auto; 
    margin-bottom: 20px;
}

.stylized-a {
    font-family: sans-serif;
    font-size: 0.6em;
    vertical-align: middle;
    display: inline-block;
    color: #fecaca;
    position: relative;
    top: -5px;
}

.dots-nav { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.dots-nav span { width: 8px; height: 8px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; }
.dots-nav span:first-child { background: #fff; border-color: #fff; }

.barcode-strip {
    height: 60px;
    width: 100%;
    margin-top: auto;
    background-image: linear-gradient(to right, 
        rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.4) 2%, 
        transparent 2%, transparent 4%,
        rgba(255,255,255,0.4) 4%, rgba(255,255,255,0.4) 5%,
        transparent 5%, transparent 8%,
        rgba(255,255,255,0.4) 8%, rgba(255,255,255,0.4) 12%,
        transparent 12%, transparent 14%,
        rgba(255,255,255,0.4) 14%, rgba(255,255,255,0.4) 15%,
        transparent 15%, transparent 20%,
        rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.4) 26%,
        transparent 26%, transparent 30%,
        rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.4) 32%
    );
    background-size: 40px 100%; 
    opacity: 0.5;
}
.green-theme .barcode-strip {
    background-image: linear-gradient(to right, 
        rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 2%, 
        transparent 2%, transparent 4%,
        rgba(0,0,0,0.3) 4%, rgba(0,0,0,0.3) 5%,
        transparent 5%, transparent 8%
    );
}

/* Glass Orbs - Adjusted for new image layout */
.glass-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}
.glass-orb::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(0,0,0,0.2) 1px, transparent 1px);
    background-size: 3px 3px; opacity: 0.3; border-radius: 50%;
}

.large-orb {
    width: 180px; height: 180px;
    right: -90px; top: 300px; /* Thoda niche shift kiya kyunki image ab choti hai */
}

.small-orb-blue {
    width: 60px; height: 60px;
    bottom: 20px; left: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(47, 86, 212, 0.4));
}

.small-orb-green {
    width: 80px; height: 80px;
    bottom: 20px; right: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(4, 120, 87, 0.3));
}

@media (max-width: 900px) {
    .mask-grid {
        grid-template-columns: 1fr; 
        max-width: 450px;
    }
    .large-orb { display: none; }
    .mask-card { min-height: auto; }
}

/* --- THANKS SECTION --- */
.thanks-section {
    background-color: var(--bg-dark);
    position: relative;
    padding: 100px 40px 40px 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh; /* Takes up good screen space */
    overflow: hidden;
}

/* Corner Decorations */
.t-corner {
    position: absolute;
    top: 30px;
    display: flex;
    gap: 12px;
}
.t-corner.top-left { left: 30px; }
.t-corner.top-right { right: 30px; }

.t-circle {
    width: 14px; height: 14px;
    border-radius: 50%;
}
.t-circle.solid { background-color: var(--card-beige); }
.t-circle.hollow { border: 1px solid var(--card-beige); }

/* Main Title Area */
.thanks-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.title-container {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.thanks-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    color: var(--card-beige);
    line-height: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Glass Pills Overlays */
.t-glass-pill {
    position: absolute;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px) contrast(1.2); /* Distortion effect */
    -webkit-backdrop-filter: blur(8px) contrast(1.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    z-index: 2; /* Sits ON TOP of text */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Specific Positions for Pills */
.pill-1 {
    width: 250px;
    bottom: 20px;
    left: -20px;
}
.pill-2 {
    width: 300px;
    top: 20px;
    right: -30px;
}

/* Subtitle Row */
.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.t-circle.large {
    width: 20px; height: 20px;
    border: 1px solid var(--card-beige);
}

.msg-pill {
    border: 1px solid var(--card-beige);
    color: var(--card-beige);
    padding: 10px 30px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
}

/* Footer Bar */
.thanks-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1); /* Optional separator */
    padding-top: 20px;
}

.tf-arrows {
    display: flex;
    gap: 5px;
    color: var(--card-beige);
    font-size: 1.5rem;
}

.tf-contacts {
    display: flex;
    gap: 30px;
}

.tf-pill {
    background-color: var(--card-beige);
    color: var(--bg-dark);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-icon {
    background: var(--bg-dark);
    color: var(--card-beige);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-style: normal;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .thanks-section { padding: 80px 20px 30px 20px; min-height: auto; }
    
    .t-glass-pill { height: 40px; }
    .pill-1 { width: 150px; left: 0; bottom: 10px; }
    .pill-2 { width: 180px; right: 0; top: 10px; }
    
    .subtitle-wrapper { gap: 10px; }
    .t-circle.large { display: none; } /* Hide dots on mobile to save space */
    .msg-pill { font-size: 0.9rem; padding: 8px 20px; }
    
    .thanks-footer { flex-direction: column; gap: 20px; }
    .tf-arrows { display: none; } /* Hide arrows on mobile */
    .tf-contacts { flex-direction: column; width: 100%; gap: 15px; }
    .tf-pill { justify-content: center; width: 100%; }
}

/* --- FINAL MOBILE FIX FOR THANKS SECTION --- */

@media (max-width: 900px) {
    /* 1. Section Spacing */
    .thanks-section { 
        padding: 60px 20px 80px 20px; 
        min-height: auto; 
        overflow: visible; /* Content katna nahi chahiye */
    }

    /* 2. Text Formatting */
    .thanks-title {
        /* Size adjust kiya taaki text wrap na ho */
        font-size: clamp(2.8rem, 11vw, 4.5rem);
        line-height: 0.9;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .thanks-title .line-1, 
    .thanks-title .line-2 {
        display: block; /* Ensure lines stack properly */
    }

    /* 3. GLASS PILLS FIX (Taaki text na chupe) */
    .t-glass-pill { 
        height: 35px;
        border-radius: 50px;
        /* Background bilkul transparent taaki grey dhabba na bane */
        background: rgba(255, 255, 255, 0.02); 
        /* Sirf Border dikhega shine ke liye */
        border: 1px solid rgba(255, 255, 255, 0.4);
        /* Blur effect */
        backdrop-filter: blur(2px); /* Mobile pe blur off rakha taaki text clear rahe */
        -webkit-backdrop-filter: blur(0px);
        position: absolute;
        z-index: 2;
        pointer-events: none;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Glow effect instead of fill */
    }

    /* Position Fixes */
    .pill-1 { 
        width: 130px; 
        left: 0; 
        bottom: 30px; /* "VISITING" text ke upar perfect fit */
    }

    .pill-2 { 
        width: 140px; 
        right: 0; 
        top: -8px; /* "FOR" text ke upar perfect fit */
    }

    /* 4. Subtitle & Message */
    .subtitle-wrapper { 
        gap: 15px; 
        margin-bottom: 40px;
        flex-direction: column;
    }
    .t-circle.large { display: none; } 
    
    .msg-pill { 
        font-size: 0.9rem; 
        padding: 10px 20px; 
        width: 100%;
        text-align: center;
        border: 1px solid rgba(230, 227, 217, 0.5);
    }
    
    /* 5. Footer Buttons */
    .thanks-footer { 
        flex-direction: column; 
        gap: 15px; 
        width: 100%;
        padding-top: 0;
        border-top: none;
    }
    .tf-arrows { display: none; } 
    
    .tf-contacts { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }
    
    .tf-pill { 
        justify-content: center; 
        width: 100%; 
        height: 50px; /* Bada touch area */
        font-size: 0.95rem;
    }
}

/* --- GLOBAL SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
}