/* Acarin.net Main Stylesheet */

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

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    /* Color Variables - Brand Colors */
    --primary-blue: #003366;
    --accent-teal: #00ADEF;
    --dark-gray: #2C2C2C;
    --medium-gray: #4D4D4D;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    
    /* Semantic Colors */
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #003366 0%, #00ADEF 100%);
    --subtle-gradient: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
    
    /* Font Sizes - Desktop */
    --h1-size: 48px;
    --h2-size: 36px;
    --h3-size: 28px;
    --h4-size: 24px;
    --body-lg-size: 18px;
    --body-size: 16px;
    --body-sm-size: 14px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Animation */
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 350ms;
}

/* ===========================
   Base Typography
   =========================== */
body {
    font-family: var(--font-primary);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   Navigation Header
   =========================== */
.navbar-custom {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: var(--space-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--duration-base) var(--ease-out);
}

.navbar-custom.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 var(--space-md);
    transition: color var(--duration-fast) var(--ease-out);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-teal) !important;
}

.btn-cta-nav {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    font-weight: 500;
    transition: all var(--duration-base) var(--ease-out);
}

.btn-cta-nav:hover {
    background-color: #0095D5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,174,239,0.3);
}

.voice-mode-toggle {
    background: none;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: var(--space-md);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.voice-mode-toggle:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

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

.hero-content h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.hero-content p {
    font-size: var(--body-lg-size);
    color: var(--medium-gray);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

/* ===========================
   Button Styles
   =========================== */
.btn-primary-custom {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: var(--body-size);
    transition: all var(--duration-base) var(--ease-out);
    display: inline-block;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: #0095D5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,174,239,0.3);
    color: var(--white);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--primary-blue);
    padding: var(--space-md) var(--space-xl);
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    font-weight: 600;
    font-size: var(--body-size);
    transition: all var(--duration-base) var(--ease-out);
    display: inline-block;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,51,102,0.3);
}

/* ===========================
   Service Cards
   =========================== */
.services-section {
    padding: var(--space-4xl) 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.section-title p {
    color: var(--medium-gray);
    font-size: var(--body-lg-size);
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: var(--space-xl);
    height: 100%;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--accent-teal);
}

.service-card .icon {
    font-size: 48px;
    margin-bottom: var(--space-lg);
    color: var(--accent-teal);
}

.service-card h4 {
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* ===========================
   Why Acarin Section
   =========================== */
.why-section {
    padding: var(--space-4xl) 0;
}

.why-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.why-point .icon {
    font-size: 32px;
    color: var(--accent-teal);
    margin-right: var(--space-lg);
    flex-shrink: 0;
}

.why-point h4 {
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

/* ===========================
   Timeline
   =========================== */
.timeline-section {
    padding: var(--space-4xl) 0;
    background-color: var(--light-gray);
}

.timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--accent-teal);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-3xl);
}

.timeline-content {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 8px;
    width: 45%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-teal);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-weight: 600;
}

/* ===========================
   Leadership Grid
   =========================== */
.leadership-section {
    padding: var(--space-4xl) 0;
}

.leader-card {
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.leader-card:hover {
    transform: translateY(-4px);
}

.leader-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===========================
   Lab Products
   =========================== */
.lab-section {
    padding: var(--space-4xl) 0;
    background-color: var(--light-gray);
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: var(--space-lg);
}

.product-features {
    color: var(--medium-gray);
    font-size: var(--body-sm-size);
}

/* ===========================
   Partners
   =========================== */
.partners-section {
    padding: var(--space-3xl) 0;
}

.partners-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3xl);
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--duration-base) var(--ease-out);
    max-height: 60px;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: var(--space-4xl) 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

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

.contact-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form .form-control:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(0,174,239,0.25);
}

.contact-info h4 {
    color: var(--accent-teal);
    margin-bottom: var(--space-md);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer a:hover {
    color: var(--accent-teal);
}

/* ===========================
   Voice Mode Styles
   =========================== */
.voice-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
}

.voice-mode-container.active {
    display: flex;
}

.voice-mode-content {
    text-align: center;
    max-width: 800px;
}

.voice-mode-content h1 {
    font-size: 72px;
    margin-bottom: var(--space-xl);
}

.voice-waveform {
    height: 100px;
    margin: var(--space-3xl) 0;
}

.voice-suggestions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.voice-suggestion {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.voice-suggestion:hover {
    background-color: var(--accent-teal);
    color: var(--white);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    :root {
        --h1-size: 32px;
        --h2-size: 28px;
        --h3-size: 24px;
        --h4-size: 20px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .hero-section {
        min-height: calc(100vh - 80px);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
    }
    
    .timeline-year {
        left: 30px;
    }
    
    .service-card {
        margin-bottom: var(--space-lg);
    }
    
    .voice-mode-content h1 {
        font-size: 48px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}

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

.shadow-soft {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.shadow-hard {
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

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

/* ===========================
   Loading States
   =========================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #002244;
        --accent-teal: #0099CC;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}