/* ========== 10/10 MEMORABLE DESIGN – FINAL CLEAN VERSION ========== */

:root {
    --primary: #1a1a2e;
    --secondary: #d4a017;
    --accent: #c44536;
    --light: #fdf6ec;
    --dark: #0f0f1a;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --info: #287271;
    --timeline-color: var(--secondary);
    --timeline-dot: var(--primary);
    --bg-color: #fcf9f2;
    --card-bg: rgba(255,255,255,0.85);
    --header-bg: var(--primary);
    --shadow: rgba(0,0,0,0.08);
    --border-radius: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: 1px solid rgba(255,255,255,0.5);
}

[data-theme="dark"] {
    --primary: #d4a017;
    --secondary: #2a9d8f;
    --accent: #e76f51;
    --light: #1a1a2e;
    --dark: #0f0f1a;
    --text: #e0d7c6;
    --text-light: #b3a68f;
    --bg-color: #12121f;
    --card-bg: rgba(30,30,50,0.85);
    --header-bg: #0f0f1a;
    --shadow: rgba(0,0,0,0.4);
    --glass-border: 1px solid rgba(255,255,255,0.1);
}

/* Dark mode card backgrounds */
[data-theme="dark"] .card,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .education-item,
[data-theme="dark"] .engagement-item,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .experience-item,
[data-theme="dark"] .video-item,
[data-theme="dark"] .shorts-item,
[data-theme="dark"] .gallery-item,
[data-theme="dark"] .article-item,
[data-theme="dark"] .faq-item {
    background-color: rgba(30,30,50,0.9);
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .card h3,
[data-theme="dark"] .experience-title,
[data-theme="dark"] .skill-category h3,
[data-theme="dark"] .video-info h3,
[data-theme="dark"] .shorts-meta h3,
[data-theme="dark"] .article-title,
[data-theme="dark"] .faq-question {
    color: #ffffff;
}
[data-theme="dark"] .card p,
[data-theme="dark"] .experience-company,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .video-info p,
[data-theme="dark"] .shorts-meta p,
[data-theme="dark"] .article-excerpt,
[data-theme="dark"] .faq-answer p {
    color: #dcdcdc;
}
[data-theme="dark"] .skill-card {
    background-color: rgba(212,160,23,0.1);
}
[data-theme="dark"] .skill-card:hover {
    background-color: var(--secondary);
    color: #000;
}

/* ---------- GLOBAL RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.gurmukhi {
    font-family: 'Noto Sans Gurmukhi', 'Raavi', 'Roboto', sans-serif;
    font-weight: 500;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* ---------- READING PROGRESS BAR ---------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--secondary);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ---------- STICKY TOP NAVIGATION (with theme & quiz) ---------- */
.sticky-nav {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 101;
    padding: 6px 0;
    display: flex;
    justify-content: center;
}
.sticky-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    overflow-x: auto;
    justify-content: center;
}
.sticky-nav a,
.sticky-nav .theme-toggle-inline,
.sticky-nav .quiz-btn-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.sticky-nav a:hover,
.sticky-nav .theme-toggle-inline:hover,
.sticky-nav .quiz-btn-inline:hover {
    background: var(--secondary);
    color: #1a1a2e;
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212,160,23,0.3);
}
.sticky-nav .theme-toggle-inline i,
.sticky-nav .quiz-btn-inline i {
    font-size: 1rem;
}

/* Active section button – golden glow */
.sticky-nav a.active,
.sticky-nav .theme-toggle-inline.active,
.sticky-nav .quiz-btn-inline.active {
    background: var(--secondary);
    color: #1a1a2e;
    border-color: var(--secondary);
    box-shadow: 0 0 14px 3px rgba(212, 160, 23, 0.6),
                0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .sticky-nav a .nav-label,
    .sticky-nav .quiz-btn-inline .nav-label {
        display: none;
    }
    .sticky-nav a,
    .sticky-nav .theme-toggle-inline,
    .sticky-nav .quiz-btn-inline {
        padding: 8px 10px;
        border-radius: 50%;
    }
}

/* ---------- SIDEBAR (Desktop) ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: var(--primary);
    color: white;
    z-index: 90;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}
.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.profile-img-container {
    display: inline-block;
    position: relative;
    margin-bottom: 25px;
}
.profile-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.9);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-img:hover {
    transform: scale(1.07);
    box-shadow: 0 18px 45px rgba(212,160,23,0.4);
}
.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar h1 { font-size: 2rem; margin: 20px 0 5px; }
.sidebar-subtitle { font-size: 0.95rem; opacity: 0.85; margin-bottom: 5px; }
.sidebar-experience { font-size: 0.9rem; color: var(--secondary); font-weight: 600; margin-bottom: 15px; }
.sidebar-contact { display: flex; gap: 15px; margin: 20px 0; }
.sidebar-contact a { color: white; font-size: 1.4rem; transition: var(--transition); }
.sidebar-contact a:hover { color: var(--secondary); transform: translateY(-2px); }
.sidebar-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 200px; margin: 20px 0; }
.sidebar-actions .email-btn,
.sidebar-actions .resume-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-actions .email-btn { background: var(--secondary); color: #1a1a2e; }
.sidebar-actions .resume-btn { background: var(--success); color: white; }
.sidebar-actions button:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }
.sidebar-social { display: flex; gap: 20px; margin-top: 30px; }
.sidebar-social a { color: rgba(255,255,255,0.7); font-size: 1.2rem; transition: var(--transition); }
.sidebar-social a:hover { color: var(--secondary); transform: translateY(-2px); }

/* Sidebar navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 200px;
    margin: 15px 0 20px;
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
    background: transparent;
}
.nav-btn:hover,
.nav-btn:focus {
    background: rgba(212,160,23,0.2);
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateX(5px);
}
.nav-btn i { width: 20px; text-align: center; font-size: 1rem; }

/* ---------- MOBILE STICKY HEADER (always visible on small screens) ---------- */
.mobile-sticky-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: none;
}
.mobile-sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
}
.mobile-sticky-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--secondary); }
.mobile-sticky-name { font-weight: 700; font-size: 1rem; }
.mobile-sticky-contact {
    background: var(--secondary);
    color: #1a1a2e;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-sticky-contact:hover { background: #e5b830; }

/* Mobile nav row */
.mobile-nav-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 6px 0;
    background: rgba(0,0,0,0.1);
}
.mobile-nav-row a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 4px;
}
.mobile-nav-row a:hover { color: var(--secondary); transform: scale(1.2); }

/* Main content layout */
.main-content {
    margin-left: 320px;
    padding-top: 50px;
    min-height: 100vh;
}
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; }
   margin-left: 0;
        padding-top: 80px;      /* mobile: sticky nav + mobile header */
    }
}


/* ---------- EXCERPT ---------- */
.excerpt-section {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
    padding: 70px 0;
    margin: 30px 0;
    text-align: center;
    border-radius: 40px 40px 0 0;
    position: relative;
    overflow: hidden;
}
.excerpt-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,160,23,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.excerpt-container { max-width: 800px; margin: 0 auto; }
.excerpt-section h2 {
    font-size: 2.5rem; margin-bottom: 25px; font-weight: 700;
    position: relative; display: inline-block;
}
.excerpt-section h2:after {
    content: ''; position: absolute; width: 80px; height: 4px;
    background: var(--secondary); bottom: -10px; left: 50%;
    transform: translateX(-50%); border-radius: 2px;
}
.excerpt-text {
    font-size: 1.4rem; line-height: 1.8; margin-bottom: 30px;
    font-style: italic; font-weight: 300;
}
.excerpt-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.excerpt-author-img {
    width: 70px; height: 70px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--secondary);
}
.excerpt-author-img img { width: 100%; height: 100%; object-fit: cover; }
.excerpt-author-info h3 { font-size: 1.3rem; margin-bottom: 5px; }
.excerpt-author-info p { font-size: 0.95rem; opacity: 0.85; }

/* ---------- SOCIAL SHARE ---------- */
.social-share {
    display: flex; justify-content: center; gap: 15px; margin: 30px 0 20px;
}
.share-btn {
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: var(--card-bg); color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); box-shadow: 0 6px 15px var(--shadow);
    backdrop-filter: blur(5px);
}
.share-btn:hover {
    transform: translateY(-4px) scale(1.05); background: var(--secondary); color: white;
}

/* ---------- KEYWORDS ---------- */
.keywords-section { background: transparent; padding: 40px 0; margin: 20px 0; }
.keywords-section h2 {
    text-align: center; margin-bottom: 25px; font-size: 2rem; color: var(--primary);
    position: relative; display: inline-block; width: 100%;
}
.keywords-section h2:after {
    content: ''; position: absolute; width: 60px; height: 4px;
    background: var(--secondary); bottom: -10px; left: 50%;
    transform: translateX(-50%); border-radius: 2px;
}
.keywords-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.keyword-tag {
    background: rgba(212,160,23,0.12); color: var(--primary);
    border: 1px solid rgba(212,160,23,0.3); padding: 8px 18px;
    border-radius: 30px; font-size: 0.9rem; font-weight: 600; transition: var(--transition);
}
.keyword-tag:hover { background: var(--secondary); color: white; border-color: var(--secondary); transform: translateY(-2px); }

/* ---------- WHATSAPP BUTTON ---------- */
.whatsapp-fab-container { text-align: center; padding: 25px 0 10px; margin: 0; background: transparent; }
.whatsapp-fab-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #ffffff; color: #25D366; padding: 14px 28px;
    border-radius: 30px; font-weight: 700; font-size: 1rem; text-decoration: none;
    box-shadow: 0 8px 20px rgba(37,211,102,0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37,211,102,0.2);
}
.whatsapp-fab-btn i { font-size: 1.3rem; }
.whatsapp-fab-btn:hover {
    transform: translateY(-3px); box-shadow: 0 14px 28px rgba(37,211,102,0.35);
    background: #f0fff4; border-color: #25D366;
}

/* ---------- SECTION TITLES ---------- */
section { padding: 70px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 2.3rem; color: var(--primary); display: inline-block;
    padding-bottom: 12px; position: relative; font-weight: 700; letter-spacing: -0.5px;
}
.section-title h2:after {
    content: ''; position: absolute; width: 60px; height: 4px;
    background: var(--secondary); bottom: 0; left: 50%;
    transform: translateX(-50%); border-radius: 2px;
}

/* ---------- SUMMARY CARDS ---------- */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.summary-card {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); padding: 35px;
    box-shadow: 0 15px 35px var(--shadow); border: var(--glass-border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.summary-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px var(--shadow); }
.summary-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; }
.card-1::before { background: linear-gradient(90deg, var(--secondary), #e5b830); }
.card-2::before { background: linear-gradient(90deg, #c44536, var(--accent)); }
.card-3::before { background: linear-gradient(90deg, #2a9d8f, var(--success)); }
.card-icon { font-size: 2.8rem; margin-bottom: 20px; color: var(--secondary); opacity: 0.9; }
.summary-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary); font-weight: 700; }
.summary-card p { color: var(--text-light); line-height: 1.7; }

/* ---------- TIMELINE / EXPERIENCE ---------- */
.experience-container { position: relative; padding-left: 40px; }
.experience-container:before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, var(--secondary), transparent);
}
.experience-item {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); padding: 25px 30px; margin-bottom: 25px;
    box-shadow: 0 8px 25px var(--shadow); border-left: 5px solid var(--secondary);
    position: relative; transition: var(--transition); cursor: pointer;
}
.experience-item:hover { transform: translateX(8px); box-shadow: 0 15px 35px var(--shadow); }
.experience-item:before {
    content: ''; position: absolute; width: 20px; height: 20px;
    background: var(--timeline-dot); border: 3px solid var(--card-bg);
    border-radius: 50%; left: -46px; top: 30px;
    box-shadow: 0 0 0 4px var(--secondary);
}
.experience-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.experience-title { font-size: 1.3rem; color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.experience-date { background: var(--secondary); color: #1a1a2e; padding: 5px 15px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; }
.experience-company { color: var(--text-light); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.experience-duration { background: var(--success); color: white; padding: 4px 14px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-right: 8px; white-space: nowrap; }
.experience-details { list-style: none; margin-top: 15px; display: none; }
.experience-item.expanded .experience-details { display: block; }
.experience-details li { padding: 6px 0 6px 25px; position: relative; margin-bottom: 8px; color: var(--text-light); }
.experience-details li:before { content: '▹'; color: var(--secondary); position: absolute; left: 0; font-size: 1.2rem; line-height: 1; }
.highlight-badge {
    position: absolute; top: 10px; right: 10px; background: var(--accent); color: white;
    padding: 5px 14px; border-radius: 30px; font-size: 0.8rem; font-weight: 700;
    z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.highlight-badge:before { content: '★ '; }

/* ---------- EDUCATION ---------- */
.education-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.education-item {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); padding: 25px;
    box-shadow: 0 8px 25px var(--shadow); border-left: 5px solid var(--secondary);
    transition: var(--transition);
}
.education-item:hover { transform: translateY(-8px); }

/* ---------- ENGAGEMENTS ---------- */
.engagements-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.engagement-item {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); padding: 35px 25px; text-align: center;
    box-shadow: 0 8px 25px var(--shadow); transition: var(--transition);
    border: var(--glass-border);
}
.engagement-item:hover { transform: translateY(-8px); box-shadow: 0 15px 35px var(--shadow); }
.engagement-item i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }

/* ---------- SKILLS ---------- */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.skill-category {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); padding: 30px;
    box-shadow: 0 8px 25px var(--shadow);
}
.skill-category-header { display: flex; align-items: center; margin-bottom: 20px; }
.skill-category-icon {
    width: 50px; height: 50px; background: var(--secondary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; color: white; font-size: 1.3rem;
}
.skill-category h3 { font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.skill-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill-card {
    background: rgba(212,160,23,0.08); padding: 12px; border-radius: 12px;
    text-align: center; font-weight: 600; transition: var(--transition);
    border: 1px solid rgba(212,160,23,0.15);
}
.skill-card:hover { background: var(--secondary); color: white; transform: translateY(-3px); }

/* ---------- VIDEOS ---------- */
.video-section { background: linear-gradient(135deg, var(--bg-color), #f5efe0); padding: 60px 0; }
.video-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-top: 30px; }
.video-item {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow); transition: var(--transition); position: relative;
}
.video-item.highlighted { border: 3px solid var(--secondary); box-shadow: 0 10px 30px rgba(212,160,23,0.3); }
.video-item:hover { transform: translateY(-8px); }
.video-embed { position: relative; width: 100%; height: 200px; overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: none; }
.video-meta {
    background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; font-size: 0.85rem;
    display: flex; justify-content: space-between; position: absolute; bottom: 0; left: 0; right: 0;
}
.video-info { padding: 20px; }
.video-info h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }
.video-info p { color: var(--text-light); margin-bottom: 15px; }
.video-actions button {
    background: var(--secondary); color: white; border: none; padding: 8px 15px;
    border-radius: 8px; cursor: pointer; font-weight: 600; transition: var(--transition);
}
.video-actions button:hover { background: var(--primary); }

/* ---------- SHORTS ---------- */
.shorts-section { background: linear-gradient(135deg, var(--primary), #2d2d44); padding: 60px 0; }
.shorts-section .section-title h2 { color: white; }
.shorts-section .section-title h2:after { background: var(--secondary); }
.shorts-container { display: flex; overflow-x: auto; gap: 20px; padding: 20px 0; scrollbar-width: thin; scrollbar-color: var(--secondary) transparent; }
.shorts-container::-webkit-scrollbar { height: 8px; }
.shorts-container::-webkit-scrollbar-track { background: transparent; }
.shorts-container::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 20px; }
.shorts-item {
    flex: 0 0 auto; width: 300px; background: white; border-radius: var(--border-radius);
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: var(--transition);
    
    .shorts-item {
    transition: opacity 0.5s ease;
}
.shorts-item.shuffling {
    opacity: 0.5;
}
}
[data-theme="dark"] .shorts-item { background: rgba(30,30,50,0.9); }
.shorts-item.highlighted { border: 3px solid var(--secondary); }
.shorts-item:hover { transform: translateY(-5px); }
.shorts-embed { position: relative; width: 100%; height: 530px; }
.shorts-embed iframe { width: 100%; height: 100%; border: none; }
.shorts-meta { padding: 15px; }
.shorts-meta h3 { color: #2c3e50; font-size: 1rem; margin-bottom: 8px; }
[data-theme="dark"] .shorts-meta h3 { color: #ecf0f1; }
.shorts-meta p { color: #666; font-size: 0.85rem; margin-bottom: 10px; }
.shorts-actions button {
    background: var(--secondary); color: white; border: none; padding: 6px 12px;
    border-radius: 20px; cursor: pointer; font-weight: 600; transition: var(--transition);
}
.shorts-actions button:hover { background: var(--primary); }

/* ---------- GALLERY ---------- */
.gallery-section { background: transparent; padding: 60px 0; }
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.gallery-item {
    position: relative; border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow); aspect-ratio: 1/1; transition: var(--transition);
    border: 3px solid transparent;
}
.gallery-item.highlighted { border-color: var(--secondary); box-shadow: 0 10px 30px rgba(212,160,23,0.3); }
.gallery-item:hover { transform: translateY(-8px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.9), transparent);
    color: white; padding: 20px; transform: translateY(100%); transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* ---------- SAMAGAMS (smaller poster) ---------- */
.samagams-section {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    padding: 70px 0; position: relative; overflow: hidden;
}
.samagams-section::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4a017' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5; z-index: 1;
}
.samagams-section > * { z-index: 2; }
.samagams-section .section-title h2 { color: white; font-size: 2.5rem; }
.samagams-section .section-title p { color: rgba(255,255,255,0.85); }
.samagams-container {
    max-width: 900px; margin: 40px auto 0; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px); border-radius: var(--border-radius); padding: 30px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2); position: relative; overflow: hidden;
}
[data-theme="dark"] .samagams-container { background: rgba(30,30,50,0.95); }
.samagams-container::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 8px; height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
}
.samagams-container .canva-embed-wrapper {
    max-width: 600px; margin: 0 auto 25px;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); transition: transform 0.3s ease;
}
.canva-embed-wrapper:hover { transform: translateY(-5px); }
.canva-embed-inner {
    position: relative; width: 100%; padding-top: 56.25%;
    overflow: hidden; border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.canva-embed-inner iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.samagams-info {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; margin-top: 25px; padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
[data-theme="dark"] .samagams-info { border-top: 1px solid rgba(255,255,255,0.1); }
.samagams-credits { display: flex; align-items: center; gap: 15px; }
.samagams-credits .avatar {
    width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--secondary);
}
.samagams-credits .avatar img { width: 100%; height: 100%; object-fit: cover; }
.samagams-credits .credits-text { color: var(--text); font-size: 1rem; }
[data-theme="dark"] .samagams-credits .credits-text { color: var(--text-light); }
.samagams-credits .credits-text a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.samagams-credits .credits-text a:hover { color: var(--primary); text-decoration: underline; }
.samagams-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.samagam-btn {
    padding: 10px 20px; border: none; border-radius: 30px;
    background: var(--secondary); color: white; text-decoration: none;
    font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition); cursor: pointer;
}
.samagam-btn:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.samagam-btn.fullscreen { background: #27ae60; }

/* ---------- ARTICLES ---------- */
.articles-section { padding: 60px 0; }
.articles-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-top: 30px; }
.article-item {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow); transition: var(--transition);
}
.article-item:hover { transform: translateY(-8px); }
.article-image { height: 200px; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-item:hover .article-image img { transform: scale(1.05); }
.article-content { padding: 20px; }
.article-meta { display: flex; gap: 15px; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-light); }
.article-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 10px; font-weight: 700; }
.article-excerpt { color: var(--text-light); margin-bottom: 15px; }
.article-link { color: var(--secondary); text-decoration: none; font-weight: 700; transition: var(--transition); }
.article-link:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--light); padding: 60px 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); margin-bottom: 15px; overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
}
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--primary); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 500px; }

/* ---------- FOOTER ---------- */
footer {
    background: var(--primary); color: white; padding: 50px 0;
    text-align: center; border-radius: 40px 40px 0 0; margin-top: 40px;
}
.social-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 30px; }
.social-links a { color: white; font-size: 1.4rem; transition: var(--transition); }
.social-links a:hover { color: var(--secondary); transform: translateY(-4px); }
.footer-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-links a { color: white; text-decoration: none; opacity: 0.8; font-weight: 500; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--secondary); }
.copyright { margin-top: 20px; opacity: 0.7; font-size: 0.9rem; }

/* ---------- MODALS ---------- */
.email-modal, .download-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center;
}
.email-modal-content, .download-modal-content {
    background: var(--card-bg); width: 90%; max-width: 600px;
    border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); backdrop-filter: blur(15px);
}
.email-modal-header, .download-modal-header {
    background: var(--primary); color: white; padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.close-modal { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.email-modal-body, .download-modal-body { padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text); }
.form-control {
    width: 100%; padding: 12px; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px; background: var(--bg-color); color: var(--text);
    font-size: 1rem; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--secondary); }
.email-modal-footer, .download-modal-footer {
    padding: 20px; background: var(--light); display: flex; justify-content: flex-end; gap: 10px;
}
.btn { padding: 10px 20px; border: none; border-radius: 12px; cursor: pointer; font-size: 1rem; font-weight: 700; transition: var(--transition); }
.btn-primary { background: var(--secondary); color: white; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-primary:hover { background: var(--primary); }

/* ---------- DOWNLOAD OPTIONS ---------- */
.download-options { margin: 20px 0; }
.download-option {
    background: rgba(212,160,23,0.05); padding: 15px; border-radius: 12px;
    margin-bottom: 10px; cursor: pointer; transition: var(--transition); border: 1px solid transparent;
}
.download-option:hover { background: rgba(212,160,23,0.12); }
.download-option.selected { border: 2px solid var(--secondary); background: rgba(212,160,23,0.08); }
.download-option input { margin-right: 10px; }
.download-option label { cursor: pointer; display: block; }
.download-option strong { display: block; margin-bottom: 5px; }
.download-option span { font-size: 0.9rem; opacity: 0.8; }
.download-loading { text-align: center; padding: 30px; display: none; }
.spinner {
    border: 4px solid rgba(212,160,23,0.2); border-top: 4px solid var(--secondary);
    border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.download-progress { height: 4px; background: rgba(0,0,0,0.1); border-radius: 2px; margin-top: 20px; overflow: hidden; }
.download-progress-bar { height: 100%; background: var(--secondary); width: 0%; transition: width 0.3s ease; }

/* ---------- TOAST ---------- */
.toast {
    position: fixed; bottom: 20px; right: 20px; background: var(--success); color: white;
    padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 10px; z-index: 1000;
    transform: translateY(100px); opacity: 0; transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--accent); }

/* ---------- SKELETONS ---------- */
.skeleton {
    background: linear-gradient(90deg, rgba(212,160,23,0.1) 0%, rgba(255,255,255,0.4) 50%, rgba(212,160,23,0.1) 100%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #2c3e50 0%, #3a4a5a 50%, #2c3e50 100%); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-card { height: 180px; margin-bottom: 25px; }
.skeleton-text { height: 20px; margin-bottom: 15px; width: 80%; }
.skeleton-text.short { width: 60%; }

/* Lazy section placeholders */
.lazy-section .video-container:empty::before,
.lazy-section .shorts-container:empty::before,
.lazy-section .gallery-container:empty::before,
.lazy-section .articles-container:empty::before,
.lazy-section .faq-container:empty::before {
    content: ""; display: block; height: 200px;
    background: linear-gradient(90deg, var(--light) 0%, rgba(255,255,255,0.5) 50%, var(--light) 100%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--border-radius);
}

/* ---------- ANIMATIONS ---------- */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }
.experience-title i.fa-chevron-down { margin-left: auto; transition: transform 0.3s ease; }
.experience-item.expanded .experience-title i.fa-chevron-down { transform: rotate(180deg); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; }
    .skills-container { grid-template-columns: 1fr; }
    .shorts-item { width: 280px; }
}
@media (max-width: 768px) {
    .gallery-container { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .samagams-info { flex-direction: column; text-align: center; }
    .samagams-credits { justify-content: center; }
}
@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .experience-header { flex-direction: column; }
    .skill-cards { grid-template-columns: 1fr; }
    .video-container, .articles-container { grid-template-columns: 1fr; }
    .gallery-container { grid-template-columns: repeat(2, 1fr); }
    .shorts-item { width: 260px; }
    .shorts-embed { height: 460px; }
    .samagams-container { padding: 20px; }
    .samagams-section .section-title h2 { font-size: 2rem; }
    .samagams-buttons { flex-direction: column; width: 100%; }
    .samagam-btn { width: 100%; justify-content: center; }
}