/* ========== 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: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: #0f0520;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0a30;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7c3aed, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9333ea, #fbbf24);
}

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

.geo-circle-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 5%;
    left: -8%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    top: 40%;
    left: 5%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f59e0b;
    opacity: 0.12;
    animation: pulse-glow 4s ease-in-out infinite;
}

.geo-rect-1 {
    top: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: rotate(45deg);
    opacity: 0.1;
    animation: spin 20s linear infinite;
}

.geo-rect-2 {
    bottom: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    border: 2px solid #a855f7;
    transform: rotate(30deg);
    opacity: 0.15;
    animation: spin 15s linear infinite reverse;
}

.geo-triangle-1 {
    top: 60%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(245, 158, 11, 0.08);
    animation: float 6s ease-in-out infinite;
}

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

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

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

/* ========== HERO ANIMATIONS ========== */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slide-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slide-up 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-up-delay,
    .animate-slide-up-delay-2 {
        animation: none;
        opacity: 1;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 5, 32, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    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: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ========== MOBILE MENU ========== */
#mobile-menu {
    max-height: 0;
}

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

.menu-line {
    display: block;
}

#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) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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

/* ========== SERVICE CARDS ========== */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* ========== GALLERY ========== */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ========== FORM ========== */
select option {
    background: #1a0a30;
    color: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .geo-rect-1,
    .geo-rect-2 {
        display: none;
    }
    
    .geo-triangle-1 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .geo-circle-1 {
        width: 350px;
        height: 350px;
    }
}

/* ========== UTILITY ========== */
.text-gradient {
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
