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

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GEOMETRIC SHAPES (HERO) ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, #C8960C 0%, transparent 70%);
    top: -80px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD940 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #C8960C;
    top: 20%;
    left: 8%;
    opacity: 0.15;
    animation: spin-slow 20s linear infinite;
    transform-origin: center;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #FFD940;
    bottom: 25%;
    right: 10%;
    opacity: 0.12;
    animation: spin-slow 15s linear infinite reverse;
    transform-origin: center;
}

.square-1 {
    width: 100px;
    height: 100px;
    border: 3px solid #C8960C;
    top: 35%;
    right: 15%;
    opacity: 0.2;
    animation: spin-slow 25s linear infinite;
    transform-origin: center;
    border-radius: 12px;
}

.ring-1 {
    width: 180px;
    height: 180px;
    border: 4px solid #FFD940;
    border-radius: 50%;
    top: 60%;
    left: 12%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #C8960C 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 15%;
    right: 25%;
    opacity: 0.2;
}

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

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

/* ===== NAVIGATION ===== */
#nav.scrolled {
    background: rgba(255, 254, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#nav.scrolled .font-display {
    color: #0A1628 !important;
}

#nav.scrolled a:not(.bg-gold-400) {
    color: #1E3A5F !important;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C8960C, #FFD940);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ===== GALLERY ===== */
.gallery-item {
    cursor: pointer;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.12);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FORM STYLES ===== */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #D0DAE8;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #0A1628;
    background: #FFFEF8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #C8960C;
    box-shadow: 0 0 0 4px rgba(200, 150, 12, 0.1);
}

.form-input::placeholder {
    color: #A8B8D0;
}

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

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .circle-1 { width: 250px; height: 250px; }
    .circle-2 { width: 160px; height: 160px; }
    .triangle-1 { border-left-width: 50px; border-right-width: 50px; border-bottom-width: 80px; }
    .triangle-2 { border-left-width: 40px; border-right-width: 40px; border-bottom-width: 60px; }
    .square-1 { width: 60px; height: 60px; }
    .ring-1 { width: 100px; height: 100px; }
}
