/*------------------------------------------------------------------
[Table of contents]

1.  :root & CSS Variables
2.  Global Styles & Typography
3.  Buttons & Interactive Elements
4.  Header & Navigation
5.  Footer
6.  Section Specific Styles
    - 6.1 Hero Section
    - 6.2 Services Section (Cards)
    - 6.3 Mission & Vision (Timeline)
    - 6.4 Statistics Section
    - 6.5 Customer Stories Section (Testimonials)
    - 6.6 Press Section (Article Cards)
    - 6.7 Careers Section
    - 6.8 Contact Section (Forms)
7.  Page Specific Styles
    - 7.1 Success Page
    - 7.2 Privacy & Terms Page
8.  Utility & Animation Classes
9.  Responsive Design (Media Queries)
-------------------------------------------------------------------*/

/* 1. :root & CSS Variables */
:root {
    --primary-color: #0d6efd; /* Bright Blue */
    --primary-hover-color: #0b5ed7;
    --secondary-color: #ff4757; /* Bright Red/Pink */
    --accent-color: #f7b731;   /* Bright Yellow/Orange */
    
    --text-color: #343a40; /* Dark Grey for readability */
    --text-muted: #6c757d;
    --light-text-color: #ffffff;
    
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --border-color: #dee2e6;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    --border-radius: 0.5rem;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* 2. Global Styles & Typography */
body {
    font-family: var(--font-body);
    background-color: var(--light-text-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #222222;
    line-height: 1.3;
}

/* Adaptive Typography */
h1, .display-3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2, .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 1rem;
    color: #222222;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

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

section {
    padding: 6rem 0;
    overflow: hidden;
}

.lead {
    font-weight: 400;
}

/* 3. Buttons & Interactive Elements */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
}

/* 4. Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed);
}

.header .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
}

.header .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    position: relative;
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* 5. Footer */
.footer {
    background-color: var(--bg-dark);
}

.footer h5 {
    color: var(--light-text-color);
    font-weight: 700;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer .footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-speed);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer .footer-link:hover {
    color: var(--light-text-color);
    transform: translateX(5px);
}

/* 6. Section Specific Styles */

/* 6.1 Hero Section */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-section .text-white {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* 6.2 Services Section (Cards) */
.service-card, .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card:hover, .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin: 0 auto;
}

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

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.card-text {
    color: var(--text-muted);
    flex-grow: 1;
}

/* 6.3 Mission & Vision (Timeline) */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}
.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--light-text-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* 6.4 Statistics Section */
.statistics-section {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.8), rgba(255, 71, 87, 0.8));
    z-index: 1;
}
.statistics-section .container {
    position: relative;
    z-index: 2;
}
.statistics-section .h5 {
    font-weight: 400;
}
.statistics-section .text-white {
    color: var(--light-text-color) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.progress {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.progress-bar {
    background-color: var(--accent-color);
    border-radius: 10px;
}

/* 6.5 Customer Stories Section */
.customer-card {
    background-color: var(--bg-light);
    box-shadow: none;
    border: 1px solid var(--border-color);
}
.card-image-customer {
    margin: 0 auto;
    width: 100px; /* Fixed size */
    height: 100px;
}

/* 6.6 Press Section (Article Cards) */
#press .card {
    background-color: var(--light-text-color);
}
#press .card-content {
    text-align: left;
}
#press .card a {
    margin-top: auto;
}

/* 6.7 Careers Section */
#careers .section-title {
    text-align: left;
}

/* 6.8 Contact Section (Forms) */
.contact-form .form-control {
    background-color: var(--light-text-color);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    background-color: var(--light-text-color);
}

/* 7. Page Specific Styles */

/* 7.1 Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #d1c4e9 100%);
}

.success-page .success-box {
    background: var(--light-text-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
}

.success-page h1 {
    color: var(--primary-color);
}

/* 7.2 Privacy & Terms Page */
.legal-page-content {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 60px;
}
.legal-page-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.legal-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* 8. Utility & Animation Classes */
.parallax-bg {
    background-attachment: fixed;
}

.reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 9. Responsive Design (Media Queries) */
@media (max-width: 991.98px) {
    section {
        padding: 4rem 0;
    }
    
    .header .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        text-align: center;
    }

    .header .nav-link::after {
        display: none;
    }

    .navbar-collapse {
        background: var(--light-text-color);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--box-shadow);
    }
    
    .header .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    #careers .section-title, #careers p, #careers .btn {
        text-align: center !important;
    }
    
    #careers .card-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
    }
    .statistics-section .display-4 {
        font-size: 2.5rem;
    }
    .footer {
        text-align: center;
    }
    .footer .list-unstyled {
        margin-bottom: 2rem;
    }
}