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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATED GEOMETRIC SHAPES ===== */
.geo-circle {
    animation: geoFloat 8s ease-in-out infinite;
}

.geo-square {
    animation: geoRotate 12s linear infinite;
}

.geo-triangle {
    animation: geoFloat 10s ease-in-out infinite reverse;
}

.geo-dot {
    animation: geoPulse 3s ease-in-out infinite;
}

.geo-dot:nth-child(odd) {
    animation-delay: 1.5s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes geoRotate {
    from { transform: rotate(30deg); }
    to { transform: rotate(390deg); }
}

@keyframes geoPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* ===== NAV ===== */
#nav {
    background: transparent;
}

#nav.scrolled {
    background: rgba(46, 15, 31, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ===== 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, #7A2557, #fbbf24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== MOBILE MENU ===== */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* ===== FORM INPUTS ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15) !important;
}

/* ===== SELECTION ===== */
::selection {
    background: #7A2557;
    color: #fbbf24;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}
