/* CSS Variables for theming */
:root {
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --secondary-color: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --transition-default: 300ms ease;
    --shadow-default: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    position: fixed;
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    z-index: 1000;
    text-decoration: none;
}

/* Hero Section */
.video-hero-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.service-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all var(--transition-default);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform var(--transition-default);
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-card-description {
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1rem;
}

/* Clients Carousel */
.clients-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.clients-track {
    display: flex;
    animation: scrollLeft 40s linear infinite;
    width: max-content;
    gap: 2rem;
    padding: 0 1rem;
}

.clients-track.paused {
    animation-play-state: paused;
}

.client-logo-item {
    position: relative;
    flex-shrink: 0;
    transition: transform var(--transition-default);
}

.client-logo-item:hover {
    transform: scale(1.05);
}

.client-logo-inner {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    width: 12rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-default);
}

.client-logo-inner:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-default);
}

.client-logo-image {
    max-height: 3.5rem;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition-default);
}

.client-logo-inner:hover .client-logo-image {
    opacity: 1;
}

/* Animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Form Styles */
.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    transition: all var(--transition-default);
}

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

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

/* Footer */
.footer-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%), url('/assets/footer.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-hero-container {
        min-height: 500px;
        height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .client-logo-inner {
        width: 10rem;
        height: 7rem;
    }
    
    .clients-track {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .video-hero-container {
        min-height: 400px;
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .client-logo-inner {
        width: 8rem;
        height: 6rem;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .video-hero-container,
    .video-controls,
    #contact-form {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}