/* =============================================
   C26 Website - Main Stylesheet
   ============================================== */

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================== */
:root {
    /* Primary - C26 Red */
    --c26-red: #FF0000;
    --c26-red-hover: #CC0000;
    --c26-red-light: #FF3333;
    --c26-red-50: rgba(211, 47, 47, 0.1);
    --c26-red-100: rgba(211, 47, 47, 0.2);

    /* Secondary - Navy */
    --c26-navy-900: #0F172A;
    --c26-navy-800: #1E293B;
    --c26-navy-700: #334155;
    --c26-navy-600: #475569;

    /* Accent - Teal */
    --c26-teal: #14B8A6;
    --c26-teal-light: #2DD4BF;
    --c26-teal-50: rgba(20, 184, 166, 0.1);

    /* Neutral */
    --c26-white: #FFFFFF;
    --c26-gray-50: #F8FAFC;
    --c26-gray-100: #F1F5F9;
    --c26-gray-200: #E2E8F0;
    --c26-gray-300: #CBD5E1;
    --c26-gray-400: #94A3B8;
    --c26-gray-500: #64748B;
    --c26-gray-600: #475569;

    /* Functional */
    --c26-success: #22C55E;
    --c26-warning: #F59E0B;
    --c26-error: #EF4444;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* 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);
    --shadow-glow-red: 0 0 40px rgba(211, 47, 47, 0.3);
    --shadow-glow-teal: 0 0 40px rgba(20, 184, 166, 0.3);
}

/* =============================================
   BASE STYLES
   ============================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   ACCESSIBILITY
   ============================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c26-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--c26-red);
    outline-offset: 2px;
}

/* =============================================
   NAVIGATION
   ============================================== */
#navbar {
    transition: all var(--transition-slow);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
    #navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
    }
}

#navbar.scrolled .nav-link {
    color: var(--c26-navy-700);
}

@media (prefers-color-scheme: dark) {
    #navbar.scrolled .nav-link {
        color: var(--c26-gray-300);
    }

    #navbar.scrolled .nav-link:hover {
        color: white;
    }
}

#navbar.scrolled .nav-link:hover {
    color: var(--c26-red);
}

#navbar.scrolled .logo-light {
    display: none;
}

#navbar.scrolled .logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    #navbar.scrolled .logo-light {
        display: block;
    }

    #navbar.scrolled .logo-dark {
        display: none;
    }
}

#navbar.scrolled #mobile-menu-btn {
    color: var(--c26-navy-900);
}

@media (prefers-color-scheme: dark) {
    #navbar.scrolled #mobile-menu-btn {
        color: white;
    }
}

/* =============================================
   BUTTONS
   ============================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--c26-red);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--c26-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-red);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--c26-teal);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-teal:hover {
    background: var(--c26-teal-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-teal);
}

/* =============================================
   HERO SECTION
   ============================================== */
.gradient-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.gradient-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--c26-red) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float1 20s ease-in-out infinite;
}

.gradient-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--c26-teal) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.gradient-shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--c26-red-light) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, 30px) rotate(120deg); }
    66% { transform: translate(20px, -20px) rotate(240deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-shape {
        animation: none;
    }
}

.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--c26-red-light) 0%, var(--c26-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   SERVICE CARDS
   ============================================== */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c26-gray-100);
    transition: all var(--transition-slow);
}

@media (prefers-color-scheme: dark) {
    .service-card {
        background: var(--c26-navy-900);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c26-red-50);
    color: var(--c26-red);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--c26-red);
    color: white;
}

/* =============================================
   PRODUCT CARDS
   ============================================== */
.product-card {
    background: var(--c26-navy-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* =============================================
   FEATURE ITEMS (Aiqoris)
   ============================================== */
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================
   VALUE CARDS
   ============================================== */
.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c26-red-50);
    color: var(--c26-red);
    border-radius: 1rem;
    margin: 0 auto 1rem;
}

/* =============================================
   CONTACT SECTION
   ============================================== */
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

/* =============================================
   FORM STYLES
   ============================================== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--c26-navy-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input::placeholder {
    color: var(--c26-gray-500);
}

.form-input:focus {
    outline: none;
    border-color: var(--c26-red);
    box-shadow: 0 0 0 3px var(--c26-red-50);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--c26-error);
}

/* =============================================
   ANIMATIONS
   ============================================== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* =============================================
   UTILITIES
   ============================================== */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================== */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-teal {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* =============================================
   SELECTION
   ============================================== */
::selection {
    background: var(--c26-red);
    color: white;
}

::-moz-selection {
    background: var(--c26-red);
    color: white;
}

/* =============================================
   SCROLLBAR
   ============================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--c26-navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--c26-navy-600);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c26-navy-700);
}
