/* ===== Custom Properties ===== */
:root {
    --burgundy: #722F37;
    --burgundy-light: #8B3A42;
    --blush: #F4C2C2;
    --blush-light: #FADADD;
    --gold: #C9A84C;
    --gold-light: #D4AF61;
    --dark: #0a0a0c;
    --card: #141418;
    --border: #1e1e24;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(114, 47, 55, 0.5);
    color: #fff;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.1); }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
}

/* ===== Hero ===== */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(114, 47, 55, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(244, 194, 194, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(114, 47, 55, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0c 0%, #120e10 50%, #0a0a0c 100%);
}

.hero-orb-1 { animation: float 8s ease-in-out infinite; }
.hero-orb-2 { animation: float-delayed 10s ease-in-out infinite; }
.hero-orb-3 { animation: pulse-slow 12s ease-in-out infinite; }

/* Hero content animations */
#hero .hero-eyebrow {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#hero .hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

#hero .hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

#hero .hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

#hero .scroll-indicator {
    animation: fadeIn 1s ease-out 1.4s both;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(244, 194, 194, 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(244, 194, 194, 0.5);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Section Components ===== */
.section-tag {
    letter-spacing: 0.2em;
}

.section-title {
    line-height: 1.1;
}

.section-desc {
    line-height: 1.7;
}

/* ===== Service Cards ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    border-color: rgba(114, 47, 55, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(114, 47, 55, 0.1);
}

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

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--blush) !important;
}

.service-icon {
    transition: all 0.4s ease;
}

.service-link {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-link:hover {
    opacity: 1;
}

/* ===== About Section ===== */
.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.4) 0%, transparent 40%);
    z-index: 1;
}

.about-stats-card {
    z-index: 2;
}

/* ===== Why Cards ===== */
.why-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.why-card:hover {
    border-color: rgba(114, 47, 55, 0.2);
    background: rgba(114, 47, 55, 0.05);
}

/* ===== Contact ===== */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-icon {
    transition: all 0.3s ease;
}

/* ===== Form ===== */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: rgba(114, 47, 55, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Mobile Menu Button ===== */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Button Ripple Effect ===== */
.submit-btn:active {
    transform: scale(0.98);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
    }
    
    .about-accent-1,
    .about-accent-2 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
