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

:root {
    --charcoal-900: #1A1D23;
    --charcoal-800: #2C3038;
    --charcoal-700: #3D4250;
    --coral-500: #FF6B4A;
    --coral-400: #FF8566;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--charcoal-900);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVBAR ===== */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 29, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .max-w-7xl {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--coral-400) !important;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 29, 35, 0.85) 0%,
        rgba(26, 29, 35, 0.7) 40%,
        rgba(26, 29, 35, 0.5) 100%
    );
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shapes {
    z-index: 0;
}

.geo-shape-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: var(--coral-500);
    opacity: 0.08;
    border-radius: 20px;
    transform: rotate(45deg);
}

.geo-shape-2 {
    position: absolute;
    top: 40%;
    left: 3%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--coral-500);
    opacity: 0.15;
    border-radius: 16px;
    transform: rotate(30deg);
}

.geo-shape-3 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--coral-500);
    opacity: 0.06;
    border-radius: 50%;
}

.geo-shape-4 {
    position: absolute;
    top: 60%;
    left: 8%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--coral-400);
    opacity: 0.08;
    border-radius: 50%;
}

/* ===== STAT ITEMS ===== */
.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral-500), var(--coral-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: var(--coral-500);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== BUTTONS ===== */
button, [type="submit"] {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--coral-500);
    color: white;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .geo-shape-1,
    .geo-shape-2,
    .geo-shape-3,
    .geo-shape-4 {
        display: none;
    }
}
