/* GLOBAL STYLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Colors */
    --algolia-blue: #5468FF;
    --azure-radiance: #00AEFF;

    /* Secondary Colors */
    --royal-blue: #3369E7;
    --medium-purple: #8E43E7;
    --mulberry: #B84592;
    --wild-watermelon: #FF4F81;
    --bittersweet: #FF6C5F;
    --koromiko: #FFC168;
    --shamrock: #2DDE98;
    --java: #1CC7D0;

    /* Neutral Colors */
    --black-pearl: #050F2C;
    --midnight-blue: #003666;

    /* Text Colors */
    --text-light: #EEF2FF;
    --text-muted: #97A3B9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black-pearl);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--azure-radiance), var(--medium-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-light);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--royal-blue);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    color: var(--algolia-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--azure-radiance);
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background: var(--algolia-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--azure-radiance);
    box-shadow: 0 4px 12px rgba(0, 174, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--algolia-blue);
}

.btn-secondary:hover {
    background: rgba(84, 104, 255, 0.1);
    box-shadow: 0 4px 12px rgba(84, 104, 255, 0.2);
    color: var(--text-light);
}

/* LAYOUT */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* HEADER STYLES */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 15, 44, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo span {
    color: var(--algolia-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--algolia-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(84, 104, 255, 0.1), transparent 70%),
        radial-gradient(circle at bottom left, rgba(0, 174, 255, 0.05), transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(84, 104, 255, 0.1);
    color: var(--algolia-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* SERVICES SECTION */
.services {
    background-color: rgba(0, 54, 102, 0.2);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(28, 199, 208, 0.05), transparent 70%);
    z-index: -1;
}

.service-card {
    background-color: rgba(5, 15, 44, 0.7);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 104, 255, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(84, 104, 255, 0.1);
    border-color: rgba(84, 104, 255, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--algolia-blue), var(--azure-radiance));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

/* PRODUCTS SECTION */
.products {
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(142, 67, 231, 0.05), transparent 70%);
    z-index: -1;
}

.product-grid {
    margin-top: 3rem;
}

.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: rgba(5, 15, 44, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(5, 15, 44, 0.9) 0%, rgba(5, 15, 44, 0) 100%);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.product-card:hover .product-info {
    transform: translateY(0);
}

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

/* BRANDS SECTION */
.brands {
    background-color: rgba(0, 54, 102, 0.1);
    position: relative;
}

.brands-slider {
    margin-top: 3rem;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.brands-track.reversed {
    animation-direction: reverse;
}

.brand-item {
    flex: 0 0 200px;
    height: 100px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 15, 44, 0.7);
    margin-right: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.8) opacity(0.6);
}

.brand-item:hover {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-230px * 5));
    }
}

/* CASE STUDIES SECTION */
.case-studies {
    position: relative;
}

.case-study-card {
    background-color: rgba(5, 15, 44, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 104, 255, 0.1);
    height: 100%;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(84, 104, 255, 0.1);
}

.case-study-image {
    height: 240px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-title {
    color: var(--text-light);
}

.case-study-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(84, 104, 255, 0.1);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--algolia-blue);
    margin-bottom: 1rem;
}

/* ABOUT SECTION */
.about {
    background-color: rgba(0, 54, 102, 0.2);
    position: relative;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.about-image-item {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.about-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.about-image-item:hover img {
    transform: scale(1.05);
}

/* FORM SECTION */
.contact {
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(84, 104, 255, 0.05), transparent 70%);
    z-index: -1;
}

.form-wrapper {
    background-color: rgba(0, 54, 102, 0.2);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(84, 104, 255, 0.1);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: rgba(5, 15, 44, 0.7);
    border: 1px solid rgba(84, 104, 255, 0.2);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--algolia-blue);
    box-shadow: 0 0 0 2px rgba(84, 104, 255, 0.2);
}

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

.contact-info {
    background-color: rgba(5, 15, 44, 0.7);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(84, 104, 255, 0.1);
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--algolia-blue);
    margin-right: 0.5rem;
}

/* FAQ SECTION */
.faq {
    background-color: rgba(0, 54, 102, 0.1);
}

.faq-item {
    background-color: rgba(5, 15, 44, 0.7);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(84, 104, 255, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(84, 104, 255, 0.05);
}

.faq-question i {
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-question {
    color: var(--algolia-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* FOOTER */
footer {
    background-color: rgba(0, 36, 68, 0.6);
    padding: 4rem 0 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(84, 104, 255, 0.05), transparent 70%);
    z-index: -1;
}

.footer-top {
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--algolia-blue);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(84, 104, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--algolia-blue);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--algolia-blue);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px 0 0 6px;
    background-color: rgba(5, 15, 44, 0.7);
    border: 1px solid rgba(84, 104, 255, 0.2);
    color: var(--text-light);
    border-right: none;
}

.footer-newsletter-form button {
    padding: 12px 16px;
    background: var(--algolia-blue);
    border: none;
    border-radius: 0 6px 6px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
    background: var(--azure-radiance);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* RESPONSIVE STYLES */
@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-col {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 80px);
        background-color: rgba(5, 15, 44, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s ease;
    }

    nav.active ul {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-form input {
        border-radius: 6px;
        border-right: 1px solid rgba(84, 104, 255, 0.2);
        margin-bottom: 1rem;
    }

    .footer-newsletter-form button {
        border-radius: 6px;
    }
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}