/* =========================================
   Luxury Chocolate Theme with Gold & Lighter Brown Side Glows
   ========================================= */
:root {
    /* Side Glow Auras preserved exactly as before */
    --bg-gradient: 
        radial-gradient(circle at 0% 30%, rgba(184, 134, 99, 0.25) 0%, transparent 40%),  
        radial-gradient(circle at 100% 65%, rgba(212, 163, 89, 0.22) 0%, transparent 42%), 
        #140e0c; 

    --panel-color: #241a16;     /* Warm Chocolate Cocoa for 3D Panels */
    --text-main: #f7f4f0;       /* Soft Alabaster Cream */
    --text-muted: #b5a8a1;      /* Elegant Warm Taupe Beige */
    --accent-light: #d4a359;    /* Metallic Gold Highlight Accent */
    
    /* 3D Shadows strictly preserved for structural depth */
    --shadow-3d-base: 
        12px 20px 40px rgba(0, 0, 0, 0.75), 
        -5px -5px 15px rgba(60, 45, 38, 0.45),
        inset 1px 1px 2px rgba(255, 255, 255, 0.06),
        inset -1px -1px 4px rgba(0, 0, 0, 0.6);

    --shadow-3d-hover: 
        15px 30px 50px rgba(0, 0, 0, 0.85), 
        -8px -8px 20px rgba(60, 45, 38, 0.55),
        inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.09),
        inset -2px -2px 6px rgba(0, 0, 0, 0.7);

    --shadow-inner: 
        inset 6px 6px 15px rgba(0, 0, 0, 0.95), 
        inset -3px -3px 10px rgba(60, 45, 38, 0.25);

    /* Moving Silk Gradient for Buttons & Feedback Cards (100% UNTOUCHED) */
    --gradient-smooth: linear-gradient(135deg, #584034, #241a16, #584034);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed; 
    color: var(--text-main);
    padding: 2rem;
    min-height: 100vh;
}

.smooth-hover {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease,
                background-position 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.6s ease;
    will-change: transform, box-shadow, background-position;
}

.smooth-text {
    transition: color 0.5s ease, transform 0.5s ease;
}

.panel-3d {
    background: var(--panel-color);
    border-radius: 24px;
    box-shadow: var(--shadow-3d-base);
    border: 1px solid rgba(255, 255, 255, 0.03); 
}

.panel-3d:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-3d-hover);
}

/* =========================================
   Header & NEW Earthy Side-Fade Pill Badges
   ========================================= */
.header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    margin-bottom: 2.5rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: url('https://res.cloudinary.com/dftnokzg6/image/upload/v1779865599/IMG_20260406_184319_503_qkguau.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 
        inset 3px 3px 6px rgba(0,0,0,0.6), 
        inset -3px -3px 6px rgba(255,255,255,0.1),
        5px 10px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px; 
}

/* 3D Capsule Pill Configurations */
.nav-links a {
    text-decoration: none;
    color: #1c1512; /* Clean dark text for crisp visibility over initial light fade */
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 24px;
    border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        4px 6px 12px rgba(0, 0, 0, 0.35),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5), /* Pillow 3D edge rim highlight */
        inset -1px -1px 3px rgba(0, 0, 0, 0.15);
    /* Retained feather-soft 0.7s fluid glide transitions */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.4s ease,
                border-color 0.4s ease;
    will-change: transform, box-shadow;
}

/* 1st Pill: WORK (Olive Green Side Fade - Hover goes Subtle Dark Olive) */
.nav-links a:nth-child(1) {
    background: linear-gradient(to right, #eedfd4 15%, #919976 100%);
}
.nav-links a:nth-child(1):hover {
    background: linear-gradient(to right, #3f4530, #222619);
    border-color: rgba(145, 153, 118, 0.2);
}

/* 2nd Pill: ABOUT ME (Camel Side Fade - Hover goes Subtle Dark Camel Brown) */
.nav-links a:nth-child(2) {
    background: linear-gradient(to right, #eedfd4 15%, #c69c6e 100%);
}
.nav-links a:nth-child(2):hover {
    background: linear-gradient(to right, #543f2b, #2d2116);
    border-color: rgba(198, 156, 110, 0.2);
}

/* 3rd Pill: CONTACT (Navy Blue Side Fade - Hover goes Midnight Dark Navy) */
.nav-links a:nth-child(3) {
    background: linear-gradient(to right, #eedfd4 15%, #6e8294 100%);
}
.nav-links a:nth-child(3):hover {
    background: linear-gradient(to right, #24303c, #131a22);
    border-color: rgba(110, 130, 148, 0.2);
}

/* 4th Pill: SOCIAL (Sand Beige Side Fade - Hover goes Rich Roasted Espresso) */
.nav-links a:nth-child(4) {
    background: linear-gradient(to right, #eedfd4 15%, #cfb9a5 100%);
}
.nav-links a:nth-child(4):hover {
    background: linear-gradient(to right, #52433a, #2b221d);
    border-color: rgba(207, 185, 165, 0.2);
}

/* Shared Hover States: Text flips to white, feather glide lift & expanded ultra shadows */
.nav-links a:hover {
    color: #ffffff; 
    transform: translateY(-4px) scale(1.025); 
    box-shadow: 
        0 24px 45px rgba(0, 0, 0, 0.9),           /* Hyper-realistic long signature drop shadow */
        0 6px 15px rgba(0, 0, 0, 0.5),             /* Ambient background separation layer */
        inset 1px 1px 2px rgba(255, 255, 255, 0.08), 
        inset -2px -2px 5px rgba(0, 0, 0, 0.8);    /* Deep volumetric bezel shadow */
}

/* =========================================
   Dashboard Layout
   ========================================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 1.5rem;
    height: fit-content;
}

/* =========================================
   BUTTONS
   ========================================= */
.tab-btn, .submit-btn, .social-button {
    background: var(--gradient-smooth);
    background-size: 200% auto;
    color: var(--text-main);
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center; 
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.5), 
        0 12px 25px rgba(0, 0, 0, 0.3),
        inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.1), 
        inset -2px -2px 4px rgba(0, 0, 0, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn {
    text-align: left; 
}

.tab-btn:not(.active) {
    background: #140e0c; 
    color: var(--text-muted);
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.4),
        inset 1px 1px 2px rgba(255,255,255,0.03),
        inset -1px -1px 3px rgba(0,0,0,0.5);
}

.tab-btn:hover, .submit-btn:hover, .social-button:hover, .tab-btn.active {
    background-position: right center; 
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.8), 
        0 20px 45px rgba(0, 0, 0, 0.6),
        inset 0 0 25px rgba(217, 185, 158, 0.2), 
        inset -4px -4px 15px rgba(0, 0, 0, 0.9), 
        inset 2px 2px 4px rgba(255, 255, 255, 0.25); 
}

/* TAB CONTENT CONTAINER: Subtle 0.5s speed lift */
.tab-content.panel-3d {
    padding: 3rem;
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.8s ease;
}

.tab-content.panel-3d.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-content.panel-3d.active:hover {
    transform: translateY(-3px) scale(1.002) !important; 
    box-shadow: var(--shadow-3d-hover) !important;
}

.section-title { 
    font-size: 2rem; 
    margin-bottom: 0.5rem; 
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.section-desc { 
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
}

/* =========================================
   Video Containers with Original 0.8s Flow Motion
   ========================================= */
.grid-cards {
    display: grid;
    gap: 2.5rem; 
}

.short-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.long-grid { grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); }

.card.panel-3d { 
    padding: 1.5rem; 
    border-radius: 20px; 
    position: relative;
    overflow: hidden; 
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.8s ease;
}

/* Clean background gradient glow layer */
.card.panel-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #443026 0%, #241a16 50%, #5a4135 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card.panel-3d:hover::before {
    opacity: 1;
}

.card.panel-3d:hover {
    transform: translateY(-4px) scale(1.01) !important; 
    box-shadow: var(--shadow-3d-hover) !important;       
    border-color: rgba(212, 163, 89, 0.25);
}

.card > * {
    position: relative;
    z-index: 2;
}

.reel-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-inner);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.card-img { 
    width: 100%;
    border-radius: 14px; 
    background: #0f0a08; 
    object-fit: cover; 
    display: block;
}

.short-img { aspect-ratio: 9 / 16; height: auto; }
.long-img { aspect-ratio: 16 / 9; height: auto; box-shadow: var(--shadow-inner); }

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(36, 26, 22, 0.65);
    backdrop-filter: blur(6px);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0; 
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none; 
    z-index: 2;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.2), 0 5px 15px rgba(0,0,0,0.8);
}

.reel-wrapper.paused .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15); 
}

.card h3 { 
    font-size: 1.25rem; 
    margin-top: 1.5rem; 
    margin-left: 0.5rem; 
    color: var(--text-main);
}
.card p { 
    color: var(--text-muted); 
    margin-top: 0.5rem; 
    margin-left: 0.5rem; 
    font-size: 0.95rem; 
}

/* =========================================
   IMAGE LAYOUT (Combined Section)
   ========================================= */
.about-feedback-wrapper {
    margin-top: 3rem;
    padding: 3.5rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.title-with-dot {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dot {
    width: 14px;
    height: 14px;
    background-color: var(--text-muted);
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6), inset -1px -1px 2px rgba(255,255,255,0.1);
}

/* Left Side: About Me */
.about-recessed {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    background: #140e0c; 
    box-shadow: var(--shadow-inner); 
    border: 1px solid rgba(255, 255, 255, 0.02);
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    flex-grow: 1; 
}

.skill-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto; 
}

.about-recessed .badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-light);
    background: #1e1512;
    box-shadow: var(--shadow-inner);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.about-recessed .badge i {
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Right Side: Feedback Column */
.feedback-column {
    display: flex;
    flex-direction: column;
}

.feedback-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* MOVING GRADIENT REMAINED 100% UNTOUCHED */
.premium-empty-card {
    min-height: 140px; 
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.2rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gradient-smooth);
    background-size: 200% auto;
    box-shadow: 
        10px 15px 25px rgba(0, 0, 0, 0.6),            
        -5px -5px 15px rgba(60, 45, 38, 0.45),         
        inset 0 0 15px rgba(217, 185, 158, 0.1),      
        inset 3px 3px 10px rgba(0, 0, 0, 0.5),        
        inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.15); 
}

.premium-empty-card:hover {
    transform: translateY(-4px) scale(1.015);
    background-position: right center; 
    box-shadow: 
        15px 25px 40px rgba(0, 0, 0, 0.8), 
        -8px -8px 20px rgba(60, 45, 38, 0.55),
        inset 0 0 25px rgba(217, 185, 158, 0.2),      
        inset 4px 4px 12px rgba(0, 0, 0, 0.7), 
        inset 2px 2px 4px rgba(255, 255, 255, 0.25);
}

.feedback-text {
    font-size: 1.05rem;
    font-style: italic; 
    line-height: 1.7;
    color: var(--text-muted); 
    margin-bottom: 1.5rem;
}

.feedback-author {
    font-size: 0.95rem;
    font-weight: 700; 
    color: var(--text-main); 
    text-align: right; 
    margin-top: auto; 
}

/* =========================================
   Let's Connect Section
   ========================================= */
.contact-section {
    margin-top: 3rem;
    margin-bottom: 4rem; 
    padding: 3rem;
}

.contact-form-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px; 
}

.input-3d {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #140e0c; 
    box-shadow: var(--shadow-inner);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.input-3d::placeholder { color: #7a6e67; }

.input-3d:focus {
    box-shadow: 
        inset 6px 6px 15px rgba(0, 0, 0, 0.95), 
        inset -3px -3px 8px rgba(60, 55, 50, 0.4);
    border-color: rgba(212, 163, 89, 0.2);
}

.contact-form-large textarea { height: 140px; }

.submit-btn {
    width: max-content;
    padding: 14px 35px;
}

/* =========================================
   CINEMATIC SOCIAL LINKS MODAL (Popup)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 16, 14, 0);
    backdrop-filter: blur(0px); 
    display: flex; 
    visibility: hidden; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none; 
    transition: background 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                backdrop-filter 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 1.5s; 
}

.modal-overlay.show {
    visibility: visible;
    pointer-events: auto;
    background: rgba(22, 16, 14, 0.85); 
    backdrop-filter: blur(12px); 
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 3rem 2.5rem;
    text-align: center;
    opacity: 0;
    transform: scale(0.7) translateY(60px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.4s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.social-modal-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 2rem;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.linkedin, .whatsapp {
    background-color: transparent; 
}

/* =========================================
   ONLY MOBILE FIX
   ========================================= */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    body {
        padding: 15px !important;
    }

    .header-panel {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .dashboard-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .tabs-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .short-grid, .long-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        width: 100% !important;
    }

    .card {
        width: 100% !important;
        max-width: 400px !important; 
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .short-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 9 / 16 !important;
        object-fit: cover !important;
    }

    .long-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    .split-layout {
        grid-template-columns: 1fr !important; 
        gap: 2.5rem !important;
    }
    .about-feedback-wrapper {
        padding: 1.5rem !important;
    }
    .about-recessed {
        padding: 2rem 1.5rem !important;
    }

    .contact-form-large, .submit-btn {
        width: 100% !important;
    }
    .modal-content {
        width: 95% !important;
    }
}