/* ===================================
   Praveen Singh Portfolio - Professional Design
   COMPLETE FIXED VERSION
   All Issues Resolved
   =================================== */

:root {
    /* Professional Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    
    /* Neutral Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #1e293b;
    
    /* Text Colors */
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Borders & Shadows */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 60px rgba(37, 99, 235, 0.12);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Images - Always Visible */
img { 
    max-width: 100%; 
    display: block; 
    height: auto;
    opacity: 1;
}

a { 
    text-decoration: none; 
    color: inherit;
    transition: color 0.2s ease;
}

button { 
    border: none; 
    background: none; 
    cursor: pointer; 
    font-family: inherit;
    transition: all 0.3s ease;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px;
}

/* ===================================
   LOADER
   =================================== */
.loader {
    position: fixed; 
    inset: 0; 
    background: var(--bg);
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 9999; 
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hide { 
    opacity: 0; 
    pointer-events: none;
    visibility: hidden;
}

.spinner {
    width: 48px; 
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* ===================================
   HEADER & NAVIGATION - ALWAYS VISIBLE
   =================================== */
.header {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0;
    height: 72px; 
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000; 
    transition: all 0.3s ease;
    transform: translateY(0) !important; /* NEVER HIDE */
}

.header.scrolled {
    box-shadow: var(--shadow);
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
}

.header .container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 100%; 
}

/* ===================================
   LOGO STYLES - FIXED
   =================================== */
.logo { 
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px; 
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span { 
    color: var(--primary); 
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-name span {
    color: var(--primary);
}

.logo-tagline {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header.scrolled .logo-img {
    height: 32px;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav { 
    display: none; 
}

.nav-link { 
    padding: 8px 16px; 
    font-weight: 500; 
    color: var(--text-light); 
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--primary); 
    background: rgba(37, 99, 235, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Menu Button */
.menu-btn { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bg-alt);
    align-items: center;
    justify-content: center;
}

.menu-btn span { 
    width: 22px; 
    height: 2px; 
    background: var(--text); 
    border-radius: 2px; 
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) { 
    transform: rotate(45deg) translate(6px, 6px); 
}

.menu-btn.active span:nth-child(2) { 
    opacity: 0; 
    transform: scaleX(0);
}

.menu-btn.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(6px, -6px); 
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        position: fixed; 
        top: 72px; 
        left: 0; 
        right: 0;
        background: var(--bg); 
        padding: 20px 24px;
        flex-direction: column; 
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%); 
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .nav.active { 
        display: flex; 
        transform: translateY(0); 
        opacity: 1; 
    }
    
    .nav-link { 
        padding: 14px 0; 
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }
    
    .nav-link:last-child { 
        border-bottom: none; 
    }
    
    .nav-link.active::after { 
        display: none; 
    }
    
    .logo-text {
        display: none;
    }
}

@media (min-width: 769px) {
    .nav { 
        display: flex; 
        gap: 4px;
    }
    .menu-btn { 
        display: none; 
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh; 
    padding: 120px 0 80px;
    background: linear-gradient(135deg, 
        #f8fafc 0%,
        #f1f5f9 50%,
        #e2e8f0 100%);
    display: flex; 
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-box { 
    text-align: center; 
    position: relative;
    z-index: 1;
}

/* HERO ICON - BIGGER SIZE */
.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    border: 2px solid var(--border-light);
}

@keyframes float { 
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-hi { 
    font-size: 15px; 
    color: var(--text-light);
    margin-bottom: 8px; 
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-name { 
    font-size: clamp(40px, 8vw, 56px); 
    font-weight: 800; 
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-title { 
    font-size: clamp(18px, 4vw, 24px); 
    font-weight: 400; 
    color: var(--text-light);
    margin-bottom: 20px; 
}

.hero-desc { 
    max-width: 540px; 
    margin: 0 auto 24px; 
    font-size: 16px; 
    color: var(--text-light);
    line-height: 1.7; 
}

.hero-tags { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 32px; 
}

.hero-tags span {
    background: var(--bg-card); 
    padding: 8px 16px;
    border-radius: 50px; 
    font-size: 13px;
    display: flex; 
    align-items: center; 
    gap: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: default;
}

.hero-tags span:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-tags i { 
    color: var(--primary); 
    font-size: 12px;
}

.hero-stats { 
    display: flex; 
    justify-content: center; 
    gap: 32px; 
    margin-bottom: 32px; 
}

.stat { 
    text-align: center; 
}

.stat strong { 
    display: block; 
    font-size: 28px; 
    color: var(--primary); 
    font-weight: 700;
    margin-bottom: 4px;
}

.stat span { 
    font-size: 12px; 
    color: var(--text-light); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-btns { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 16px; 
}

/* Buttons */
.btn {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    padding: 14px 28px; 
    border-radius: 50px;
    font-weight: 600; 
    font-size: 15px; 
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.btn-outline { 
    border-color: var(--border); 
    color: var(--text);
    background: var(--bg-card);
}

.btn-outline:hover { 
    border-color: var(--primary); 
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===================================
   SECTIONS
   =================================== */
.section { 
    padding: 80px 0; 
    position: relative;
}

.section-gray { 
    background: var(--bg-alt); 
}

.section-dark { 
    background: var(--bg-dark); 
    color: #fff;
}

.sec-head { 
    text-align: center; 
    margin-bottom: 48px; 
}

.sec-head h2 { 
    font-size: clamp(28px, 5vw, 36px); 
    font-weight: 700; 
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.sec-head h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-dark .sec-head h2 {
    color: #fff;
}

.sec-head p { 
    color: var(--text-light); 
    font-size: 16px;
    max-width: 500px;
    margin: 16px auto 0;
}

.section-dark .sec-head p { 
    color: rgba(255,255,255,0.8); 
}

/* ===================================
   SHOWREEL VIDEO - HOVER TO PLAY SOUND
   =================================== */
.video-wrap { 
    max-width: 900px; 
    margin: 0 auto; 
}

.video-box {
    position: relative; 
    width: 100%; 
    padding-bottom: 56.25%;
    background: #000; 
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.video-box iframe { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none;
}

.video-box.playing iframe {
    pointer-events: all;
}

/* Play Overlay */
.video-play {
    position: absolute; 
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    gap: 12px;
    color: #fff; 
    cursor: pointer; 
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: all;
}

.video-play i {
    width: 64px; 
    height: 64px; 
    background: var(--primary);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.video-play:hover i {
    transform: scale(1.1);
}

.video-play span { 
    font-size: 14px; 
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hide overlay on hover */
.video-box:hover .video-play,
.video-box.playing .video-play {
    opacity: 0;
    pointer-events: none;
}

/* Sound Button */
.video-sound {
    position: absolute; 
    bottom: 16px; 
    right: 16px;
    width: 44px; 
    height: 44px; 
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%; 
    color: #fff; 
    font-size: 16px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 10; 
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
}

.video-box:hover .video-sound,
.video-box.playing .video-sound {
    opacity: 1;
}

.video-sound:hover { 
    background: var(--primary); 
    transform: scale(1.1);
}

/* ===================================
   REELS SECTION - HOVER TO PLAY SOUND
   =================================== */
.reels-wrap { 
    margin: 0 -24px; 
    padding: 0 24px; 
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.reels-track {
    display: flex; 
    gap: 20px; 
    padding: 10px 0 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.reels-track::-webkit-scrollbar { 
    height: 6px; 
}

.reels-track::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.reels-track::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 10px; 
}

.reel-card {
    flex: 0 0 280px; 
    scroll-snap-align: start;
    cursor: pointer; 
    transition: all 0.3s ease;
}

.reel-card.active { 
    transform: scale(1.02); 
}

.reel-video {
    position: relative; 
    width: 100%; 
    height: 500px;
    background: #000; 
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: var(--shadow);
    user-select: none;
    -webkit-user-select: none;
}

.reel-video iframe { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
}

.reel-video.playing iframe {
    pointer-events: all;
}

/* Reel Play Button */
.reel-play {
    position: absolute; 
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: all;
}

.reel-play i {
    width: 56px; 
    height: 56px; 
    background: var(--primary);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 20px; 
    color: #fff;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.reel-card:hover .reel-play i {
    transform: scale(1.1);
}

/* Hide play button on hover */
.reel-card:hover .reel-play,
.reel-video.playing .reel-play {
    opacity: 0;
    pointer-events: none;
}

/* Playing Indicator */
.reel-playing {
    position: absolute; 
    top: 12px; 
    left: 12px;
    background: var(--primary); 
    color: #fff;
    padding: 6px 14px; 
    border-radius: 50px;
    font-size: 12px; 
    font-weight: 600;
    display: none; 
    align-items: center; 
    gap: 8px;
    backdrop-filter: blur(10px);
}

.reel-card:hover .reel-playing,
.reel-card.active .reel-playing { 
    display: flex; 
}

/* Sound Bars Animation */
.bars { 
    display: flex; 
    gap: 3px; 
    height: 14px; 
    align-items: center; 
}

.bars span {
    width: 3px; 
    background: #fff; 
    border-radius: 2px;
    animation: bars 0.6s ease infinite;
}

.bars span:nth-child(1) { 
    height: 8px; 
}

.bars span:nth-child(2) { 
    height: 12px; 
    animation-delay: 0.1s; 
}

.bars span:nth-child(3) { 
    height: 10px; 
    animation-delay: 0.2s; 
}

@keyframes bars { 
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); }
}

.reel-card.active .reel-video { 
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4); 
}

.reel-title { 
    font-size: 15px; 
    font-weight: 600; 
    margin-top: 16px; 
    color: var(--text); 
}

.reel-sub { 
    font-size: 13px; 
    color: var(--text-light); 
    margin-top: 4px;
}

/* Swipe Hint */
.swipe-hint {
    text-align: center; 
    margin-top: 20px;
    font-size: 13px; 
    color: var(--text-light);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

.swipe-hint i { 
    color: var(--primary); 
    animation: swipe 2s ease-in-out infinite;
}

@keyframes swipe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@media (min-width: 769px) { 
    .swipe-hint { 
        display: none; 
    } 
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card); 
    padding: 30px 20px;
    border-radius: var(--radius-lg); 
    text-align: center;
    border: 1px solid var(--border); 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.service-card i {
    font-size: 32px; 
    color: var(--primary); 
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 { 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: var(--text);
}

.service-card p { 
    font-size: 13px; 
    color: var(--text-light); 
    line-height: 1.5;
}

/* ===================================
   ABOUT SECTION - PROFILE PIC FIXED
   =================================== */
.about-grid { 
    display: grid; 
    gap: 40px; 
    align-items: center; 
}

.about-img { 
    max-width: 320px; 
    margin: 0 auto;
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

/* PROFILE PICTURE - FULLY VISIBLE, HEAD NOT CUT */
.about-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    object-position: top center;
    opacity: 1;
    visibility: visible;
}

.profile-pic {
    width: 100%;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 3/4;
}

.about-img:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.about-text h2 {
    font-size: 32px; 
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.about-text h3 { 
    font-size: 18px; 
    color: var(--primary); 
    margin-bottom: 20px; 
    font-weight: 500;
}

.about-text p { 
    margin-bottom: 16px; 
    font-size: 15px; 
    color: var(--text-light); 
    line-height: 1.7; 
}

.about-text strong {
    color: var(--text);
}

.about-stats { 
    display: flex; 
    gap: 20px; 
    margin-top: 32px; 
    flex-wrap: wrap; 
}

.about-stats > div {
    flex: 1; 
    min-width: 100px; 
    background: var(--bg-card);
    padding: 20px 15px; 
    border-radius: var(--radius);
    text-align: center; 
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.about-stats > div:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.about-stats i { 
    font-size: 24px; 
    color: var(--primary); 
    margin-bottom: 12px; 
}

.about-stats strong { 
    display: block; 
    font-size: 20px; 
    color: var(--text); 
    margin-bottom: 4px;
    font-weight: 700;
}

.about-stats span { 
    font-size: 12px; 
    color: var(--text-light); 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .about-grid { 
        grid-template-columns: 1fr 1.5fr; 
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid { 
    display: grid; 
    gap: 20px; 
    max-width: 800px; 
    margin: 0 auto; 
}

.contact-card {
    background: rgba(255, 255, 255, 0.1); 
    padding: 32px 24px;
    border-radius: var(--radius-lg); 
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover { 
    background: rgba(255, 255, 255, 0.15); 
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

.contact-card i { 
    font-size: 32px; 
    color: var(--secondary); 
    margin-bottom: 16px; 
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-card h4 { 
    font-size: 17px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #fff;
}

.contact-card p { 
    font-size: 14px; 
    color: rgba(255, 255, 255, 0.9); 
    line-height: 1.5;
    word-break: break-word;
}

@media (min-width: 600px) { 
    .contact-grid { 
        grid-template-columns: repeat(3, 1fr); 
    } 
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 24px; 
    text-align: center;
    background: var(--bg-alt); 
    border-top: 1px solid var(--border);
}

.footer p { 
    font-size: 14px; 
    color: var(--text-light); 
}

.footer a {
    color: var(--primary);
}

.footer a:hover {
    text-decoration: underline;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero { 
        padding: 100px 0 60px; 
    }
    
    .hero-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .hero-stats { 
        gap: 16px; 
    }
    
    .hero-stats > .stat {
        flex: 1;
        min-width: 80px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    /* About */
    .about-img {
        max-width: 280px;
    }
    
    .about-stats {
        gap: 12px;
    }
    
    .about-stats > div {
        min-width: 90px;
        padding: 16px 12px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    /* Typography */
    .sec-head h2 {
        font-size: 28px;
    }
    
    .hero-name {
        font-size: 36px;
    }
    
    /* Reels */
    .reel-card {
        flex: 0 0 240px;
    }
    
    .reel-video {
        height: 420px;
    }
    
    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   SELECTION COLOR
   =================================== */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}




/* ===================================
   HINT TEXT - DESKTOP/MOBILE SPECIFIC
   =================================== */
.desktop-hint {
    display: none;
}

.mobile-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 769px) {
    .desktop-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .mobile-hint {
        display: none;
    }
}

.desktop-hint i,
.mobile-hint i {
    color: var(--primary);
    font-size: 14px;
}

.mobile-only {
    display: inline;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* ===================================
   DARK MODE TOGGLE BUTTON
   =================================== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: rotate(20deg);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 4px;
    }
}

/* ===================================
   DARK MODE STYLES
   =================================== */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --bg-dark: #0f172a;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --text-lighter: #64748b;
    --border: #334155;
    --border-light: #1e293b;
}

/* Header Dark */
[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

/* Logo Dark */
[data-theme="dark"] .logo-name {
    color: var(--text);
}

/* Hero Dark */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, 
        #0f172a 0%,
        #1e293b 50%,
        #0f172a 100%);
}

[data-theme="dark"] .hero::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .hero-icon {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .hero-tags span {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

/* Sections Dark */
[data-theme="dark"] .section-gray {
    background: var(--bg-alt);
}

[data-theme="dark"] .sec-head h2 {
    color: var(--text);
}

/* Service Cards Dark */
[data-theme="dark"] .service-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .service-card h3 {
    color: var(--text);
}

/* About Section Dark */
[data-theme="dark"] .about-text h2 {
    color: var(--text);
}

[data-theme="dark"] .about-stats > div {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .about-stats strong {
    color: var(--text);
}

/* Reel Cards Dark */
[data-theme="dark"] .reel-title {
    color: var(--text);
}

/* Buttons Dark */
[data-theme="dark"] .btn-outline {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Menu Button Dark */
[data-theme="dark"] .menu-btn {
    background: var(--bg-alt);
}

[data-theme="dark"] .menu-btn span {
    background: var(--text);
}

/* Mobile Nav Dark */
[data-theme="dark"] .nav {
    background: var(--bg);
    border-color: var(--border);
}

[data-theme="dark"] .nav-link {
    border-bottom-color: var(--border);
}

/* Theme Toggle Dark */
[data-theme="dark"] .theme-toggle {
    background: var(--bg-alt);
    border-color: var(--border);
    color: #fbbf24; /* Yellow sun color */
}

/* Footer Dark */
[data-theme="dark"] .footer {
    background: var(--bg-alt);
    border-top-color: var(--border);
}

/* Scrollbar Dark */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    border-color: var(--bg-alt);
}

/* Back to Top Dark */
[data-theme="dark"] .back-to-top {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Smooth Transition for Theme Change */
body,
.header,
.hero,
.section,
.service-card,
.about-stats > div,
.btn-outline,
.footer,
.theme-toggle,
.nav {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease;
}


/* ===================================
   STATS COUNTER ANIMATION
   =================================== */
.stat-number {
    display: block;
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-number.animated {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===================================
   VIDEO PLAY OVERLAY - ALWAYS VISIBLE UNTIL CLICKED
   =================================== */
.video-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: all;
}

.video-box.playing .video-play {
    opacity: 0;
    pointer-events: none;
}

/* Don't hide on hover - only on click */
.video-box:hover .video-play {
    opacity: 1;
    pointer-events: all;
}

.video-box.playing:hover .video-play {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   REEL PLAY OVERLAY - ALWAYS VISIBLE UNTIL CLICKED
   =================================== */
.reel-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: all;
}

.reel-card.active .reel-play,
.reel-video.playing .reel-play {
    opacity: 0;
    pointer-events: none;
}

/* Don't hide on hover - only on click */
.reel-card:hover .reel-play {
    opacity: 1;
    pointer-events: all;
}

.reel-card.active:hover .reel-play {
    opacity: 0;
    pointer-events: none;
}

/* Playing indicator only shows when active */
.reel-playing {
    display: none;
}

.reel-card.active .reel-playing {
    display: flex;
}