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

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

body {
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(255, 255, 255, 0.0);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(123, 45, 142, 0.1);
}

.nav-text {
    color: #f9f0fb;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #2a0f31;
}

.nav-link {
    color: rgba(249, 240, 251, 0.85);
}

#navbar.scrolled .nav-link {
    color: #5c2169;
}

#navbar.scrolled .nav-link:hover {
    color: #7b2d8e;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    color: #2a0f31;
}

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

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #F5C518;
    top: 10%;
    left: -5%;
    animation: float1 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #e8beff;
    top: 60%;
    right: 5%;
    animation: float2 10s ease-in-out infinite;
}

.geo-circle-3 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffd64a;
    bottom: 15%;
    left: 15%;
    animation: float3 6s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #F5C518;
    top: 20%;
    right: 15%;
    opacity: 0.1;
    animation: rotate1 14s linear infinite;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #e8beff;
    bottom: 25%;
    left: 5%;
    opacity: 0.1;
    animation: rotate2 12s linear infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #ffd64a;
    top: 45%;
    left: 8%;
    opacity: 0.08;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 30px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

@keyframes rotate1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    will-change: transform;
}

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

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .geo-circle-1 { width: 150px; height: 150px; }
    .geo-circle-2 { width: 100px; height: 100px; }
    .geo-triangle-1 { border-left-width: 40px; border-right-width: 40px; border-bottom-width: 70px; }
    .geo-triangle-2 { border-left-width: 30px; border-right-width: 30px; border-bottom-width: 50px; }
    .geo-square-1 { width: 60px; height: 60px; }
}
