/* 
 * Style.css
 * Theme: Dark Innovation (Deep Blue/Black + Neon Green)
 * Font: Jura
 */

:root {
    /* Color Palette */
    --color-bg: #050a10;
    --color-bg-secondary: #0f1621;
    --color-text: #e0e6ed;
    --color-text-muted: #94a3b8;
    --color-primary: #00ff99;
    /* Neon Green */
    --color-primary-hover: #00cc7a;
    --color-accent: #7b2cbf;
    /* Deep Purple */
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-main: 'Jura', sans-serif;
    --font-body: system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* UI */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 255, 153, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

/* Base Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-black);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.4);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.6);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-black);
}

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.section {
    padding: clamp(2rem, 8vw, 6rem) 0;
}

.section__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover {
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 153, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 10, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
}

.nav__link {
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-white);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 1001;
}

.burger__line {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 16, 0.7) 0%, var(--color-bg) 100%);
}

.hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    height: 100%;
}

.hero__content {
    max-width: 600px;
    flex: 1;
}

.hero__visuals {
    flex: 1;
    position: relative;
    height: 400px;
    /* fixed height for visuals container */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(40px);
    position: absolute;
    animation: pulse 5s infinite ease-in-out;
}

.hero__shape {
    position: absolute;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    backdrop-filter: blur(5px);
}

.hero__shape--1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    border-radius: 20%;
    transform: rotate(45deg);
    animation: float 6s infinite ease-in-out;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.hero__shape--2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    border-radius: 50%;
    border-style: dashed;
    animation: float 8s infinite ease-in-out reverse;
}

.hero__dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-text-muted) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.hero__title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, var(--color-text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.hero__actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Services (Grid) */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, rgba(0, 255, 153, 0.05) 100%);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 153, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(0, 255, 153, 0.2);
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: rgba(0, 255, 153, 0.1);
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.service-card__content {
    /* padding removed as it's handling by parent now */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card__text {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

/* About (Features) */
.features-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.feature-item__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: rgba(0, 255, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item__icon img {
    width: 40px;
    height: 40px;
}

.feature-item__title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

/* Reviews */
.reviews__slider-wrapper {
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews__slider-wrapper::-webkit-scrollbar {
    display: none;
}

.reviews__grid {
    display: flex;
    gap: var(--spacing-md);
    width: max-content;
}

.review-card {
    width: 350px;
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.review-card__name {
    margin-bottom: 0;
}

.review-card__role {
    font-size: 0.875rem;
    color: var(--color-primary);
}

.review-card__text {
    font-style: italic;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-bg) 0%, rgba(0, 255, 153, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cta__text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.container--sm {
    max-width: 800px;
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact__info {
    padding-right: var(--spacing-lg);
}

.contact__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.contact__list {
    margin-top: var(--spacing-md);
}

.contact__list li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.contact__form {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 255, 153, 0.05);
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.form-checkbox .modal-trigger {
    color: var(--color-primary);
    text-decoration: underline;
    display: inline;
    padding: 0;
    font-size: inherit;
}

.form-checkbox .modal-trigger:hover {
    color: var(--color-white);
    text-decoration: none;
}

.error-message {
    color: var(--color-danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2em;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.footer__col h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.footer__nav li {
    margin-bottom: 0.5rem;
}

.footer__nav a,
.footer__nav button {
    color: var(--color-text-muted);
    transition: var(--transition);
    text-align: left;
}

.footer__nav a:hover,
.footer__nav button:hover {
    color: var(--color-white);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    max-width: 350px;
    border: 1px solid var(--color-primary);
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-popup__actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    animation: modalSlideIn 0.3s ease forwards;
}

.modal.active {
    display: block;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.modal__close:hover {
    color: var(--color-white);
}

/* Success Modal specific */
.success-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Fullscreen on mobile */
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 2000;
        /* Higher than header and burger */
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 35px;
        margin-top: 200px;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 25px;
        right: clamp(1rem, 5vw, 2rem);
        font-size: 2.5rem;
        color: var(--color-white);
        z-index: 2001;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .contact__info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        /* Larger touch targets */
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
        /* Space for fixed header */
        padding-bottom: 40px;
    }

    .hero__visuals {
        display: none;
        /* Hide decorative visuals on small mobile screens to save space */
    }

    .section {
        padding: clamp(3rem, 10vw, 4rem) 0;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 0 1rem;
    }

    .logo__text {
        font-size: 1.25rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}