/* ===== Reset & Base ===== */
*, *::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: 'Inter', sans-serif;
    background-color: #300416;
    color: #fce7f3;
    overflow-x: hidden;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(189, 39, 119, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    background: rgba(251, 191, 36, 0.04);
    border: 2px solid rgba(251, 191, 36, 0.08);
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(219, 39, 119, 0.06);
    top: 60%;
    left: 8%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 12px 12px;
    bottom: 20%;
    right: 15%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ===== Clip Diagonal ===== */
.clip-diagonal {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ===== Header / Navigation ===== */
.nav-header {
    background: rgba(48, 4, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    transition: background 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(48, 4, 22, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(48, 4, 22, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    display: block;
}

.menu-line {
    display: block;
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 5px;
    margin-left: 0;
}

/* ===== Buttons ===== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    background: #fbbf24;
    color: #300416;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn-cta:hover {
    background: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fce7f3;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 9999px;
    padding: 0.65rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.btn-cta-dark {
    display: inline-flex;
    align-items: center;
    background: #300416;
    color: #fbbf24;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(48, 4, 22, 0.4);
}

.btn-cta-dark:hover {
    background: #500724;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(48, 4, 22, 0.5);
}

/* ===== Hero ===== */
.hero-scram {
    background: linear-gradient(
        135deg,
        rgba(48, 4, 22, 0.92) 0%,
        rgba(80, 7, 36, 0.85) 40%,
        rgba(148, 24, 77, 0.75) 100%
    );
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: pulse-down 2s ease-in-out infinite;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
}

@keyframes pulse-down {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Service Cards ===== */
.service-card {
    perspective: 1000px;
}

.card-inner {
    transform-style: preserve-3d;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover .card-inner {
    transform: translateY(-6px);
}

/* ===== Why Cards ===== */
.why-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* Fallback: ensure content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Map Hover ===== */
iframe.grayscale {
    filter: grayscale(0.5);
    transition: filter 0.5s ease;
}

iframe.grayscale:hover {
    filter: grayscale(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-rect-1 {
        width: 100px;
        height: 100px;
    }
    
    .geo-triangle {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid rgba(219, 39, 119, 0.06);
    }
}
