/* ==========================================================================
   Ian Kahn - Streamlined Professional Website
   ========================================================================== */

/* CSS Variables */
:root {
    /* Colors - Clean & Professional */
    --primary: #1A1A1A;
    --primary-light: #4A4A4A;
    --accent: #2563EB;
    
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B7280;
    
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-light: #F3F4F6;
    
    --border: #E5E7EB;
    
    /* Typography - Clean system fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.07);
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-medium);
    position: relative;
    transition: color 0.2s ease;
}

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

.nav-link.nav-cta {
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.nav-link.nav-cta:hover {
    background: var(--accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

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

.hero {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    background: var(--bg-white);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

/* Client Logos */
.client-logos {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.client-logos-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: var(--space-md);
}

.logos-scroll {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.logo-item {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-medium);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.logo-item:hover {
    opacity: 1;
    color: var(--primary);
}

.logo-item img {
    height: 40px;        /* Control visual size */
    width: auto;         /* Maintain aspect ratio */
    max-width: 120px;    /* Prevent oversized logos */
    object-fit: contain;
    filter: grayscale(100%); /* Optional: unified style */
    opacity: 0.8;            /* Optional: subtle */
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Marquee (infinite logos scroll)
   ========================================================================== */
.marquee {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.marquee-track {
    display: flex;
    /* Two identical sets inside the track -> width ~200% of a single set */
    align-items: center;
    gap: var(--space-xl);
    /* Smooth linear movement */
    animation: marquee linear infinite;
    animation-duration: 60s;
    width: max-content;
    will-change: transform;
}

/* Ensure the inner logo lists don't wrap and keep their intrinsic width */
.marquee-track > .logos-scroll {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.marquee-track:hover {
    animation-play-state: paused;
}

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

/* Mobile screen override */
@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 45s;
    }
}


/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--text-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
    padding: var(--space-2xl) 0;
    background: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    margin-bottom: var(--space-md);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.3rem 0;
    /* Use flex to keep bullet and text separate */
    display: flex; 
    gap: 0.5rem; 
    color: var(--text-light);
}

.service-features li::before {
    content: '•';
    color: var(--text-medium);
    /* Prevent the bullet from shrinking or squishing */
    flex-shrink: 0; 
}

/* ==========================================================================
   Featured Work
   ========================================================================== */

.featured-work {
    padding: var(--space-2xl) 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.work-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: all 0.2s ease;
}

.work-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--text-dark);
}

.work-client {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.work-industry {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.work-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.work-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.work-link {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.work-card:hover .work-link {
    color: var(--text-dark);
}

/* ==========================================================================
   Blog Highlights Section
   ========================================================================== */

.blog-highlights {
    padding: var(--space-2xl) 0;
    background: var(--bg-gray);
}

.blog-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.blog-highlight-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: all 0.2s ease;
}

.blog-highlight-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--text-dark);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.blog-category {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.blog-highlight-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.blog-highlight-excerpt {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.blog-highlight-link {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.blog-highlight-card:hover .blog-highlight-link {
    color: var(--text-dark);
}

/* ==========================================================================
   Experience / Timeline
   ========================================================================== */

.experience {
    padding: var(--space-2xl) 0;
    background: var(--bg-gray);
}

.timeline {
    position: relative;
    margin: var(--space-xl) 0;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--text-dark);
    border: 2px solid white;
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.timeline-company h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.timeline-description {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.timeline-highlights {
    list-style: none;
    margin-bottom: var(--space-md);
}

.timeline-highlights li {
    font-size: 0.9rem;
    color: var(--text-medium);
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.timeline-highlights li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-medium);
}

.timeline-clients {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: var(--space-sm);
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

/* Skills */
.skills-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border);
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
    .services-grid {
        /* minmax(0, 1fr) is the magic fix for 'overflow' wrapping issues */
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.skill-category h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.skill-tag {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-medium);
}

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

.testimonials {
    padding: var(--space-2xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--bg-gray);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 3px solid var(--text-dark);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

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

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    padding: var(--space-2xl) 0;
    background: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-description {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-method strong {
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-method a,
.contact-method span {
    color: var(--text-dark);
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-dark);
}

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

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

.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    color: white;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-languages {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer-languages a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-languages a.active {
    color: white;
}

/* ==========================================================================
   Blog Styles
   ========================================================================== */

.blog-hero {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: var(--bg-gray);
    text-align: center;
}

.blog-hero h1 {
    margin-bottom: var(--space-sm);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-2xl) 0;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--text-dark);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.blog-card-content {
    padding: var(--space-md);
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.blog-read-more {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

/* Article Styles */
.article-header {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: var(--bg-gray);
}

.article-meta {
    text-align: center;
    margin-bottom: var(--space-md);
}

.article-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.article-excerpt {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.article-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.article-content p {
    margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.article-content li {
    margin-bottom: var(--space-xs);
    color: var(--text-medium);
}

/* Case Study Styles */
.case-study-header {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: var(--bg-gray);
}

.case-study-client {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.case-study-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.case-study-summary {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    max-width: 900px;
    margin: var(--space-xl) auto;
}

.metric-card {
    text-align: center;
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.case-study-section {
    margin-bottom: var(--space-2xl);
}

.case-study-section h2 {
    margin-bottom: var(--space-md);
}

.case-study-section p {
    margin-bottom: var(--space-md);
}

.case-study-section ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.case-study-section li {
    margin-bottom: var(--space-xs);
    color: var(--text-medium);
}

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

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
    
    .hero-stats {
        gap: var(--space-md);
        flex-wrap: wrap;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .services-grid,
    .work-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .case-study-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Language Banner
   ========================================================================== */

.lang-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 340px;
    animation: slideInBanner 0.3s ease;
}

.lang-banner[hidden] {
    display: none;
}

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

.lang-banner p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

.lang-banner-link {
    display: block;
    margin-top: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent);
}

.lang-banner-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-banner-dismiss:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .lang-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
        border-left: 1px solid var(--border);
        border-top: 3px solid var(--accent);
    }
}