/* Custom styles for Diamonds & Razorblades */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #fff;
}

/* Base body */
body {
    background-color: #030714;
    color: #ffffff;
}

/* Thin horizontal divider between sections */
section + section::before {
    content: '';
    display: block;
    max-width: 6rem;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(20, 184, 166, 0.2), transparent);
}

/* Subtle gradient overlay for text readability */
.hero-gradient {
    background: linear-gradient(180deg, rgba(3, 7, 20, 0.4) 0%, rgba(3, 7, 20, 0.8) 100%);
}

/* Service card line animation on hover */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #14b8a6;
    transition: width 0.4s ease, left 0.4s ease;
}

.service-card:hover::after {
    width: 80%;
    left: 10%;
}

.service-card {
    position: relative;
}

/* Navbar scroll state is handled by JS */
#navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(6, 13, 31, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu button animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Form select arrow */
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'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2314b8a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
