/* ======================
   COTVISION CSS STYLES
   ====================== */

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

:root {
    --primary: #00D4FF;
    --secondary: #0066FF;
    --dark: #0a0e27;
    --darker: #050714;
    --light: #ffffff;
    --gray: #8892b0;
    --gradient: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ======================
   NAVIGATION
   ====================== */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(5, 7, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    min-height: 100vh;
    height: 100vh; /* Force exact viewport height */
    height: 100dvh; /* Dynamic viewport height for modern mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

/* ======================
   ANIMATED CODE DISPLAY
   ====================== */
.hero-visual {
    position: relative;
    height: 500px;
}

.code-window {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.code-window:nth-child(1) {
    top: 0;
    left: 0;
    width: 300px;
    animation-delay: 0s;
}

.code-window:nth-child(2) {
    top: 150px;
    right: 0;
    width: 280px;
    animation-delay: 2s;
}

.code-window:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    animation: floatCentered 6s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes floatCentered {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-20px) rotate(1deg); }
}

.window-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-content {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-line {
    margin: 0.25rem 0;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }

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

.code-keyword { color: #ff79c6; }
.code-string { color: #f1fa8c; }
.code-function { color: #50fa7b; }
.code-variable { color: #8be9fd; }

/* ======================
   SERVICES SECTION
   ====================== */
.services {
    padding: 5rem 5%;
    background: var(--dark);
    scroll-margin-top: 5rem; /* Offset for fixed nav */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* ======================
   TECH STACK SECTION
   ====================== */
.tech-stack {
    padding: 5rem 5%;
    background: var(--darker);
    scroll-margin-top: 5rem; /* Offset for fixed nav */
}

.tech-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-name {
    font-weight: 600;
    color: var(--light);
}

/* ======================
   PROCESS SECTION
   ====================== */
.process {
    padding: 5rem 5%;
    background: var(--dark);
    scroll-margin-top: 5rem; /* Offset for fixed nav */
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.process-item:nth-child(even) {
    flex-direction: row-reverse;
}

.process-content {
    width: 45%;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.process-content:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* ======================
   CONTACT SECTION
   ====================== */
.contact {
    padding: 5rem 5%;
    background: var(--darker);
    scroll-margin-top: 5rem; /* Offset for fixed nav */
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(5, 7, 20, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

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

/* Error messages for form validation */
.error-message {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    min-height: 1.2rem;
    display: block;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error input,
.form-group.error textarea,
input.error,
textarea.error {
    border-color: #ff4757;
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.25);
}

.form-group.error label {
    color: #ff4757;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.1rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Language switching for legal pages */
[lang="en"] .content-ro { display: none; }
[lang="ro"] .content-en { display: none; }

.content-ro, .content-en {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient);
    color: var(--light);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

/* ======================
   FOOTER
   ====================== */
footer {
    padding: 3rem 5%;
    background: var(--darker);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

/* ======================
   LANGUAGE SWITCHER
   ====================== */
.language-switcher {
    display: flex;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    padding: 0.2rem;
    gap: 0.2rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.lang-btn.active {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

/* ======================
   MOBILE MENU
   ====================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* ======================
   LOADING ANIMATION
   ====================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ======================
   SCROLL TO TOP BUTTON
   ====================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    z-index: 1000;
}

/* Hide scroll-top button when near footer to avoid overlap */
.scroll-top.near-footer {
    bottom: 180px; /* Move up when near footer */
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.scroll-top::after {
    content: '↑';
    color: var(--light);
    font-size: 1.5rem;
    font-weight: bold;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */

/* Tablet styles */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 1rem 5%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    #mobileMenu {
        display: flex !important;
        visibility: visible !important;
    }
    
    #mobileMenu span {
        background: #00D4FF !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 7, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    /* Language switcher in mobile menu */
    .nav-actions {
        gap: 1rem;
    }
    
    .language-switcher {
        scale: 0.9;
    }

    /* Hero Section */
    .hero {
        padding: 0;
        min-height: 100vh;
        height: 100vh; /* Force exact viewport height on mobile */
        height: 100dvh; /* Dynamic viewport height for modern mobile browsers */
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        padding-top: 6rem; /* Account for fixed nav */
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
        font-weight: 800;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        line-height: 1.6;
        color: var(--gray);
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .hero-visual {
        display: none; /* Hide code windows completely on mobile */
    }

    /* Sections padding */
    .services,
    .tech-stack,
    .process,
    .contact {
        padding: 3rem 5%;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .section-header p {
        font-size: 1rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Tech Stack */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .tech-icon {
        font-size: 2.5rem;
    }

    /* Process Timeline */
    .process-timeline {
        padding-left: 0;
    }
    
    .process-timeline::before {
        left: 20px;
    }

    .process-item,
    .process-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        margin: 2rem 0;
        padding-left: 60px;
    }

    .process-content {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .process-content h3 {
        font-size: 1.2rem;
    }

    .process-number {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Footer */
    footer {
        padding: 2rem 5%;
    }
    
    /* Scroll to top adjustments for mobile */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-top.near-footer {
        bottom: 150px; /* Adjusted for mobile footer height */
    }
    
    .social-links {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    /* Further mobile optimizations - keep full screen */
    .hero {
        min-height: 100vh;
        height: 100vh; /* Force exact viewport height on small mobile */
        height: 100dvh; /* Dynamic viewport height for modern mobile browsers */
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .hero-content {
        max-width: 450px;
        padding-top: 5rem;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
        margin-bottom: 1.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        line-height: 1.5;
        max-width: 400px;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    
    .btn {
        max-width: 300px;
        padding: 1.1rem 2.2rem;
        font-size: 1rem;
    }
    
    .services,
    .tech-stack,
    .process,
    .contact {
        padding: 2rem 3%;
    }
    
    nav {
        padding: 1rem 3%;
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }
    
    .hero-visual {
        display: none; /* Hide code windows on small mobile too */
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .process-item {
        padding-left: 50px;
    }
    
    .process-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        left: 17px;
    }
    
    .process-timeline::before {
        left: 17px;
    }
}

/* Legal Links in Footer */
.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 !important;
}

.legal-links a {
    color: var(--gray) !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary) !important;
    background: rgba(0, 212, 255, 0.1);
}

@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .legal-links a {
        width: fit-content;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(20, 24, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    max-width: 500px;
    width: calc(100% - 2rem);
    z-index: 10000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 255, 255, 0.1);
    text-align: center;
    display: none;
}

.cookie-banner.show {
    display: block;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-content {
    margin-bottom: 1rem;
}

.cookie-banner-content p {
    margin: 0 0 0.3rem 0;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.3;
}

.cookie-banner-content p:first-child {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #00D4FF, #0099CC);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0099CC, #0077AA);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-reject:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-color: #ff6b6b;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        max-width: calc(100% - 1rem);
        padding: 0.8rem 1rem;
    }
    
    .cookie-banner-content p {
        font-size: 0.8rem;
    }
    
    .cookie-banner-buttons {
        gap: 0.4rem;
    }
    
    .cookie-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}