/* ===================================
   CSS Reset & Base Styles
   =================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #0074AE;
    --color-secondary: #F58220;
    --color-dark-gray: #6D6863;
    --color-light-gray: #F5F5F5;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-text: #333333;
    --color-border: #DDDDDD;
    --color-disabled-bg: #E3E3E3;
    --color-disabled-text: #9F9F9F;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    
    /* Container */
    --container-max-width: 1440px;
    --container-padding: 2rem;
    
    /* Border Radius */
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.8;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

input, textarea {
    font-family: inherit;
}

/* ===================================
   Utilities
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   Header
   =================================== */

.header {
    background-color: var(--color-light-gray);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark-gray);
    transition: color var(--transition-fast);
}

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

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.lang-link {
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.lang-link-active {
    color: var(--color-primary);
    cursor: default;
}

.lang-sep {
    color: var(--color-dark-gray);
    opacity: 0.6;
    user-select: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-gray);
    transition: all var(--transition-fast);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
    cursor: pointer;
    border: 3px solid transparent;
}

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

.btn-primary:hover {
    background-color: #d96f1a;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: #d96f1a;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-disabled {
    background-color: var(--color-disabled-bg);
    color: var(--color-disabled-text);
    border-color: var(--color-disabled-text);
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    opacity: 1;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(59.69deg, rgba(0, 0, 0, 0.5) 6.3%, rgba(0, 0, 0, 0) 81.11%);
}

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

.hero-content {
    max-width: 550px;
    padding: 5rem 0;
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Solutions Section
   =================================== */

.solutions-section {
    background-color: var(--color-primary);
    padding: 3.375rem 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.625rem;
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
}

.section-subtitle-white {
    color: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.product-card h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
}

.product-card p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.5;
    max-width: 420px;
}

/* ===================================
   Values Section
   =================================== */

.values-section {
    background-color: var(--color-white);
    padding: 3.375rem 0;
}

.values-section .section-header h2 {
    color: var(--color-primary);
}

.values-section .section-subtitle {
    color: var(--color-dark-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 3rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.value-card {
    background-color: var(--color-secondary);
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
    text-align: center;
    min-height: 230px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 61px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card p {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.3;
}

/* ===================================
   Team Section
   =================================== */

.team-section {
    background-color: var(--color-primary);
    padding: 3.375rem 5rem;
}

.team-section .section-header h2 {
    color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.125rem;
    margin-bottom: 3rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.3125rem;
    max-width: 300px;
}

.team-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    /* border: 5px solid var(--color-white); */
    margin-bottom: 0.5rem;
    transition: transform var(--transition-fast);
}

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

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-white);
    text-align: center;
}

.team-card p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
}

.team-role {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
}

.team-bio {
    font-size: 0.875rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-white);
    text-align: center;
    line-height: 1.5;
    max-width: 241px;
}

.advisory-header {
    text-align: center;
    margin: 2.75rem 0 2rem;
}

.advisory-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
}

.advisory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.125rem 1.125rem;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===================================
   Carousel
   =================================== */

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Carousel buttons */
.carousel-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: auto;
    height: auto;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.8;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1);
}

.carousel-btn svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* Carousel indicators */
.carousel-indicators {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-indicator.active {
    background-color: var(--color-white);
    width: 30px;
    border-radius: 5px;
}

/* Desktop: Hide carousel controls, show grid */
@media (min-width: 769px) {
    .carousel-container {
        display: contents;
    }
    
    .carousel-wrapper {
        display: contents;
    }
    
    .carousel-track {
        display: contents;
    }
    
    .carousel-slide {
        min-width: auto;
        flex-shrink: 1;
        width: auto;
    }
    
    .carousel-btn,
    .carousel-indicators {
        display: none !important;
    }
    
    /* Ensure team-grid works with carousel structure */
    .team-grid .carousel-container,
    .advisory-grid .carousel-container {
        display: contents;
    }
}

/* Mobile: Show carousel */
@media (max-width: 768px) {
    .team-grid,
    .advisory-grid {
        display: block;
        grid-template-columns: none;
    }
    
    .carousel-container {
        display: block;
        width: 100%;
    }
    
    .carousel-wrapper {
        display: block;
        overflow: hidden;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }
    
    .carousel-slide {
        min-width: 100%;
        flex-shrink: 0;
    }
    
    .carousel-btn {
        display: flex;
    }
    
    .carousel-indicators {
        display: flex;
    }
    
    .team-card {
        max-width: 100%;
    }
}

/* Contact Section */
.contact-section {
    background-color: #6d6863;
    color: white;
    padding: 3.375rem 5rem;
}

.contact-section .section-title {
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #9f9f9f;
    border-radius: 7px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f58220;
}

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

.contact-form .btn-large {
    margin: 24px auto 0;
    display: block;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--color-black);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 4rem;
}

.footer-logo svg {
    width: 114px;
    height: 62px;
}

.footer-copyright p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-white);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--color-white);
}

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

.footer-links a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.footer-social {
    display: flex;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.footer-social a:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .advisory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 898px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero-content {
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.75rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .solutions-section {
        padding: 3rem 2rem;
    }
    
    .team-section {
        padding: 3rem 2rem;
    }
    
    .footer-content {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-light-gray);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 2rem;
    }
    
    /* .section-header h2 {
        font-size: 2rem;
    } */
    
    /* .section-subtitle {
        font-size: 1.5rem;
    } */
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .advisory-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 2rem;
    }
    
    /* .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    } */
    
    /* .product-card h3, */
    /* .value-card p {
        font-size: 1.25rem;
    } */
    
    .team-card h3 {
        font-size: 1.25rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
}

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}
