/* CSS Variables for Tetrad Color Scheme */
:root {
    /* Primary Colors (Tetrad Scheme) */
    --primary-blue: #2563eb;
    --primary-orange: #ea580c;
    --primary-green: #059669;
    --primary-purple: #7c3aed;
    
    /* Darker Variants */
    --primary-blue-dark: #1d4ed8;
    --primary-orange-dark: #c2410c;
    --primary-green-dark: #047857;
    --primary-purple-dark: #6d28d9;
    
    /* Lighter Variants */
    --primary-blue-light: #3b82f6;
    --primary-orange-light: #f97316;
    --primary-green-light: #10b981;
    --primary-purple-light: #8b5cf6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --gradient-secondary: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--gray-800);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

h4 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
}

h5 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h6 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
}

/* Global Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    min-width: 180px;
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Header/Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.navbar-brand:hover {
    color: var(--primary-blue-dark);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--gray-50);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--white) !important;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Statistics Section */
.statistics-section {
    background: var(--gray-50);
    padding: var(--section-padding);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
}

/* Features Section */
.features-section {
    padding: var(--section-padding);
    background: var(--white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--gray-600);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card .card-image {
    height: 350px;
}

.project-tag {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Customer Stories Section */
.customer-stories-section {
    padding: var(--section-padding);
    background: var(--white);
}

.testimonial-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    border: 4px solid var(--primary-blue);
    display: block;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author strong {
    color: var(--primary-blue);
    font-size: 1.125rem;
}

.testimonial-author span {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* History Section */
.history-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 2rem;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Insights Section */
.insights-section {
    padding: var(--section-padding);
    background: var(--white);
}

.insight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insight-card .card-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
}

.insight-card h5 a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.insight-card h5 a:hover {
    color: var(--primary-blue-dark);
}

/* Press Section */
.press-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.press-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.press-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.press-logo img {
    max-height: 100%;
    max-width: 200px;
    object-fit: contain;
}

/* Media Section */
.media-section {
    padding: var(--section-padding);
    background: var(--white);
}

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

.media-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.media-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Careers Section */
.careers-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.career-card {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.career-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.career-details .badge {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-form {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-control {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.875rem;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-info {
    text-align: center;
    padding: 2rem;
}

.contact-info h5 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--section-padding);
}

.footer-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--gray-300);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-600);
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--white);
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.footer-divider {
    border-color: var(--gray-700);
    margin: 2rem 0;
}

.copyright,
.legal-text {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin: 0;
}

/* Success Page Styles */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.success-content {
    max-width: 600px;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

/* Privacy and Terms Pages */
.content-page {
    padding-top: 100px;
    min-height: 100vh;
}

.content-page .container {
    max-width: 800px;
    padding: 2rem 1rem;
}

.content-page h1 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.content-page h2 {
    color: var(--gray-800);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Read More Links */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-blue-dark);
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Parallax Effects */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: -90px;
        margin: 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

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

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}