/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Enhanced color palette */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-rgb: 37, 99, 235;
    
    --secondary: #7c3aed;
    --secondary-light: #8b5cf6;
    --secondary-dark: #6d28d9;
    
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --background: #ffffff;
    --background-alt: #f9fafb;
    --background-hover: #f3f4f6;
    
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Enhanced shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(147, 51, 234, 0.04) 50%, transparent 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    
    /* Animations */
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    position: relative;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Utilities */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.desktop-only {
    display: none;
}

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

/* Navigation - Enhanced */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
    animation: slideDown 0.5s ease-out;
    transition: var(--transition-smooth);
}

.navbar:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
}

.nav-brand:hover {
    transform: translateX(4px);
}

.nav-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.875rem;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-bounce);
}

.nav-logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

.nav-logo-img {
    height: 2.5rem;
    width: auto;
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-company-name {
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
    padding: 0.5rem 0;
}

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

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

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

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

.nav-link.active::after {
    width: 100%;
    opacity: 0.7;
}

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

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--background-alt);
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.language-selector:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: 9999px;
    position: relative;
}

.lang-btn:hover {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.lang-btn.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
}

.lang-btn.active:hover {
    transform: scale(1.05);
}

.lang-divider {
    color: var(--border);
    font-size: 0.75rem;
    user-select: none;
}

/* Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    background: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: white;
    color: var(--text-primary);
    border-color: var(--border);
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Hero Section - Enhanced */
.hero {
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

@media (min-width: 640px) {
    .hero-content {
        padding: 6rem 1rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--gradient-card);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideDown 0.6s ease-out 0.2s both;
    transition: var(--transition-base);
}

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

.hero-badge .icon-check {
    color: var(--accent);
}

.hero-title {
    margin-top: 1.5rem;
    font-size: 2.25rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 0.6s ease-out 0.3s both;
}

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

.hero-description {
    margin-top: 1.5rem;
    max-width: 48rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.75;
    animation: slideDown 0.6s ease-out 0.4s both;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideDown 0.6s ease-out 0.5s both;
}

.hero-meta {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    animation: fadeIn 0.6s ease-out 0.6s both;
}

/* Icons - Enhanced */
.icon, .icon-check {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.icon-check {
    width: 1rem;
    height: 1rem;
}

/* Cards - Enhanced */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.card:hover::before {
    transform: translateX(0);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-header .icon {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
}

.card:hover .card-header .icon {
    transform: rotate(10deg) scale(1.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Value Props - Enhanced */
.value-props {
    padding: 3rem 0;
    animation: fadeIn 0.8s ease-out;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

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

.card-grid > .card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.card-grid > .card:nth-child(1) {
    animation-delay: 0.1s;
}

.card-grid > .card:nth-child(2) {
    animation-delay: 0.2s;
}

.card-grid > .card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Services - Enhanced */
.services {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--background-alt) 0%, var(--background) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.section-header {
    max-width: 48rem;
    margin: 0 auto 3rem;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

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

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.125rem;
}

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

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

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

.services-grid > .card {
    background: white;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.services-grid > .card:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid > .card:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid > .card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Industries - Enhanced */
.industries {
    padding: 4rem 0;
    background: white;
}

.industries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.industry-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    transition: var(--transition-smooth);
    cursor: default;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.industry-badge:nth-child(1) {
    animation-delay: 0.1s;
}

.industry-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.industry-badge:nth-child(3) {
    animation-delay: 0.3s;
}

.industry-badge:nth-child(4) {
    animation-delay: 0.4s;
}

.industry-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background: rgba(37, 99, 235, 0.05);
}

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

/* Partners - Enhanced */
.partners {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
}

.partners-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partners-label.past {
    margin-top: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: center;
}

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

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

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    background: white;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.partner-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.partner-link:hover::before {
    opacity: 0.05;
}

.partner-past {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    opacity: 0.7;
    filter: grayscale(50%);
    transition: var(--transition-smooth);
}

.partner-past:hover {
    opacity: 0.9;
    filter: grayscale(0%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition-base);
}

@media (min-width: 640px) {
    .partner-logo {
        max-height: 80px;
    }
}

/* Specific styling for HAYS logo to ensure consistent sizing */
.partner-logo.hays-logo {
    min-height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

@media (min-width: 640px) {
    .partner-logo.hays-logo {
        min-height: 80px;
        max-width: 160px;
    }
}

.partner-link:hover .partner-logo {
    transform: scale(1.05);
}

.partners-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Case Studies - Enhanced */
.cases {
    padding: 5rem 0;
    background: white;
}

.cases-grid {
    display: grid;
    gap: 1.5rem;
}

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

.cases-grid > .card {
    background: var(--gradient-card);
    border: 2px solid transparent;
    position: relative;
}

.cases-grid > .card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.cases-grid > .card:hover::after {
    transform: scaleX(1);
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    transition: var(--transition-base);
}

.case-metric:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateX(4px);
}

.case-metric .icon-check {
    color: var(--accent);
}

/* Testimonials - Enhanced */
.testimonials {
    padding: 4rem 0;
    background: var(--background-alt);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: -20%;
    left: -5%;
    font-size: 20rem;
    color: rgba(37, 99, 235, 0.05);
    font-family: serif;
    line-height: 1;
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

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

.testimonials-grid > .card {
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    padding-left: 2.5rem;
}

.testimonials-grid > .card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Certifications - Enhanced */
.certifications {
    padding: 4rem 0;
    background: white;
}

.certifications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.certification-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gradient-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.certification-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

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

.certification-badge:hover::before {
    width: 100%;
    height: 100%;
}

/* Contact - Enhanced */
.contact {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

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

.contact-grid > .card {
    background: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--background);
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

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

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

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--background-alt);
    transition: var(--transition-base);
}

.contact-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.contact-item .icon {
    color: var(--primary);
    background: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    width: 2rem;
    height: 2rem;
    box-shadow: var(--shadow);
}

/* Footer - Enhanced */
.footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: var(--transition-base);
}

.footer-brand:hover {
    transform: translateY(-2px);
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.875rem;
    box-shadow: var(--shadow-primary);
}

.footer-logo-img {
    height: 3rem;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-base);
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-company {
    font-weight: 600;
}

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

/* Loading animation for buttons */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn.loading {
    color: transparent;
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

.btn-outline.loading::after {
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-top-color: var(--primary);
}

/* Form submission feedback */
.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.form-input.success,
.form-textarea.success {
    border-color: #10b981;
}

/* Smooth scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.25rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-actions,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}