/* Base & Utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a12;
}
::-webkit-scrollbar-thumb {
    background: #4a1a35;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b2550;
}

/* Hero Gradient */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74, 26, 53, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(45, 16, 32, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(107, 37, 80, 0.6) 0%, transparent 60%),
        linear-gradient(180deg, #1a0a12 0%, #2d1020 40%, #1a0a12 100%);
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(176, 58, 130, 0.03) 0%, transparent 50%);
}

.hero-glow-2 {
    animation: float-glow 8s ease-in-out infinite;
}

@keyframes float-glow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

/* Scroll Indicator */
.scroll-indicator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: -100%;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #fbbf24);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* About Pattern */
.about-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(176, 58, 130, 0.05) 0%, transparent 50%);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0), transparent);
    transition: all 0.5s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar-scrolled {
    background: rgba(26, 10, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 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 focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3) !important;
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Select dropdown */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: 
            radial-gradient(ellipse 100% 80% at 50% 30%, rgba(74, 26, 53, 0.9) 0%, transparent 70%),
            linear-gradient(180deg, #1a0a12 0%, #2d1020 50%, #1a0a12 100%);
    }
}
