/* ==========================================================================
   Shared Layout Styles (Navigation & Footer)
   ========================================================================== */

:root {
    --primary: hsl(6, 90%, 40%);
    --accent: #b8885a;
    --bg: #050505;
    --text: #ffffff;
    --secondary: #f5f5f3;
    --card-bg: #111111;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --body-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --base-radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

section[id],
[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    font-size: 1rem;
}

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

ul {
    list-style: none;
}

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

/* Common Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    color: black;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(3, 1, 1, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 136, 90, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo span {
    color: #e53935;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #f5f5f5;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (min-width: 769px) {
    .nav-links:hover li {
        opacity: 0.7;
    }

    .nav-links li:hover {
        opacity: 1;
    }
}

.nav-cta {
    margin-left: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   Footer section
   ========================================================================== */
.main-footer {
    padding: 80px 0 30px;
    background: #000;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p,
.footer-links ul li,
.footer-bottom {
    color: #888;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--accent);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #111;
    color: #555;
    font-size: 0.9rem;
}

/* ==========================================================================
   Fixed Contact Buttons
   ========================================================================== */
.fixed-btn {
    position: fixed;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    bottom: 30px;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
}

.telegram-btn {
    left: 30px;
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077bb;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5);
}

.whatsapp-btn-fixed {
    right: 30px;
    background: #25d366;
    color: white;
}

.whatsapp-btn-fixed:hover {
    background: #1eae5a;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width: 768px) {

    .logo,
    .hamburger {
        position: relative;
        z-index: 1100;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(3, 1, 1, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: scale(1.1);
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fixed-btn {
        width: 65px;
        height: 65px;
        font-size: 32px;
        bottom: 25px;
    }
}

@media (max-width: 480px) {
    .fixed-btn {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
    }

    .telegram-btn {
        left: 20px;
    }

    .whatsapp-btn-fixed {
        right: 20px;
    }
}