/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Colors */
    --primary: #8B0000;
    --primary-dark: #6B0000;
    --primary-light: #A52A2A;
    --accent: #DC143C;
    --dark: #1a0000;
    --darker: #0d0000;
    --text-light: #f5f5f5;
    --text-gray: #d1d1d1;
    --text-dark: #1a1a1a;
    --bg-dark: #1a0000;
    --bg-darker: #0d0000;
    --bg-section: #0f0000;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(13, 0, 0, 0.98);
    box-shadow: 0 4px 30px rgba(139, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
}

.mobile-nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--accent);
    padding-left: 10px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 0, 0, 0.03) 2px, rgba(139, 0, 0, 0.03) 4px);
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-title-line {
    display: block;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-decoration {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(139, 0, 0, 0.2);
    border-radius: 50%;
    opacity: 0;
    animation: scaleIn 1s ease-out 0.8s forwards;
}

.hero-decoration::before,
.hero-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(139, 0, 0, 0.15);
}

.hero-decoration::before {
    width: 300px;
    height: 300px;
}

.hero-decoration::after {
    width: 200px;
    height: 200px;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border: 2px solid var(--primary);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

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

.btn-primary:hover::before {
    left: 0;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-section);
}

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

.about-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.lead {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 16px;
}

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

.value-card {
    background: var(--bg-darker);
    padding: 30px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

.value-card:nth-child(1) { animation-delay: 0.5s; }
.value-card:nth-child(2) { animation-delay: 0.6s; }
.value-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.value-card:hover {
    border-left-color: var(--accent);
    background: var(--bg-dark);
    transform: translateX(10px);
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: var(--bg-darker);
}

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

.service-card {
    background: var(--bg-section);
    padding: 40px;
    border: 1px solid rgba(139, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
    border-color: var(--primary);
    background: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-section);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.contact-intro {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-darker);
    border: 1px solid rgba(139, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 15px;
    line-height: 1.6;
}

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

.contact-form-wrapper {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-darker);
    border: 1px solid rgba(139, 0, 0, 0.2);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-dark);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(209, 209, 209, 0.5);
}

.contact-form .btn-primary {
    opacity: 1;
    width: fit-content;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .lead {
        font-size: 18px;
    }
}
