/* Variable Declaration - Dark Neon Theme */
:root {
    --bg-dark: #0d0d12;
    --bg-surface: #1a1a24;
    --bg-surface-translucent: rgba(26, 26, 36, 0.8);

    --primary: #00ffa3;
    /* Neon Green */
    --primary-glow: rgba(0, 255, 163, 0.4);

    --secondary: #7000ff;
    /* Electric Purple */
    --secondary-glow: rgba(112, 0, 255, 0.4);

    --accent: #ff006e;
    /* Hot Pink */

    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;
    --text-light: #ffffff;

    --font-main: 'Exo 2', sans-serif;
    /* Google Font */

    --radius-xl: 1.5rem;
    --radius-l: 1rem;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 15px var(--primary-glow);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

ul {
    list-style: none;
}

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

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

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-light);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn--primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn--primary:hover {
    background: #00e692;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

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

.btn--secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn--small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn--outline {
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

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

.link-btn {
    color: var(--primary);
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

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

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

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

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    position: relative;
}

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

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

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

.nav__close {
    display: none;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.burger span {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    /* header offset */
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.15), transparent 60%),
        radial-gradient(circle at bottom left, rgba(0, 255, 163, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

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

.badge {
    display: inline-block;
    background: rgba(112, 0, 255, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
}

.hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(50px);
    opacity: 0.6;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: rotate(120deg);
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: rotate(240deg);
    }
}

/* About / Features - Layout: Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card__title {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Services - Layout: Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.masonry-item {
    background: var(--bg-surface);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.masonry-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.item--large {
    grid-row: span 2;
    background: linear-gradient(135deg, #13131d 0%, #0d0d12 100%);
}

/* Decorative element for large card */
.item--large::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    opacity: 0.3;
}

.item--wide {
    grid-column: span 2;
    grid-row: 3;
    background: linear-gradient(90deg, #0d1210 0%, #1a2420 100%);
    min-height: 220px;
}

/* Decorative element for wide card */
.item--wide::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.2;
}

/* Specific styling for the other items */
.masonry-item:not(.item--large):not(.item--wide) {
    background: #161621;
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.service-card {
    position: relative;
    z-index: 2;
}

.service-card__icon-mini img,
.contact-icon,
.footer-contact-icon {
    width: 24px;
    height: 24px;
    filter: invert(72%) sepia(81%) saturate(541%) hue-rotate(99deg) brightness(101%) contrast(106%);
    /* Matches #00ffa3 approximately */
}

.contact-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.item--large .service-card__icon-mini img {
    filter: invert(18%) sepia(91%) saturate(7400%) hue-rotate(270deg) brightness(95%) contrast(110%);
    /* Matches #7000ff approximately */
}

.service-card__icon-mini {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.masonry-item__bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.05) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.item--wide .masonry-item__bg {
    background: radial-gradient(circle, rgba(0, 255, 163, 0.05) 0%, transparent 50%);
}

/* Reviews - Layout: Flex Row */
.reviews-slider {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    /* Still allow wrap for mobile, but cards will be better sized */
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--radius-l);
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.1);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333;
    overflow: hidden;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__info h4 {
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.review-card__info span {
    font-size: 0.9rem;
    color: var(--primary);
}

.review-card__text {
    font-style: italic;
    color: var(--text-muted);
    margin-top: auto;
    /* Pushes text if layout varies, though headers are constant */
    padding-top: 1rem;
    line-height: 1.7;
}

/* Contact Section */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__list {
    margin-top: 2rem;
}

.contact__list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact__form {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-group input {
    width: auto;
}

/* Contents Section */
.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.content-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 163, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card__icon img {
    width: 30px;
    height: 30px;
}

.content-card__title {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.content-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.error-msg {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
    min-height: 1.2em;
}

/* Footer */
.footer {
    background: #08080c;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.footer__col a,
.footer-link {
    color: var(--text-muted);
    transition: var(--transition);
    text-align: left;
}

.footer__col a:hover,
.footer-link:hover {
    color: var(--primary);
}

.footer__col p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.footer-contact-icon {
    display: inline-block;
    /* Override global img { display: block } */
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-l);
    padding: 1.5rem;
    z-index: 9000;
    box-shadow: var(--shadow-soft);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cookie-popup__actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-surface);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.2);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1;
}

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

.modal__title {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .header .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

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

    .nav__close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2.5rem;
        color: var(--text-muted);
    }

    .burger {
        display: flex;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero__actions {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .item--large,
    .item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}