:root {
    /* Color Palette */
    --primary-color: #0F172A;
    /* Deep Slate - Background */
    --secondary-color: #1E293B;
    /* Lighter Slate - Surface */
    --accent-color: #38BDF8;
    /* Sky Blue - Action */
    --accent-hover: #0EA5E9;
    --text-color: #F8FAFC;
    /* Off-white */
    --text-muted: #94A3B8;
    /* Muted text */
    --success-color: #10B981;
    /* Emerald */
    --error-color: #EF4444;
    /* Red */
    --overlay-color: rgba(15, 23, 42, 0.85);

    /* Fonts */
    --font-main: 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --header-height: 70px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

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

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

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

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

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.9;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE DESIGN - Optimized
   ============================================ */

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop to Tablet - 1024px */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 20px;
    }

    .container {
        padding: 0 20px;
    }

    /* Navigation - Burger Menu */
    .burger {
        display: flex;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        padding: 100px 20px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        justify-content: center;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Burger Animation */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Layout Adjustments */
    .section__header h2 {
        font-size: 2.2rem;
    }

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

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

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

/* Tablet - 768px */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 20px;
        --header-height: 60px;
    }

    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 16px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Header */
    .header {
        height: 60px;
    }

    .logo__text {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
        min-height: 70vh;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Cards */
    .feature-card {
        padding: 25px;
    }

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

    .service-card {
        padding: 30px;
    }

    .review-card {
        padding: 25px;
    }

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

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

    /* Contact */
    .card-glass {
        padding: 25px;
        gap: 25px;
    }

    .contact__content {
        flex-direction: column;
    }

    .contact__info,
    .contact__form {
        min-width: 100%;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

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

    /* Modal */
    .modal__window {
        padding: 30px;
        width: 95%;
    }

    /* Cookie Popup */
    .cookie-popup {
        flex-direction: column;
        width: 95%;
        max-width: 400px;
    }

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

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

/* Mobile - 480px */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 16px;
    }

    .container {
        padding: 0 12px;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Logo */
    .logo svg {
        width: 32px;
        height: 32px;
    }

    .logo__text {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 50px 0;
        min-height: 65vh;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Buttons */
    .btn {
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    /* Cards */
    .feature-card,
    .service-card,
    .review-card {
        padding: 20px;
    }

    .feature-card__icon svg {
        width: 28px;
        height: 28px;
    }

    /* Contact */
    .card-glass {
        padding: 18px;
        gap: 20px;
    }

    .contact__info h3 {
        font-size: 1.2rem;
    }

    .contact__item {
        font-size: 0.95rem;
        gap: 10px;
    }

    .form-group input {
        padding: 11px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer__col h4 {
        font-size: 1rem;
    }

    /* Modal */
    .modal__window {
        padding: 25px;
    }
}

/* Small Mobile - 360px */
@media (max-width: 360px) {
    :root {
        --section-padding: 35px 12px;
    }

    .container {
        padding: 0 10px;
    }

    /* Typography */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero__title {
        font-size: 1.6rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    /* Contact - Optimized for small screens */
    .card-glass {
        padding: 15px;
        gap: 18px;
    }

    .contact__info h3 {
        font-size: 1.15rem;
    }

    .contact__item {
        font-size: 0.9rem;
        gap: 8px;
    }

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

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

    .btn-block {
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 35px 0 20px;
    }

    .footer__col h4 {
        font-size: 0.95rem;
    }

    .footer__links {
        font-size: 0.9rem;
    }
}

/* Extra Small - 320px */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }

    .card-glass {
        padding: 12px;
        gap: 15px;
    }

    .contact__item {
        font-size: 0.85rem;
    }

    .form-group input {
        padding: 9px;
        font-size: 0.85rem;
    }

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

/* Sections Common */
.section {
    padding: var(--section-padding);
}

.section__header {
    margin-bottom: 60px;
}

.section__header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
}

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

.feature-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card__icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.service-card:hover {
    background: var(--secondary-color);
    border-color: var(--accent-color);
}

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

.review-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.card-glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact__info {
    flex: 1;
    min-width: 300px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact__form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
}

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

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background: #020617;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.footer__desc {
    margin-top: 15px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links li {
    margin-bottom: 0;
}

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

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modals */
.modal.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal__window {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--accent-color);
}

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

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}