/* NexAura Studios - Light Theme CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors */
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --foreground: #1e293b;
    --foreground-muted: #64748b;
    
    /* Premium Sky Blue Gradient Theme */
    --primary: #6ec1e4;
    --primary-dark: #3a8bc2;
    --primary-light: #93d3f0;
    --primary-alpha: rgba(110, 193, 228, 0.1);
    
    /* Card and Surface Colors */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --glass-bg: rgba(248, 250, 252, 0.8);
    --glass-border: rgba(226, 232, 240, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(110, 193, 228, 0.3);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Base Typography */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Button Components */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-hero:hover::before {
    opacity: 0.2;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    color: var(--foreground);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--primary-alpha);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* Header Styles */
.glass-nav {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(226, 232, 240, 0.154);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 4rem;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .glass-nav {
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        max-width: var(--container-max-width);
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .glass-nav {
        top: 8px;
        left: 8px;
        right: 8px;
        width: calc(100% - 16px);
        margin: 0 auto;
        height: 3.5rem;
    }
}

@media (max-width: 480px) {
    .glass-nav {
        top: 4px;
        left: 8px;
        right: 8px;
        width: calc(100% - 16px);
        margin: 0 auto;
        height: 3rem;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1.5rem; /* Adjusted padding for rounded header */
}

@media (max-width: 767px) {
    .nav-content {
        height: 3.5rem;
        padding: 0 1rem; /* Reduced padding for mobile */
    }
}

@media (max-width: 480px) {
    .nav-content {
        height: 3rem;
        padding: 0 0.75rem; /* Even smaller padding for very small screens */
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (max-width: 767px) {
    .logo {
        font-size: 1.25rem; /* Smaller logo for mobile */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem; /* Even smaller logo for very small screens */
    }
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}
.nav-link {
    color: var(--foreground); /* Use darker foreground color for better contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow for readability */
}

.logo {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow for logo */
}

.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    background: var(--primary-alpha);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: var(--transition-fast);
    border-radius: 1px;
}

@media (max-width: 767px) {
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

/* === EDITED/FIXED BLOCK === */
.mobile-nav {
    position: fixed;
    top: calc(16px + 4rem); /* Default: 16px header top + 4rem header height */
    left: 16px;
    right: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
    .mobile-nav {
        top: calc(8px + 3.5rem); /* Mobile: 8px header top + 3.5rem header height */
        left: 8px;
        right: 8px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        top: calc(4px + 3rem); /* Small Mobile: 4px header top + 3rem header height */
        left: 4px;
        right: 4px;
        padding: 0.75rem;
    }
}
/* === END OF EDITED BLOCK === */


.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-fast);
    text-align: center;
}

.mobile-nav-link:hover {
    color: var(--primary);
    background: var(--primary-alpha);
    border-radius: var(--radius-sm);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .mobile-nav-link {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
    padding-top: 4rem;
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 3.5rem;
        min-height: calc(100vh - 1rem);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 3rem;
        min-height: calc(100vh - 0.5rem);
    }
}

.bg-gradient-subtle {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-alpha) 0%, transparent 50%);
    opacity: 0.3;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-alpha);
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    color: var(--foreground);
}

.badge-icon {
    color: var(--primary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--foreground-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.play-icon {
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.btn-hero:hover .play-icon {
    transform: scale(1.1);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--foreground-muted);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--foreground-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Expertise Section */
.expertise-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}

.expertise-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.expertise-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-alpha);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--foreground-muted);
}

.card-toggle {
    color: var(--primary);
    transition: var(--transition-fast);
}

.card-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-content.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.card-content-inner {
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.card-content p {
    color: var(--foreground-muted);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--background);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.tabs-container {
    display: inline-flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 0.25rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--foreground-muted);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-glow);
}

.tab-btn:hover:not(.active) {
    color: var(--primary);
    background: var(--primary-alpha);
}

.portfolio-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.portfolio-grid.long .portfolio-overlay,
.portfolio-grid.short .portfolio-overlay {
    pointer-events: none;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* Ensure aspect ratio for iframes */
.portfolio-item.aspect-video .video-wrapper {
    aspect-ratio: 16/9;
}

.portfolio-item.aspect-short .video-wrapper {
    aspect-ratio: 9/16;
}

/* Adjust portfolio item to accommodate iframe */
.portfolio-item {
    position: relative;
    overflow: hidden;
    background: #000; /* Fallback background for videos */
}

/* Ensure overlay appears above video */
.portfolio-overlay {
    z-index: 1;
}

/* Thumbnails layout (unchanged) */
.portfolio-grid.thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Long videos layout */
.portfolio-grid.long {
    grid-template-columns: repeat(3, 1fr); /* 3 videos per row on desktop */
}

@media (max-width: 767px) {
    .portfolio-grid.long {
        grid-template-columns: 1fr; /* 1 video per row on mobile */
    }
}

/* Short videos layout */
.portfolio-grid.short {
    grid-template-columns: repeat(5, 1fr); /* 5 videos per row on desktop */
}

@media (max-width: 767px) {
    .portfolio-grid.short {
        grid-template-columns: 1fr; /* 1 video per row on mobile */
    }
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item.aspect-video {
    aspect-ratio: 16/9;
}

.portfolio-item.aspect-short {
    aspect-ratio: 9/16;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-alpha);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.play-button:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.portfolio-cta {
    text-align: center;
    margin-top: 4rem;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--foreground-muted);
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}

/* Client Stats Panel - 1 Card on Mobile, 4 Cards on Desktop */
/* Client Stats Panel - 1 Card on Mobile, 4 Cards on Desktop */
.client-stats-panel {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: 1fr; /* 1 column on mobile */
}

@media (min-width: 1024px) {
    .client-stats-panel {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}
/* Single Short-Form Video Container per Card */
.video-container {
    margin-bottom: 1.5rem;
    text-align: center; /* Center the single video */
}

.thumbnail-item {
    position: relative;
    width: 180px; /* Fixed width to enforce consistent 9:16 scaling */
    height: 320px; /* Calculated height for exact 9:16 (180 * 16/9 ≈ 320) */
    aspect-ratio: 9/16; /* Enforces vertical 9:16 ratio */
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000; /* Fallback for video loading */
    margin: 0 auto; /* Center within container */
}

.thumbnail-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills the 9:16 frame exactly, cropping if needed */
    display: block;
}

/* View Count Overlay on Video */
.view-count {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    z-index: 2; /* Ensures it overlays the video */
}

/* Responsive Adjustments for 9:16 Videos */
@media (max-width: 767px) {
    .thumbnail-item {
        width: 140px; /* Smaller on mobile for better fit */
        height: 248px; /* Maintains 9:16 (140 * 16/9 ≈ 248) */
    }
}

@media (min-width: 1024px) {
    .thumbnail-item {
        width: 200px; /* Larger on desktop */
        height: 356px; /* Maintains 9:16 (200 * 16/9 ≈ 356) */
    }
}

/* Adjust Card Padding for Single Video Focus */
.client-stats-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem; /* Slightly increased for balanced layout with single video */
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: center; /* Center content in card */
}
.client-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stats-header {
    margin-bottom: 1.5rem;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.profile-stats {
    font-size: 0.85rem;
    color: var(--foreground-muted);
}

.video-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-count {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.performance-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avg-views {
    text-align: center;
}

.avg-views .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.avg-views .stat-label {
    font-size: 0.8rem;
    color: var(--foreground-muted);
}

.performance-chart {
    flex: 1;
    max-width: 120px;
    height: 50px;
}

.performance-chart canvas {
    width: 100%;
    height: 100%;
}
/* Footer Section */
.footer-section {
    padding: var(--section-padding);
    background: var(--background-secondary);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-brand .logo {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.brand-desc {
    color: var(--foreground-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--foreground-muted);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-alpha);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--foreground-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Contact info spacing is handled by individual contact-item margins */

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--foreground-muted);
}

.contact-item svg {
    color: var(--primary);
}
/* Remove hover effects for video items */
.portfolio-grid.long .portfolio-overlay,
.portfolio-grid.short .portfolio-overlay {
    display: none; /* Ensure overlay is not displayed for videos */
}

/* Style the static play button for videos */
.play-button-static {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(110, 193, 228, 0.7); /* Semi-transparent primary color */
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    z-index: 2; /* Ensure button is above iframe */
    pointer-events: none; /* Allow clicks to pass through to iframe */
}

/* Ensure video wrapper allows interaction */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Adjust portfolio item to accommodate iframe */
.portfolio-item {
    position: relative;
    overflow: hidden;
    background: #000; /* Fallback background for videos */
}

/* Keep hover effects for thumbnails (optional) */
.portfolio-grid.thumbnails .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-grid.thumbnails .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Ensure iframe is clickable */
.portfolio-video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    z-index: 1; /* Ensure iframe is below play button but clickable */
}
/* Newsletter Section */
.newsletter-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.newsletter-desc {
    color: var(--foreground-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--background);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.newsletter-btn {
    white-space: nowrap;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--foreground-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Client Testimonials Subsection */
.client-testimonials {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Infinite Carousel */
.infinite-carousel {
    overflow: hidden; /* Changed from 'none' to 'hidden' */
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite; /* Adjust duration for speed */
}

.carousel-track:hover {
    animation-play-state: paused; /* Pause on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move half the track (since duplicated) */
    }
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    margin-right: 1.5rem; /* Gap between cards */
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 1rem); /* 3 cards visible, accounting for gap */
        min-width: calc(33.333% - 1rem);
    }
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--foreground-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
    font-size: 1rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--foreground-muted);
}