/* =========================================================
   CSS VARIABLES
========================================================= */
:root {
    --primary: #4361ee;
    --primary-dark: #3f37c9;
    --accent: #75b7f0;

    --text: #2b2d42;
    --text-light: #8d99ae;

    --bg: #f8f9fa;
    --card-bg: #ffffff;

    --header-bg: rgba(67, 97, 238, 0.9);
    --footer-bg: #2b2d42;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

[data-theme="dark"] {
    --primary: #4cc9f0;
    --primary-dark: #4895ef;
    --accent: #57ea47;
--bg-rgb: 18, 18, 18;
    --text: #f8f9fa;
    --text-light: #adb5bd;

    --bg: #121212;
    --card-bg: #1e1e1e;

    --header-bg: rgba(30, 30, 30, 0.9);
    --footer-bg: #121212;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   RESET / BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

/* =========================================================
   COMMON UTILITIES
========================================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;

    display: flex;
    align-items: center;

    padding: 1rem 0;
    background: var(--header-bg);
    color: #fff;

    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 100%;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: translateY(4%);
}

.logo-img:hover {
    transform: scale(1.05) translateY(4%);
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;

    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;

    background: #517ed8;
    color: #fff;

    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

/* =========================================================
   FEEDBACK / STATUS
========================================================= */
.fa-spinner {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.error-message i.fas {
    margin-right: 6px;
}

#serverError {
    margin-top: 15px;
    padding: 12px;
    text-align: center;

    background: rgba(247, 37, 133, 0.1);
    border-radius: 8px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    padding: 3rem 0;
    text-align: center;
    color: #fff;
    background: var(--footer-bg);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {

    .logo {
        height: 40px;
    }

    .logo-img {
        max-width: 150px;
    }

    .burger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;

        width: 200px;
        padding: 1rem;

        flex-direction: column;
        background: var(--header-bg);

        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .review-card,
    .feedback-form,
    .page-content {
        padding: 1.5rem;
    }

    .price-table {
        display: block;
        overflow-x: auto;
    }
}
