*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Gold accent lines */
.gold-line {
    position: absolute;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 211, 201, 0.3), transparent);
    transform: rotate(-30deg);
    animation: float-line 6s ease-in-out infinite;
}

.gold-line:nth-child(2) { animation-delay: -2s; width: 80px; }
.gold-line:nth-child(3) { animation-delay: -4s; width: 100px; }
.gold-line:nth-child(4) { animation-delay: -1s; width: 60px; }

@keyframes float-line {
    0%, 100% { opacity: 0.3; transform: rotate(-30deg) translateX(0); }
    50% { opacity: 0.7; transform: rotate(-30deg) translateX(10px); }
}

/* Glow circles */
.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 211, 201, 0.08) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite;
}

.glow-circle:nth-child(5) { animation-delay: -3s; }

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(167, 211, 201, 0.08);
}

/* Header scroll state */
header.scrolled {
    background: rgba(10, 22, 33, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 211, 201, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%239fb3c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Smooth focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: rgba(167, 211, 201, 0.3);
    color: #f0f4f8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1621;
}
::-webkit-scrollbar-thumb {
    background: #243b53;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334e68;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a2d42 inset !important;
    -webkit-text-fill-color: #f0f4f8 !important;
}
