/********** AI.Coeff - Futuristic Tech Premium Design **********/

:root {
    /* Core palette */
    --primary: #0a0e27;
    --primary-light: #141937;
    --secondary: #1a1f3d;

    /* Accent colors */
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ec4899 100%);
    --accent-glow: 0 0 30px rgba(0, 212, 255, 0.3);

    /* Neutrals */
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--gray-200);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
    color: var(--gray-300);
    font-size: 1.05rem;
}

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

.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 500 !important; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SPINNER ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
    background: var(--primary) !important;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-grow {
    background: var(--accent-gradient);
    width: 4rem;
    height: 4rem;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    color: var(--white);
}

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

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-square { width: 42px; height: 42px; }
.btn-sm-square { width: 36px; height: 36px; }
.btn-lg-square { width: 52px; height: 52px; }

.btn-square:hover,
.btn-sm-square:hover,
.btn-lg-square:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--primary);
    transform: scale(1.1);
}

/* Pill badge button */
.btn-sm.border.rounded-pill {
    background: var(--glass-bg);
    border: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    padding: 8px 20px;
    backdrop-filter: blur(10px);
}

/* ===== NAVBAR ===== */
.sticky-top {
    top: -100px;
    transition: var(--transition-smooth);
    background: transparent !important;
}

.sticky-top.bg-primary {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    padding: 15px 0 !important;
    height: auto;
}

.navbar-brand .h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.navbar-brand .text-dark {
    color: var(--accent-cyan) !important;
}

.navbar .navbar-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 35px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--white);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 20px;
        background: var(--primary-light);
        border-radius: 16px;
        margin-top: 15px;
        border: 1px solid var(--glass-border);
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
    }
}

/* ===== HERO SECTION ===== */
.hero-header {
    margin-top: -100px;
    padding-top: 180px !important;
    padding-bottom: 100px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(236, 72, 153, 0.08), transparent);
    pointer-events: none;
}

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

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

.hero-header p {
    font-size: 1.2rem;
    color: var(--gray-300);
    max-width: 500px;
}

#robot-head {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 20px 60px rgba(0, 212, 255, 0.3));
}

/* ===== SECTION STYLES ===== */
.container-fluid.py-5 {
    background: var(--primary);
}

.container-fluid.bg-light {
    background: var(--primary-light) !important;
}

/* Section badge */
.btn.btn-sm.border.rounded-pill.text-primary {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
}

/* ===== ABOUT SECTION ===== */
.about-img {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    pointer-events: none;
}

.about-img video,
.about-img img {
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

/* Check icons */
.fa-check {
    color: var(--accent-cyan) !important;
}

/* ===== SERVICE CARDS ===== */
.service-item {
    position: relative;
    padding: 40px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
    background: var(--secondary);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item .service-icon {
    margin: 0 auto 25px auto;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-radius: 20px;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.service-item h5 {
    color: var(--white);
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.service-item p {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.service-item:hover h5 {
    color: var(--accent-cyan);
}

/* ===== FEATURE SECTION ===== */
.feature {
    background: var(--primary) !important;
    position: relative;
}

.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(0, 212, 255, 0.1), transparent),
        radial-gradient(ellipse 50% 60% at 100% 80%, rgba(124, 58, 237, 0.08), transparent);
    pointer-events: none;
}

.feature .btn-sm-square {
    background: var(--accent-cyan);
    color: var(--primary);
    border: none;
}

/* ===== CONTACT FORM ===== */
.form-control,
.form-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    padding: 16px 20px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--secondary);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    color: var(--white);
}

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

.form-floating > label {
    color: var(--gray-400);
    padding: 16px 20px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--accent-cyan);
    background: var(--primary);
    padding: 0 8px;
    height: auto;
}

textarea.form-control {
    min-height: 150px;
}

/* ===== FOOTER ===== */
footer.bg-dark {
    background: var(--primary-light) !important;
    border-top: 1px solid var(--glass-border);
}

footer h5 {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

footer .fa {
    color: var(--accent-cyan) !important;
}

footer .btn-link {
    display: block;
    padding: 6px 0;
    color: var(--gray-400);
    font-weight: 400;
    transition: var(--transition-fast);
    text-decoration: none;
    font-size: 0.9rem;
}

footer .btn-link:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

footer .btn-link::before {
    content: '\f105';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--accent-cyan);
}

footer .border-top {
    border-color: var(--glass-border) !important;
}

.mascotte-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.2));
    transition: var(--transition-smooth);
}

.mascotte-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0, 212, 255, 0.3));
}

@media (min-width: 992px) {
    .mascotte-img {
        transform: scale(1.2);
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transition: var(--transition-smooth);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-light);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner p {
    margin: 0;
    color: var(--gray-300);
    font-size: 0.95rem;
    text-align: center;
}

.cookie-banner a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--white);
}

.cookie-banner .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
}

.cookie-banner .btn-primary {
    background: var(--accent-gradient);
    border: none;
}

.cookie-banner .btn-primary:nth-of-type(2) {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.cookie-banner .btn-primary:nth-of-type(3) {
    background: transparent;
    border: 1px solid var(--gray-500);
    color: var(--gray-400);
}

.cookie-banner .btn-primary:nth-of-type(3):hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ===== MODAL ===== */
.modal-content {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-body {
    padding: 40px;
}

.modal-body h4 {
    font-family: var(--font-display);
}

.modal-body .text-muted {
    color: var(--gray-400) !important;
}

.modal-body .text-success {
    color: #10b981 !important;
}

.modal-body .text-danger {
    color: #ef4444 !important;
}

.modal-body .fa-check-circle {
    color: #10b981;
}

.modal-body .fa-times-circle {
    color: #ef4444;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Staggered fade in for service cards */
.service-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.wow .service-item:nth-child(1) { animation-delay: 0.1s; }
.wow .service-item:nth-child(2) { animation-delay: 0.2s; }
.wow .service-item:nth-child(3) { animation-delay: 0.3s; }
.wow .service-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-header {
        padding-top: 140px !important;
    }

    .hero-header h1 {
        font-size: 2.2rem;
    }

    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .cookie-banner .btn {
        width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--accent-cyan) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-light {
    background: var(--primary-light) !important;
}

.text-white-50 {
    color: var(--gray-400) !important;
}

.text-white-50:hover {
    color: var(--accent-cyan) !important;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-cyan);
    color: var(--primary);
}

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

::-webkit-scrollbar-track {
    background: var(--primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}
