/* Base resets and custom utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Input placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Smooth focus outlines */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Subtle line animation on hover for service cards */
.group:hover .w-12.h-px {
    width: 3rem;
}

/* Navbar transition states */
.nav-light .nav-link {
    color: rgba(255, 255, 255, 0.7);
}
.nav-light #nav-logo-text {
    color: #ffffff;
}
.nav-dark .nav-link {
    color: #1a202c;
}
.nav-dark #nav-logo-text {
    color: #0a1628;
}
.nav-dark {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}
.nav-dark .nav-link:hover {
    color: #c9a84c;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Hamburger animation */
.hamburger-active #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
.hamburger-active #menu-line-2 {
    opacity: 0;
}
.hamburger-active #menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-bottom-color: #c9a84c !important;
}

/* Image loading placeholder */
img {
    background-color: #1a202c;
}
