/* ============================================
   TAKINTI AGENCY - Premium Design System
   Modern Dark Theme with Glassmorphism
   ============================================ */

/* =========================
   CSS CUSTOM PROPERTIES
   ========================= */
:root {
    /* Color Palette */
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --primary-rgb: 139, 92, 246;
    
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --secondary-rgb: 236, 72, 153;
    
    --accent: #06B6D4;
    --accent-rgb: 6, 182, 212;
    
    /* Backgrounds */
    --bg-primary: #0A0A0F;
    --bg-secondary: #111118;
    --bg-tertiary: #1A1A25;
    --bg-card: rgba(26, 26, 37, 0.6);
    --footer-bg: #0A0A0F;
    
    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(236,72,153,0.08) 50%, rgba(6,182,212,0.05) 100%);
    --gradient-card: linear-gradient(145deg, rgba(139,92,246,0.1) 0%, rgba(236,72,153,0.05) 100%);
    
    /* Glass */
    --glass-bg: rgba(26, 26, 37, 0.7);
    --glass-border: rgba(139, 92, 246, 0.15);
    --glass-blur: 20px;
    
    /* Borders & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* =========================
   LIGHT MODE
   ========================= */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-tertiary: #E2E8F0;
    --bg-card: rgba(255, 255, 255, 0.8);
    --footer-bg: #1E293B;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --gradient-hero: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(236,72,153,0.05) 50%, rgba(6,182,212,0.03) 100%);
    --gradient-card: linear-gradient(145deg, rgba(139,92,246,0.06) 0%, rgba(236,72,153,0.03) 100%);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(139, 92, 246, 0.2);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.15);
}

[data-theme="light"] .hero-video-overlay {
    background: rgba(248, 250, 252, 0.75);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .top-bar {
    background: #1E293B;
    color: #F8FAFC;
}

[data-theme="light"] .slide-caption {
    background: linear-gradient(to top, rgba(248,250,252,0.95) 0%, transparent 100%);
}

[data-theme="light"] .slide-caption h3 {
    color: #0F172A;
}

[data-theme="light"] .slide-caption p {
    color: #475569;
}

[data-theme="light"] .reference-item {
    filter: grayscale(100%) brightness(0.5);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-full);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all var(--transition-base);
    margin-right: 8px;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.theme-toggle .bi-moon-fill { display: inline; }
.theme-toggle .bi-sun-fill { display: none; }
[data-theme="light"] .theme-toggle .bi-moon-fill { display: none; }
[data-theme="light"] .theme-toggle .bi-sun-fill { display: inline; }

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* =========================
   SKIP NAVIGATION
   ========================= */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-nav:focus {
    top: 10px;
    color: white;
}

/* =========================
   CONTAINER
   ========================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    padding: 10px 26px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =========================
   TOP BAR
   ========================= */
.top-bar {
    background: rgba(10, 10, 15, 0.9);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-social {
    display: flex;
    gap: 16px;
}

.top-bar-social a {
    color: #94A3B8;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.top-bar-social a:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}

.top-bar-contact {
    display: flex;
    gap: 24px;
}

.top-bar-contact a {
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.top-bar-contact a:hover {
    color: var(--primary-light);
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-text {
    color: var(--text-primary);
}

.brand-accent {
    color: var(--primary-light);
}

.brand-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    max-height: none; /* override any default CSS frameworks */
}

.site-footer .brand-logo {
    height: 65px;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.nav-cta {
    font-size: 0.88rem;
    padding: 10px 22px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* =========================
   SECTION TYPOGRAPHY
   ========================= */
.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
}

.section-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .section-tag {
    padding-left: 0;
}

.section-header .section-tag::before {
    display: none;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-badge i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 650px;
    text-align: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 36px;
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-subtle);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-scroll-indicator a {
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* =========================
   REFERENCES / MARQUEE
   ========================= */
.references {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.references .section-label {
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 700;
}

.references-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 64px;
    animation: marquee calc(var(--ref-count, 6) * 5s) linear infinite;
    width: max-content;
}

.reference-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    opacity: 0.65;
    filter: grayscale(100%) brightness(2);
    transition: all var(--transition-base);
    text-decoration: none;
    outline: none;
}

a.reference-item {
    cursor: pointer;
}

.reference-item:hover {
    opacity: 1;
    filter: none;
}

.reference-item img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.reference-placeholder .placeholder-logo {
    width: 220px;
    height: 100px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================
   CUSTOM MODALS
   ========================= */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-modal.active {
    visibility: visible;
    opacity: 1;
}

.custom-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.custom-modal-content {
    position: relative;
    background: var(--bg-card);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
}

.custom-modal.active .custom-modal-content {
    transform: translateY(0) scale(1);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.custom-modal-header h3 {
    font-size: 1.4rem;
    font-family: var(--font-display);
    margin: 0;
}

.custom-modal-close {
    background: rgba(var(--primary-rgb), 0.1);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal-close:hover {
    background: var(--primary);
    color: white;
}

.custom-modal-body {
    padding: 32px;
    overflow-y: auto;
}

.refs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
    align-items: center;
}

.ref-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    text-decoration: none;
}

.ref-grid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.2s;
}

a.ref-grid-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

a.ref-grid-item:hover img {
    filter: none;
}

.mt-5 { margin-top: 40px; }
.text-center { text-align: center; }

/* =========================
   ABOUT SECTION
   ========================= */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-decoration {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    z-index: -1;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    padding: 20px 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.experience-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.experience-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-feature i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* =========================
   SERVICES SECTION
   ========================= */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-base);
    overflow: hidden;
}

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

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* =========================
   PORTFOLIO SECTION
   ========================= */
.portfolio {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-overlay-content {
    transform: translateY(10px);
    transition: transform var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.portfolio-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 8px;
}

.portfolio-client {
    font-size: 0.8rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================
   SLIDER / SHOWREEL
   ========================= */
.showreel {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.slider-wrapper {
    position: relative;
    max-width: 1200px; /* Wider for 4 columns */
    margin: 0 auto;
}

.slider-viewport {
    overflow: hidden;
    padding: 20px 0; /* Add top/bottom padding for hover effects */
}

.slide-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.slide:hover .slide-card {
    border-color: var(--primary-light);
    transform: translateY(-8px);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 25%; /* 4 columns on desktop */
    position: relative;
    padding: 0 10px; /* Gaps between items */
}

@media (max-width: 992px) {
    .slide { min-width: 50%; } /* 2 columns on tablet */
}

@media (max-width: 576px) {
    .slide { 
        min-width: 100%; /* 1 column on mobile */
        padding: 0;
    }
}

.slide-image {
    width: 100%;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    background: #000;
}

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

.slide-caption {
    position: relative;
    padding: 24px;
    background: transparent;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-caption h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.slide-caption p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(10,10,15,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 5;
}

.slider-prev { left: -24px; }
.slider-next { right: -24px; }

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* =========================
   STATS SECTION
   ========================= */
.stats-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--primary-light);
}

.stat-value {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.stat-label {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 8px;
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a,
.contact-item span {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-light);
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05); /* Lighter background for better contrast in dark mode */
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modern Form Options (Pills/Cards) */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.custom-radio, .custom-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05); /* Lighter background for better contrast in dark mode */
    border: 2px solid var(--border-subtle); /* Explicit border to stand out */
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1 1 calc(50% - 6px); /* 2 columns on mobile */
    min-width: 140px;
}

@media (max-width: 575px) {
    .custom-radio, .custom-checkbox {
        flex: 1 1 100%; /* 1 column on strictly small mobile */
    }
}

.custom-radio span, .custom-checkbox span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Hide the actual input completely, the label drives the click */
.custom-radio input[type="radio"], .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* Hover effects */
.custom-radio:hover, .custom-checkbox:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.5);
}
.custom-radio:hover span, .custom-checkbox:hover span {
    color: var(--text-primary);
}

/* Checked state */
.custom-radio:has(input:checked), .custom-checkbox:has(input:checked) {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.custom-radio:has(input:checked) span, .custom-checkbox:has(input:checked) span {
    color: var(--primary);
    font-weight: 600;
}



.form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    background: var(--footer-bg);
    padding: 80px 0 0;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

/* =========================
   GOOGLE MAPS
   ========================= */
.map-section {
    padding: 0;
    position: relative;
}

.map-wrapper {
    width: 100%;
    line-height: 0;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(30%) contrast(1.05);
    transition: filter var(--transition-base);
}

.map-wrapper iframe:hover {
    filter: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: inline-flex;
}

.site-footer .brand-text {
    color: #F8FAFC;
}

.site-footer .brand-accent {
    color: var(--primary-light);
}

.footer-tagline {
    color: #CBD5E1;
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: #CBD5E1;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #F8FAFC;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #CBD5E1;
    font-size: 0.9rem;
}

.footer-contact-list li i {
    color: var(--primary-light);
    margin-top: 3px;
    font-size: 0.9rem;
}

.footer-contact-list a {
    color: #CBD5E1;
}

.footer-contact-list a:hover {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-cta-text {
    color: #CBD5E1;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.footer-cta-btn {
    font-size: 0.88rem;
    padding: 12px 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: #94A3B8;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-credit a {
    color: #94A3B8;
}

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

/* =========================
   WHATSAPP FLOAT
   ========================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================
   404 PAGE
   ========================= */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.error-404 h1 {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* =========================
   ANIMATIONS - Scroll Reveal
   ========================= */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* Spin animation for loading */
.spin {
    animation: spin 1s linear infinite;
}

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

/* =========================
   RESPONSIVE DESIGN
   ========================= */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-image-wrapper {
        max-width: 380px;
    }
    
    .hero-description {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        display: flex;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Tablet Small - 768px */
@media (max-width: 768px) {
    .top-bar-contact {
        display: none;
    }
    
    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-subtle);
        padding: 100px 30px 30px;
        transition: right var(--transition-base);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .navbar-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-link {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-md);
    }
    
    .nav-cta {
        display: none;
    }
    
    .theme-toggle {
        order: 2;
        margin-right: 4px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-badge {
        font-size: 0.78rem;
        padding: 8px 14px;
    }
    
    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-experience-badge {
        bottom: -10px;
        right: 10px;
        padding: 14px 18px;
    }
    
    .experience-number {
        font-size: 1.8rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0 60px;
    }
    
    .hero-image-wrapper {
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 12px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .navbar,
    .whatsapp-float,
    .hero-scroll-indicator,
    .footer-wave {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .gradient-text {
        -webkit-text-fill-color: black;
        background: none;
    }
}
