/* ======================================================
   DESIGN SYSTEM: Corporate with Hyperrealistic Textures
   COLOR SCHEME: Complementary
   TYPOGRAPHY: Inter (headings), IBM Plex Sans (body)
   ANIMATIONS: Parallax Style
   ====================================================== */

:root {
    /* Primary Colors */
    --primary-color: #0056b3;
    --primary-dark: #00408c;
    --primary-light: #3380cb;
    
    /* Secondary Colors (Complementary) */
    --secondary-color: #d35400;
    --secondary-dark: #a04000;
    --secondary-light: #e67e22;
    
    /* Neutral Colors */
    --dark: #212529;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Accent Colors */
    --accent-1: #2ecc71;
    --accent-2: #9b59b6;
    --accent-3: #3498db;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Gradients */
    --gradient-primary: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    
    /* Overlay */
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(0, 0, 0, 0.3);
}

/* ======================================================
   BASE STYLES
   ====================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

p {
    margin-bottom: var(--spacing-md);
}

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

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

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

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-title {
    position: relative;
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
}

/* ======================================================
   BUTTONS
   ====================================================== */

.btn {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    width: 110%;
}

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

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover, 
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
    color: var(--dark);
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ======================================================
   HEADER / NAVIGATION
   ====================================================== */

.header {
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: var(--transition-medium);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--white);
    transform: translateY(-2px);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Scrolled state */
.navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: var(--dark) !important;
}

/* ======================================================
   HERO SECTION
   ====================================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-medium);
    z-index: 0;
}

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

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    animation: fadeInUp 1s ease-in-out;
}

.hero p.lead {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    animation: fadeInUp 1s ease-in-out 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 1s ease-in-out 0.4s;
    animation-fill-mode: both;
}

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

/* ======================================================
   VISION SECTION
   ====================================================== */

.vision-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-medium);
    margin-bottom: var(--spacing-md);
}

.vision-image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.vision-image-container img {
    transition: transform var(--transition-slow);
    display: block;
}

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

.vision-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.stats-container {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.stat-item {
    padding: var(--spacing-sm);
    transition: transform var(--transition-medium);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* ======================================================
   FEATURES SECTION
   ====================================================== */

.feature-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

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

.feature-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-title {
    color: var(--primary-color);
    margin-top: var(--spacing-sm);
    font-weight: 700;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-text {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.card-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ======================================================
   INNOVATION SECTION
   ====================================================== */

.innovation-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.innovation-image-container img {
    transition: transform var(--transition-slow);
}

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

.innovation-content h3 {
    color: var(--accent-1);
    margin-bottom: var(--spacing-md);
}

.innovation-feature {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-medium);
}

.innovation-feature:hover {
    transform: translateX(10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.innovation-feature h4 {
    color: var(--accent-3);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */

.testimonial-card {
    transition: transform var(--transition-medium);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.testimonial-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 5px solid var(--primary-light);
    box-shadow: var(--shadow-md);
    display: block;
    margin: 0 auto var(--spacing-md);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-dark);
}

.testimonial-name {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    color: var(--gray);
    font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
}

.carousel-control-prev {
    left: -1.5rem;
}

.carousel-control-next {
    right: -1.5rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ======================================================
   RESOURCES SECTION
   ====================================================== */

.resource-card {
    height: 100%;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: none;
    border-radius: var(--border-radius-md);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.resource-card .card-title {
    color: var(--primary-color);
    text-align: center;
}

.resource-card .card-text {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.resource-card .btn {
    margin: 0 auto;
    display: block;
}

/* ======================================================
   SUSTAINABILITY SECTION
   ====================================================== */

.sustainability-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.sustainability-image-container img {
    transition: transform var(--transition-slow);
}

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

.sustainability-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.sustainability-pillars {
    margin-top: var(--spacing-lg);
}

.pillar-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    height: 100%;
    transition: transform var(--transition-medium);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.pillar-title {
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.pillar-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ======================================================
   CONTACT SECTION
   ====================================================== */

.contact-info {
    color: var(--white);
    padding: var(--spacing-md);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item strong {
    display: block;
    color: var(--accent-1);
    margin-bottom: var(--spacing-xs);
}

.contact-form-container {
    border-radius: var(--border-radius-lg);
}

.contact-form .form-label {
    color: var(--gray-dark);
    font-weight: 500;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.8rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-light);
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* ======================================================
   FOOTER
   ====================================================== */

.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.footer h4, .footer h5 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer p {
    color: var(--gray-light);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: var(--spacing-xs);
}

.footer a {
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    color: var(--gray-light);
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* ======================================================
   SUCCESS PAGE
   ====================================================== */

.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    padding: var(--spacing-xl);
}

.success-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.success-icon {
    font-size: 5rem;
    color: var(--accent-1);
    margin-bottom: var(--spacing-md);
}

.success-card h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.success-card p {
    margin-bottom: var(--spacing-lg);
}

/* ======================================================
   ABOUT, PRIVACY, TERMS PAGES
   ====================================================== */

.page-content {
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
}

.page-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
}

/* ======================================================
   PARALLAX & ANIMATIONS
   ====================================================== */

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ======================================================
   MEDIA QUERIES
   ====================================================== */

@media (max-width: 991.98px) {
    .hero {
        height: auto;
        min-height: 75vh;
        padding-top: 120px;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .innovation-image-container,
    .vision-image-container,
    .sustainability-image-container {
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .contact-info {
        margin-bottom: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .testimonial-card {
        padding: var(--spacing-md) !important;
    }
}