/* ================================
   Shadcn Design System - Variables
   ================================ */

:root {
    /* Colors - Zinc Palette */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;

    /* Fanatik Blue */
    --fanatik-blue: 207 85% 42%;

    /* Typography - Geist */
    --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

/* ================================
   Reset & Base Styles
   ================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: hsl(var(--foreground));
    line-height: 1.7;
    
    /* Subtle grid background with fade-out edges */
    background-color: hsl(var(--background));
    background-image: 
        /* Radial gradient overlay for fade effect */
        radial-gradient(ellipse at center, transparent 0%, hsl(var(--background)) 88%),
        /* Vertical grid lines */
        linear-gradient(to right, hsl(var(--border) / 0.35) 1px, transparent 1px),
        /* Horizontal grid lines */
        linear-gradient(to bottom, hsl(var(--border) / 0.35) 1px, transparent 1px);
    background-size: 
        100% 100%,
        48px 48px,
        48px 48px;
    background-position: center;
    background-attachment: fixed;
}

/* Text Selection - Fanatik Blue */
::selection {
    background-color: hsl(var(--fanatik-blue));
    color: white;
}

::-moz-selection {
    background-color: hsl(var(--fanatik-blue));
    color: white;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================================
   Layout
   ================================ */

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

/* Border Box with Corner Dots */
.border-box {
    border: 1px solid hsl(var(--border) / 0.4);
    padding: 1rem var(--spacing-xl) var(--spacing-2xl) var(--spacing-xl);
    position: relative;
    background-color: hsl(var(--background));
    
    /* Layered shadows for elevated depth effect */
    box-shadow: 
        /* Close shadow - sharp */
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        /* Medium shadow - spread */
        0 8px 16px -4px rgba(0, 0, 0, 0.08),
        /* Far shadow - ambient */
        0 20px 40px -8px rgba(0, 0, 0, 0.12),
        /* Blue glow - subtle aura (only outside) */
        0 0 80px -30px hsl(var(--fanatik-blue) / 0.2);
}

/* Scrolling Beam Effect */
.border-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2px;
    padding: 2px;
    background: 
        /* Grain texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E"),
        /* Vertical gradient beam following scroll */
        linear-gradient(
            180deg,
            transparent 0%,
            transparent calc(var(--beam-position, 0%) - 15%),
            hsl(var(--fanatik-blue) / 0.3) calc(var(--beam-position, 0%) - 10%),
            hsl(var(--fanatik-blue) / 0.7) var(--beam-position, 0%),
            hsl(var(--fanatik-blue) / 0.3) calc(var(--beam-position, 0%) + 10%),
            transparent calc(var(--beam-position, 0%) + 15%),
            transparent 100%
        );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    transition: background 0.05s linear;
    pointer-events: none;
}

.corner-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: hsl(var(--fanatik-blue));
    border-radius: 50%;
    z-index: 20;
}

.corner-dot-tl {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.corner-dot-tr {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

.corner-dot-bl {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
}

.corner-dot-br {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}

/* ================================
   Header & Navigation
   ================================ */

.header {
    margin-bottom: var(--spacing-2xl);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.logo-svg {
    height: 36px;
    width: auto;
    color: hsl(var(--foreground));
}

/* CTA Button - Emil Kowalski best practices */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    background-color: hsl(var(--fanatik-blue));
    border: 1px solid hsl(var(--fanatik-blue));
    border-radius: 0.5rem;
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--fanatik-blue) / 0.3);
}

.cta-button:active {
    transform: scale(0.97);
    transition-duration: 50ms;
}

.cta-icon {
    width: 16px;
    height: 16px;
    transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover .cta-icon {
    transform: translateX(2px);
}

/* Year Progress - Retro Volume Bars */
.year-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.year-progress-text {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.year-progress-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.year-progress-bar {
    width: 3px;
    border-radius: 1px;
    transition: background-color 0.3s ease, height 0.3s ease;
}

.year-progress-bar.filled {
    background-color: hsl(142 71% 45%);
}

.year-progress-bar.empty {
    background-color: hsl(var(--border));
}


/* ================================
   Main Content
   ================================ */

.main {
    margin-bottom: var(--spacing-3xl);
}

/* ================================
   Hero Section
   ================================ */

.hero {
    margin-bottom: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Text Highlights with Icons */
.highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.highlight-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.highlight-good {
    background-color: hsl(142 76% 36% / 0.1);
    color: hsl(142 76% 36%);
}

.highlight-good .highlight-icon {
    stroke: hsl(142 76% 36%);
}

.highlight-bad {
    background-color: hsl(0 84% 60% / 0.1);
    color: hsl(0 84% 60%);
}

.highlight-bad .highlight-icon {
    stroke: hsl(0 84% 60%);
}

/* ================================
   Typography - shadcn inspired
   ================================ */

/* Headings */
h1 {
    scroll-margin-top: 5rem;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

h2 {
    scroll-margin-top: 5rem;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: hsl(var(--foreground));
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    scroll-margin-top: 5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    scroll-margin-top: 5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.5;
    color: hsl(var(--foreground));
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

h5, h6 {
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Paragraphs */
p {
    line-height: 1.7;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

/* Lead text */
.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* Large text */
.large {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Small text */
.small {
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Muted text */
.muted {
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
}

/* Blockquote */
blockquote {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid hsl(var(--border));
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: hsl(var(--foreground));
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

li::marker {
    color: hsl(var(--muted-foreground));
}

/* Inline code */
code {
    position: relative;
    border-radius: 0.375rem;
    background-color: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Pre and code blocks */
pre {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--muted));
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th {
    border-bottom: 1px solid hsl(var(--border));
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

td {
    border-bottom: 1px solid hsl(var(--border));
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

tr:last-child td {
    border-bottom: none;
}

/* Strong and emphasis */
strong {
    font-weight: 600;
    color: hsl(var(--foreground));
}

em {
    font-style: italic;
}

/* ================================
   Sections
   ================================ */

.section {
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: hsl(var(--foreground));
    line-height: 1.4;
}

/* ================================
   Clients Section
   ================================ */

.clients-section {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    padding: 0;
}

.clients-label {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Logo Carousel - Rauno inspired */
.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    opacity: 0;
    animation: fadeIn 250ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        filter: blur(2px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.logo-carousel-track {
    display: flex;
    gap: var(--spacing-xl);
    animation: scroll 40s linear infinite;
    width: fit-content;
    will-change: transform;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 140px;
}

.client-logo img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
}

/* Logo Context Menu - Emil Kowalski best practices */
.logo-context-menu {
    position: fixed;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    padding: 0.25rem;
    min-width: 160px;
    z-index: 1000;
    animation: menuFadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.93);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.context-menu-item:hover {
    background-color: hsl(var(--accent));
}

.context-menu-item:active {
    transform: scale(0.97);
    transition-duration: 50ms;
}

.context-menu-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}


/* ================================
   Folder Map / File Explorer
   ================================ */

.clients-table-section {
    margin-top: var(--spacing-2xl);
}

.clients-table {
    display: flex;
    flex-direction: column;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
}

.client-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid hsl(var(--border));
    transition: background-color 120ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 50ms cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
}

.client-row:last-child {
    border-bottom: none;
}

.client-row:active {
    transform: scale(0.99);
}

.client-row:nth-child(1):hover {
    background-color: hsl(var(--fanatik-blue) / 0.06);
}

.client-row:nth-child(2):hover {
    background-color: hsl(var(--fanatik-blue) / 0.08);
}

.client-row:nth-child(3):hover {
    background-color: hsl(var(--fanatik-blue) / 0.10);
}

.client-row:nth-child(4):hover {
    background-color: hsl(var(--fanatik-blue) / 0.12);
}

.client-row:nth-child(5):hover {
    background-color: hsl(var(--fanatik-blue) / 0.14);
}

.client-row:nth-child(6):hover {
    background-color: hsl(var(--fanatik-blue) / 0.16);
}

.client-row:nth-child(7):hover {
    background-color: hsl(var(--fanatik-blue) / 0.18);
}

.client-row:nth-child(8):hover {
    background-color: hsl(var(--fanatik-blue) / 0.20);
}

.client-row:nth-child(9):hover {
    background-color: hsl(var(--fanatik-blue) / 0.22);
}

.client-row:nth-child(10):hover {
    background-color: hsl(var(--fanatik-blue) / 0.24);
}

.client-row:nth-child(11):hover {
    background-color: hsl(var(--fanatik-blue) / 0.26);
}

.client-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    flex-shrink: 0;
    min-width: 180px;
}

.external-icon {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
    margin-left: auto;
}

.client-row:hover .external-icon {
    color: hsl(var(--foreground));
    transform: translateX(2px) translateY(-2px);
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    flex: 1;
}

.client-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    white-space: nowrap;
    transition: all 0.15s ease;
}

/* Tag Color Coding - Shadcn Subtle Palette */
.tag-web {
    background-color: hsl(221 83% 53% / 0.12);
    color: hsl(221 83% 40%);
}

.tag-logo {
    background-color: hsl(262 83% 58% / 0.12);
    color: hsl(262 83% 45%);
}

.tag-packshots {
    background-color: hsl(142 71% 45% / 0.12);
    color: hsl(142 71% 35%);
}

.tag-photography {
    background-color: hsl(25 95% 53% / 0.12);
    color: hsl(25 95% 42%);
}

.tag-illustrations {
    background-color: hsl(346 77% 50% / 0.12);
    color: hsl(346 77% 40%);
}

.tag-copywriting {
    background-color: hsl(48 96% 53% / 0.12);
    color: hsl(48 96% 42%);
}

.tag-booking {
    background-color: hsl(173 80% 40% / 0.12);
    color: hsl(173 80% 32%);
}

/* Responsive */
@media (max-width: 768px) {
    .client-row {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: var(--spacing-sm);
        padding-right: 2rem;
    }
    
    .external-icon {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        margin-left: 0;
        width: 14px;
        height: 14px;
    }
    
    .client-name {
        min-width: auto;
        font-size: 0.8125rem;
    }
    
    .client-tags {
        justify-content: flex-start;
        gap: 0.25rem;
    }
    
    .client-tags .tag {
        font-size: 0.6875rem;
        padding: 0.125rem 0.375rem;
    }
    
    /* Remove table border on mobile */
    .clients-table {
        border: none;
        border-radius: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Contact Form Section
   ================================ */

.contact-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
}

.contact-section .section-title {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: var(--spacing-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.5;
    box-sizing: border-box;
}

.form-select {
    cursor: pointer;
}

.form-select::-ms-expand {
    display: none;
}

/* ================================
   Customizable Select (base-select)
   Progressive enhancement — falls back to native select
   ================================ */

.form-select,
.form-select::picker(select) {
    appearance: base-select;
}

/* Button state when open */
.form-select:open {
    border-color: hsl(var(--fanatik-blue));
    box-shadow: 0 0 0 3px hsl(var(--fanatik-blue) / 0.1);
}

/* Picker icon */
.form-select::picker-icon {
    color: hsl(var(--muted-foreground));
    transition: rotate 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form-select:open::picker-icon {
    rotate: 180deg;
}

/* Dropdown picker */
.form-select::picker(select) {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--background));
    padding: 0.25rem;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
    transition:
        opacity 200ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
        overlay 200ms allow-discrete,
        display 200ms allow-discrete;
}

.form-select::picker(select):popover-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@starting-style {
    .form-select::picker(select):popover-open {
        opacity: 0;
        transform: translateY(-4px) scale(0.97);
    }
}

/* Option styling */
.form-select option {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: background-color 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form-select option:hover {
    background-color: hsl(var(--accent));
}

.form-select option:checked {
    font-weight: 500;
    background-color: hsl(var(--fanatik-blue) / 0.1);
    color: hsl(var(--fanatik-blue));
}

.form-select option::checkmark {
    display: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--fanatik-blue));
    box-shadow: 0 0 0 3px hsl(var(--fanatik-blue) / 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
    opacity: 0.6;
}

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

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: white;
    background-color: hsl(var(--fanatik-blue));
    border: 1px solid hsl(var(--fanatik-blue));
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: var(--spacing-md);
}

.form-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--fanatik-blue) / 0.3);
}

.form-button:active {
    transform: scale(0.97);
    transition-duration: 50ms;
}

.form-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    font-size: 0.875rem;
    transition: filter 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button-icon {
    width: 16px;
    height: 16px;
    transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form-button:hover .button-icon {
    transform: translateX(2px);
}

/* Field Components */
.field-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.field[data-invalid] .form-input,
.field[data-invalid] .form-select,
.field[data-invalid] .form-textarea {
    border-color: hsl(var(--destructive));
}

.field[data-invalid] .form-input:focus,
.field[data-invalid] .form-select:focus,
.field[data-invalid] .form-textarea:focus {
    border-color: hsl(var(--destructive));
    box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.1);
}

.field-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-label::after {
    content: '';
}

.field input[required] + .field-label::after,
.field select[required] + .field-label::after,
.field textarea[required] + .field-label::after {
    content: '*';
    color: hsl(var(--destructive));
}

.field-description {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    margin-top: 0.375rem;
}

.field-error {
    font-size: 0.8125rem;
    color: hsl(var(--destructive));
    font-weight: 500;
    display: none;
}

.field[data-invalid] .field-error {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Form Success Message */
.form-success {
    max-width: 600px;
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
    background-color: hsl(142 76% 36% / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: hsl(142 76% 36%);
    animation: checkmark 0.8s ease 0.4s both;
}

@keyframes checkmark {
    0% {
        stroke-dasharray: 0 50;
        opacity: 0;
    }
    100% {
        stroke-dasharray: 50 0;
        opacity: 1;
    }
}

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

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: var(--spacing-md);
}

.success-text {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile form adjustments */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Prevent zoom on focus for iOS devices - minimum 16px font size */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
    }
    
    /* Prevent layout shift and overflow */
    .contact-form {
        width: 100%;
        overflow-x: hidden;
    }
    
    .field,
    .field-group {
        width: 100%;
        max-width: 100%;
    }
}

/* ================================
   Testimonials Section
   ================================ */

.testimonials-section {
    margin-top: var(--spacing-3xl);
}

.testimonials-section .section-title {
    text-align: left;
    margin-bottom: var(--spacing-2xl);
    border-bottom: none;
    padding-bottom: 0;
}

.testimonials-section .section-title::after {
    display: none;
}

.section-title::after {
    display: none;
}

.highlight-blue {
    color: hsl(var(--fanatik-blue));
    font-weight: 600;
}

.section-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: var(--spacing-xl);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    background-color: hsl(var(--background));
    border: none;
    border-radius: 0.5rem;
    max-width: 50ch;
}

.testimonial-content {
    flex: 1;
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: hsl(var(--fanatik-blue));
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: hsl(var(--foreground));
    margin: 0;
}

.testimonial-solution {
    background-color: hsl(207 85% 42% / 0.15);
    color: hsl(207 85% 25%);
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, hsl(var(--fanatik-blue)), hsl(var(--fanatik-blue) / 0.7));
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
}

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

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


/* ================================
   Footer
   ================================ */

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-3xl) var(--spacing-xl) 0;
    border-top: none;
    margin-top: var(--spacing-3xl);
    margin-left: calc(var(--spacing-xl) * -1);
    margin-right: calc(var(--spacing-xl) * -1);
    margin-bottom: calc(var(--spacing-2xl) * -1);
    width: calc(100% + var(--spacing-xl) * 2);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Footer Logo - Stack & Reveal */
.footer-logo-reveal {
    width: calc(100% + var(--spacing-xl) * 6);
    margin-left: calc(var(--spacing-xl) * -3);
    margin-right: calc(var(--spacing-xl) * -3);
    margin-bottom: calc(var(--spacing-2xl) * -1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.footer-logo-svg {
    width: 180%;
    max-width: none;
    height: auto;
    transform: translate(-5%, 20%);
}

.logo-path-hover {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-reveal:hover .logo-path-hover {
    clip-path: circle(100% at 50% 50%);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-text {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 640px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: var(--spacing-lg) var(--spacing-md);
        max-width: 100%;
        overflow-x: hidden;
    }

    .border-box {
        padding: 1rem var(--spacing-md) var(--spacing-lg) var(--spacing-md);
        max-width: 100%;
    }

    .corner-dot {
        width: 6px;
        height: 6px;
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--spacing-md);
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.35;
    }
    
    .section-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }
    
    .contact-subtitle {
        font-size: 0.9375rem;
    }
    
    .cta-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.9375rem;
    }

    .lead {
        font-size: 1rem;
    }

    .highlight {
        padding: 0.125rem 0.375rem;
    }

    .highlight-icon {
        width: 14px;
        height: 14px;
    }

    /* Logo carousel mobile adjustments */
    .logo-carousel {
        mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }
    
    .logo-carousel-track {
        gap: var(--spacing-xl);
        animation-duration: 20s;
    }

    .client-logo {
        min-width: 100px;
    }

    .client-logo img {
        height: 32px;
        max-width: 110px;
    }
    
    /* Testimonials mobile */
    .testimonial-card {
        padding: 0;
    }
    
    .quote-icon {
        width: 24px;
        height: 24px;
    }
    
    .testimonial-text {
        font-size: 0.875rem;
        line-height: 2;
    }
    
    .testimonial-solution {
        padding: 0.2rem 0.5rem;
    }
    
    .author-name {
        font-size: 0.8125rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.8125rem;
    }

    /* Footer responsive - match border-box mobile padding */
    .footer {
        padding: var(--spacing-2xl) var(--spacing-md) 0;
        margin-left: calc(var(--spacing-md) * -1);
        margin-right: calc(var(--spacing-md) * -1);
        margin-bottom: calc(var(--spacing-lg) * -1);
        width: calc(100% + var(--spacing-md) * 2);
    }

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

    .year-progress {
        align-items: center;
    }

    .footer-logo-reveal {
        width: calc(100% + var(--spacing-md) * 6);
        margin-left: calc(var(--spacing-md) * -3);
        margin-right: calc(var(--spacing-md) * -3);
        margin-bottom: calc(var(--spacing-lg) * -1);
    }

}



/* ================================
   Print Styles
   ================================ */

@media print {
    .footer {
        display: none;
    }

    .container {
        max-width: 100%;
    }
}


