/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --bg-primary: #080303;
    --bg-secondary: #0D0606;
    --bg-tertiary: #120909;
    --bg-card: #110808;
    --bg-card-hover: #1A0E0E;

    --red-950: #2A0808;
    --red-900: #3D0C0C;
    --red-800: #5C1010;
    --red-700: #7B1818;
    --red-600: #9B2020;
    --red-500: #B71C1C;
    --red-400: #C62828;
    --red-300: #E53935;
    --red-200: #EF5350;

    --text-primary: #F2EAE4;
    --text-secondary: #BBA99E;
    --text-muted: #7A6B62;
    --text-accent: #E8CDBD;

    --border-subtle: rgba(123, 24, 24, 0.15);
    --border-medium: rgba(123, 24, 24, 0.3);

    --font-display: 'Bodoni Moda', serif;
    --font-body: 'Outfit', sans-serif;

    --container-max: 1200px;
    --section-padding: 140px;
    --header-height: 80px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

.hide-mobile { display: inline; }

/* ===========================
   Typography
   =========================== */
.section-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red-400);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.section-title em {
    font-style: italic;
    color: var(--red-300);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 36px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--red-700), var(--red-600));
    color: var(--text-primary);
    box-shadow: 0 4px 24px rgba(183, 28, 28, 0.25);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    box-shadow: 0 8px 40px rgba(183, 28, 28, 0.4);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn--outline:hover {
    border-color: var(--red-400);
    background: rgba(123, 24, 24, 0.1);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease-out);
}

.header.scrolled {
    background: rgba(8, 3, 3, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--red-700), var(--red-500));
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    letter-spacing: -0.5px;
}

.logo__text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.logo__accent {
    color: var(--red-400);
    font-weight: 400;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red-400);
    transition: width 0.4s var(--ease-out);
}

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

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 7px);
}

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

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

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: var(--bg-primary);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
}

.hero__glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--red-900), transparent 70%);
    top: -100px;
    right: -100px;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--red-950), transparent 70%);
    bottom: -50px;
    left: 10%;
    animation: glowPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.15); }
}

/* Decorative vertical lines */
.hero__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__lines span {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border-subtle) 30%,
        var(--border-subtle) 70%,
        transparent
    );
}

.hero__lines span:nth-child(1) { left: 20%; }
.hero__lines span:nth-child(2) { left: 40%; }
.hero__lines span:nth-child(3) { left: 60%; }
.hero__lines span:nth-child(4) { left: 80%; }
.hero__lines span:nth-child(5) { left: 95%; opacity: 0.4; }

.hero__content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red-300);
    margin-bottom: 32px;
}

.hero__label-dot {
    width: 8px;
    height: 8px;
    background: var(--red-400);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(198, 40, 40, 0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero__title em {
    font-style: italic;
    color: var(--red-300);
    position: relative;
}

.hero__subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 48px;
}

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

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero__scroll span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-medium);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--red-400);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ===========================
   About
   =========================== */
.about {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about__accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--red-600), var(--red-400));
    border-radius: 2px;
    margin-top: -20px;
}

.about__right {
    padding-top: 8px;
}

.about__lead {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-accent);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about__right p {
    margin-bottom: 20px;
}

.about__right p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Services
   =========================== */
.services {
    background: var(--bg-primary);
    overflow: hidden;
}

.services__bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red-950), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.services__header {
    text-align: center;
    margin-bottom: 72px;
}

.services__header .section-title {
    margin-bottom: 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Service Card */
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px 32px;
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(123, 24, 24, 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    border-color: var(--border-medium);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(123, 24, 24, 0.08);
}

.card:hover::before {
    opacity: 1;
}

.card__border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-600), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover .card__border {
    opacity: 1;
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-950);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 22px;
    color: var(--red-300);
    margin-bottom: 28px;
    transition: all 0.4s var(--ease-out);
}

.card:hover .card__icon {
    background: var(--red-900);
    border-color: var(--red-700);
    transform: scale(1.05);
}

.card__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.card:hover .card__text {
    color: var(--text-secondary);
}

/* ===========================
   Contact
   =========================== */
.contact {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all 0.3s ease;
}

a.contact__item:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

.contact__item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-950);
    border-radius: 8px;
    color: var(--red-400);
    font-size: 16px;
    flex-shrink: 0;
}

.contact__item-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact__item-value {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

/* Contact Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px 20px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(123, 24, 24, 0.15);
    background: var(--bg-card-hover);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
}

.footer__inner {
    text-align: center;
}

.footer__copy {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ===========================
   Toast Notification
   =========================== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--bg-card);
    border: 1px solid var(--red-700);
    color: var(--text-primary);
    padding: 16px 28px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --header-height: 70px;
    }

    .container {
        padding: 0 24px;
    }

    .hide-mobile { display: none; }

    /* Mobile Nav */
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 0;
        background: rgba(8, 3, 3, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: 24px;
        font-family: var(--font-display);
        font-weight: 500;
        letter-spacing: 1px;
    }

    /* Hero */
    .hero__title {
        font-size: clamp(40px, 10vw, 56px);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
        justify-content: center;
    }

    .hero__scroll {
        display: none;
    }

    .hero__lines span:nth-child(4),
    .hero__lines span:nth-child(5) {
        display: none;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 32px 24px;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 64px;
    }

    .hero__title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}
