/* ==========================================
   Nova Studio Zambia - Modern Sleek Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    /* Colors - Apple-inspired Light Theme with Blue Accents */
    --primary: #007AFF;
    /* Apple blue */
    --primary-dark: #0051D5;
    --primary-light: #5AC8FA;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #FAFAFA;

    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-muted: #86868B;

    --accent: #007AFF;
    --accent-hover: #0051D5;

    --border-color: rgba(0, 0, 0, 0.1);
    --overlay: rgba(255, 255, 255, 0.95);
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.88);

    /* Typography */
    --font-primary: 'Righteous', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    --font-display: 'Righteous', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --border-radius: 18px;
}

/* Dark Mode - Automatically follows device settings OR manual toggle */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Dark Mode Colors */
        --primary: #0A84FF;
        --primary-dark: #409CFF;
        --primary-light: #64B5FF;

        --bg-primary: #000000;
        --bg-secondary: #1C1C1E;
        --bg-tertiary: #2C2C2E;

        --text-primary: #F5F5F7;
        --text-secondary: #A1A1A6;
        --text-muted: #8E8E93;

        --accent: #0A84FF;
        --accent-hover: #409CFF;

        --border-color: rgba(255, 255, 255, 0.15);
        --overlay: rgba(0, 0, 0, 0.95);
        --nav-bg: rgba(0, 0, 0, 0.72);
        --nav-bg-scrolled: rgba(0, 0, 0, 0.88);

        /* Dark mode shadows */
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

/* Manual dark mode override */
html[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary: #0A84FF;
    --primary-dark: #409CFF;
    --primary-light: #64B5FF;

    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-muted: #8E8E93;

    --accent: #0A84FF;
    --accent-hover: #409CFF;

    --border-color: rgba(255, 255, 255, 0.15);
    --overlay: rgba(0, 0, 0, 0.95);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --nav-bg-scrolled: rgba(0, 0, 0, 0.88);

    /* Dark mode shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.003em;
    font-weight: 400;
    animation: fadeIn 0.6s ease-in;
}

/* Page transition effect */
.page-transition {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 1px 0 0 var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

/* Logo image sizing (header and footer) */
.logo-image {
    height: 50px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* Dark mode logo - brighten to get lighter brand blue */
html[data-theme="dark"] .logo-image,
:root:not([data-theme="light"]) .logo-image {
    filter: brightness(1.35) saturate(1.1);
}

/* Inline SVG logo sizing */
.logo-svg {
    height: 56px;
    width: auto;
    display: block;
}

.footer-logo .logo-svg {
    height: 40px;
}

@media (max-width: 640px) {
    .logo-svg {
        height: 44px;
    }
    .footer-logo .logo-svg {
        height: 36px;
    }
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

/* Dark mode active state */
html[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

html[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(0, 122, 255, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(90, 200, 250, 0.04) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    opacity: 0.5;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    letter-spacing: -0.015em;
}

.hero-title-line {
    display: block;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeIn 1s ease-out 1s backwards;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
    opacity: 0.6;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.25;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 122, 255, 0.06);
    transform: translateY(-1px);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 122, 255, 0.06);
}

.btn-large {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
}

/* ==========================================
   Section Styling
   ========================================== */
.services-preview,
.featured-work,
.process,
.testimonials {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Services Grid
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 122, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    color: var(--primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* ==========================================
   Featured Work
   ========================================== */
.featured-work {
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.work-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 100%;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.work-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    display: block;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

/* Slideshow for multiple images on hover */
.work-slideshow {
    position: relative;
}

.work-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.work-slideshow .slide.active {
    opacity: 1;
    position: relative;
}

.work-item:hover .work-slideshow .slide.active {
    opacity: 0;
}

.work-item:hover .work-slideshow .slide:not(.active) {
    opacity: 1;
}

.work-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.work-item:hover .work-image-placeholder {
    transform: scale(1.05);
}

.work-placeholder-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.work-info {
    padding: 2rem;
}

.work-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    margin-bottom: 1rem;
}

.work-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.work-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.work-cta {
    text-align: center;
}

/* ==========================================
   Process Section
   ========================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    position: relative;
    padding-left: 2rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0.3;
    background: linear-gradient(180deg, var(--primary), transparent);
}

.process-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #FFFFFF;
    color: var(--bg-primary);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-col h4,
.footer-col h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-secondary);
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Animation utility classes */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-aos="fade-right"].aos-animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-aos="zoom-in"].aos-animate {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-container {
        padding: 1rem 1.25rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-item {
        border-radius: 12px;
    }

    .work-image {
        aspect-ratio: 16 / 9;
    }

    .work-info {
        padding: 1.25rem;
    }

    .work-title {
        font-size: 1.1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center {
    text-align: center;
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
/* ==========================================
   Shared Page Header (inner pages)
   ========================================== */
.page-header {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    margin: 1rem 0;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

.page-header .btn {
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .page-header {
        padding: 150px 0 80px;
    }
}

/* ==========================================
   WhatsApp: floating button + button icon
   ========================================== */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: var(--transition);
}

.wa-float:hover,
.wa-float:focus-visible {
    transform: scale(1.06);
    background: #1EBE5A;
}

.wa-float:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

.wa-float svg {
    width: 30px;
    height: 30px;
}

.btn-icon {
    display: block;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}

/* ==========================================
   Service card prices (home)
   ========================================== */
.service-price {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ==========================================
   Packages & Pricing
   ========================================== */
.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.package-card.is-popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.package-badge {
    position: absolute;
    top: -0.8rem;
    left: 1.5rem;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.package-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.package-price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.package-price small {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.package-delivery {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.package-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.package-features li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.6rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.package-card .btn {
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    line-height: 1.7;
}

/* ==========================================
   Lead Offer (free brand review)
   ========================================== */
.lead-offer {
    padding: var(--section-padding) 0;
}

.lead-offer-box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-secondary);
    border: 2px dashed var(--primary);
    border-radius: var(--border-radius);
    padding: 3rem 1.5rem;
}

.lead-offer-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 1rem 0;
}

.lead-offer-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-section {
    padding: var(--section-padding) 0;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    margin-bottom: 1rem;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 3rem 1.25rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item a,
.prose a {
    color: var(--primary);
}

/* ==========================================
   Case Studies & Area Pages
   ========================================== */
.content-section {
    padding: 80px 0;
}

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

.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.prose ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.case-hero-image {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.case-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.before-after figure {
    margin: 0;
}

.before-after img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.before-after figcaption {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.client-quote {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 1.25rem;
}

.client-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.steps-list {
    counter-reset: step;
    list-style: none;
    padding-left: 0 !important;
}

.steps-list li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ==========================================
   Contact form thank-you
   ========================================== */
.form-thanks {
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.form-thanks h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-thanks p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.form-status-error {
    color: #FF3B30;
    margin-top: 1rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .filter-buttons {
        gap: 0.5rem !important;
    }

    .filter-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .content-section {
        padding: 60px 0;
    }
}

.pricing-section {
    background: var(--bg-secondary);
}

.package-for {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-text a,
.pricing-note a {
    color: var(--primary);
    font-weight: 600;
}

/* Keep the floating WhatsApp button from covering the footer text */
@media (max-width: 968px) {
    .footer {
        padding-bottom: 88px;
    }
}

.page-subtitle a {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================
   Websites We've Built (browser + phone frame preview)
   ========================================== */
.site-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.site-mockup {
    position: relative;
    padding: 0 2.5rem 2.5rem 0;
}

.browser-frame {
    display: block;
    color: inherit;
    text-decoration: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.browser-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.browser-frame:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F57;
}

.browser-dots i:nth-child(2) {
    background: #FEBC2E;
}

.browser-dots i:nth-child(3) {
    background: #28C840;
}

.browser-url {
    flex: 1;
    min-width: 0;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
}

.browser-screen {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0E3B2A;
}

.browser-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.preview-hint {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.72);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.hint-mouse {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .hint-touch {
        display: none;
    }

    .hint-mouse {
        display: inline;
    }
}

.phone-frame {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24%;
    max-width: 150px;
    aspect-ratio: 320 / 693;
    border: 5px solid #1D1D1F;
    border-radius: 20px;
    overflow: hidden;
    background: #0E3B2A;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.site-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.site-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.site-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.site-features li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.site-features li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.3rem;
    width: 0.4rem;
    height: 0.75rem;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.site-more a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.site-more a:hover {
    text-decoration: underline;
}

/* Full-page preview window */
.site-preview-dialog {
    width: min(1000px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.site-preview-dialog[open] {
    display: flex;
    flex-direction: column;
}

.site-preview-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.site-preview-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.site-preview-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-preview-visit {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.site-preview-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.site-preview-close:hover {
    background: var(--bg-secondary);
}

.site-preview-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-secondary);
}

.site-preview-body img {
    display: block;
    width: 100%;
    height: auto;
}

body:has(.site-preview-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 968px) {
    .site-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .site-mockup {
        padding: 0 1.75rem 1.75rem 0;
    }

    .phone-frame {
        border-width: 4px;
        border-radius: 14px;
    }

    .site-actions .btn {
        flex: 1 1 100%;
    }

    .site-preview-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .browser-frame,
    .browser-frame:hover {
        transition: none;
        transform: none;
    }
}

/* Portfolio: "Visit site" link inside a card, and the Behance button under the grid */
.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.portfolio-link:hover {
    text-decoration: underline;
}

.portfolio-more {
    text-align: center;
    margin-top: 3rem;
}

/* TechBehemoths verification badge in the home page footer */
.footer-badge {
    display: inline-block;
}

.footer-badge img {
    display: block;
    height: 44px;
    width: auto;
}
