/* THEME: Futuristic Humanism
   Colors: Charcoal, Electric Blue, Lime
   Fonts: Outfit, Open Sans
*/

:root {
    --primary: #212529;
    --secondary: #4361EE;
    /* Electric Blue */
    --accent: #F72585;
    /* Neon Pink/Coral */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-main: #212529;
    --text-muted: #6C757D;
    --radius: 16px;
    /* 2xl radius requirement */
    --shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary);
    color: #fff;
}

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

.text-white {
    color: #fff;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.section__desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.btn--primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn--primary:hover {
    background: #3046b5;
    transform: translateY(-3px);
}

.btn--secondary {
    background: var(--accent);
    color: #fff;
}

.btn--outline {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn--outline:hover {
    background: var(--secondary);
    color: #fff;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin-top: 20px;
}

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

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

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

.logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo__img {
    flex-shrink: 0;
    display: block;
}

.logo__text {
    color: var(--primary);
}

.logo__dot {
    color: var(--accent);
}

.nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

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

.btn-nav {
    border: 2px solid var(--primary);
    padding: 8px 24px;
    border-radius: 30px;
}

.btn-nav:hover {
    background: var(--primary);
    color: #fff;
}

/* Mobile Menu & Fix */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.burger span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

    /* !!! CRITICAL FIX !!! */
    /* Hide burger when menu is open so it doesn't overlap the close button */
    .burger[aria-expanded="true"] {
        opacity: 0;
        pointer-events: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1050;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        font-size: 1.3rem;
    }

    .nav__close {
        display: block;
    }
}

/* Hero */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(67, 97, 238, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 35px;
}

.hero__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero__actions .btn {
    flex: 1 1 auto;
    min-width: 200px;
}

.float-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
}

@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 35px;
    }

    .hero__actions,
    .hero__note {
        justify-content: center;
    }

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

    .hero__actions .btn {
        width: 100%;
        min-width: unset;
    }

    .float-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .hero__actions .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Grid Layout (Services) */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 250px;
}

.grid-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
}

.grid-item:hover {
    border-color: var(--secondary);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--primary);
    color: #fff;
}

.item-large h3 {
    color: #fff;
}

.item-large .link-arrow {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 15px;
    display: inline-block;
}

.item-wide {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 120px;
}

.row-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.tag {
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

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

    .row-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Reviews */
.reviews-slider {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #eee;
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.review-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin: 15px 0;
}

.stars {
    color: #FFC107;
    margin-bottom: 10px;
}

.review-author {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-author strong {
    color: var(--primary);
    font-size: 1rem;
}

.review-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-list {
    margin-top: 30px;
}

.info-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    flex-shrink: 0;
    color: currentColor;
}

.form-modern {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-main);
}

.input-wrap {
    margin-bottom: 20px;
}

.input-wrap label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    padding: 14px;
    background: #F8F9FA;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.input-wrap textarea {
    min-height: 100px;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    background: #fff;
    border-color: var(--secondary);
    outline: none;
}

.error-msg {
    color: #E74C3C;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    min-height: 18px;
}

.checkbox-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.link-modal {
    color: var(--secondary);
    text-decoration: underline;
    padding: 0;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 60px 0 20px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo .logo__img {
    width: 32px;
    height: 32px;
}

.footer h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a,
.footer ul li button {
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    word-wrap: break-word;
    line-height: 1.5;
}

.footer ul li a:hover,
.footer ul li button:hover {
    color: var(--secondary);
}

.footer .col p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer .icon {
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.8;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .footer ul li {
        width: 100%;
        max-width: 300px;
    }

    .footer ul li a,
    .footer ul li button {
        text-align: center;
        width: 100%;
        padding: 8px 0;
        display: block;
    }

    .footer .col p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
        font-size: 0.85rem;
    }

    .footer__grid {
        gap: 25px;
    }

    .footer h4 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .footer ul li {
        margin-bottom: 8px;
        max-width: 100%;
    }

    .footer ul li a,
    .footer ul li button {
        font-size: 0.85rem;
        padding: 6px 0;
        line-height: 1.4;
    }

    .footer-logo {
        font-size: 1rem;
        justify-content: center;
    }

    .footer-logo .logo__img {
        width: 28px;
        height: 28px;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

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

.modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: var(--radius);
    transform: translateY(20px);
    transition: 0.4s ease;
    display: none;
}

.modal.active {
    display: block;
    transform: translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal__close {
    font-size: 1.5rem;
    color: var(--primary);
}

.modal__body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal__body h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal__body h4:first-child {
    margin-top: 0;
}

.modal__body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-main);
}

.modal__body p:last-child {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Cookie */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    z-index: 1500;
    transform: translateY(150%);
    transition: 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.cookie-btns {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

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