/* Variables & Reset */
:root {
    --primary-color: #0B1120;
    /* Deep Navy */
    --accent-color: #06B6D4;
    /* Cyan Neon */
    --accent-hover: #0891b2;
    --text-color: #334155;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* UI Elements */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-height: 44px;
    /* Better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn--primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

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

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

.btn--sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.section {
    padding: 80px 0;
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 600;
    transition: var(--transition);
}

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

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    padding: 5px;
    min-width: 44px;
    /* Better touch target */
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: var(--transition);
}

.burger span:nth-child(1) {
    top: 10px;
}

.burger span:nth-child(2) {
    top: 19px;
}

.burger span:nth-child(3) {
    bottom: 10px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 19px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('images/hero-bg.jpg') no-repeat center/cover;
    color: var(--white);
    margin-top: 60px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.9), rgba(6, 182, 212, 0.4));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.service-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
}

.service-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-item:hover .service-item__img {
    transform: scale(1.1);
}

.service-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

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

.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-card__avatar {
    margin-bottom: 20px;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    font-weight: 700;
    color: var(--accent-color);
}

/* Contact */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact__note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    /* Prevents zoom on iOS */
    min-height: 44px;
    /* Better touch target */
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.footer__col a,
.footer__col button {
    color: #94a3b8;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    text-align: left;
    padding: 0;
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Modals & Cookie */
.cookie-popup {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: calc(100% - 30px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    z-index: 2000;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    border-radius: 12px 12px 0 0;
    opacity: 0;
    display: none;
}

.cookie-popup.show {
    bottom: 0;
    opacity: 1;
    display: flex;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cookie-popup__content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    text-align: center;
}

.cookie-popup__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.link-btn {
    border: none;
    background: none;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2999;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius);
    z-index: 3000;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

.modal.active,
.modal-overlay.active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-content {
    color: var(--text-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-content ul,
.modal-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.modal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.modal-content a:hover {
    color: var(--accent-hover);
}

.modal-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Design */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .features__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .reviews__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .contact__wrapper {
        gap: 40px;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        font-size: 1.2rem;
    }

    .burger {
        display: flex;
    }

    .modal {
        width: 95%;
        max-width: 550px;
        padding: 25px;
    }

    .modal-content h3 {
        font-size: 1.6rem;
    }

    .modal-content h4 {
        font-size: 1.2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .hero {
        min-height: 500px;
        margin-top: 60px;
    }

    .hero__title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

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

    .hero__actions .btn {
        width: 100%;
    }

    .badge {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        height: 250px;
    }

    .reviews__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-popup__actions {
        width: 100%;
        justify-content: center;
    }

    .modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }

    .modal-content h4 {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .modal-content p,
    .modal-content ul,
    .modal-content ol {
        font-size: 0.95rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

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

    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo svg {
        width: 32px;
        height: 32px;
    }

    .hero {
        min-height: 450px;
        margin-top: 55px;
    }

    .hero__content {
        padding: 0 10px;
    }

    .hero__title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card {
        padding: 20px;
    }

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

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .service-item {
        height: 200px;
    }

    .service-item__content {
        padding: 15px;
    }

    .service-item__content h3 {
        font-size: 1.2rem;
    }

    .service-item__content p {
        font-size: 0.9rem;
    }

    .review-avatar {
        width: 60px;
        height: 60px;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .review-author {
        font-size: 0.9rem;
    }

    .contact__info h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .contact__info p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 40px 0 15px;
    }

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

    .footer__col h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer__col p,
    .footer__col a,
    .footer__col button {
        font-size: 0.9rem;
    }

    .cookie-popup {
        padding: 15px;
    }

    .cookie-popup__content p {
        font-size: 0.85rem;
    }

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

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

    .modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 15px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .modal-content h4 {
        font-size: 1rem;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .modal-content p,
    .modal-content li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .modal-content ul,
    .modal-content ol {
        padding-left: 20px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.85rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero__title {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .cookie-popup,
    .modal-overlay,
    .hero__actions {
        display: none;
    }

    .hero {
        margin-top: 0;
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}