/* ============================================
   Diamond Ink Tattoo Company — Custom Styles
   ============================================ */

/* 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 {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(212, 146, 26, 0.3);
    color: #f0f3f9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1823;
}
::-webkit-scrollbar-thumb {
    background: #1a2b46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #273e69;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-subtitle {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Floating diamonds in hero */
.hero-diamond {
    animation: float 8s ease-in-out infinite;
}

.hero-diamond:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-diamond:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
}

.hero-diamond:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 9s;
}

.hero-diamond:nth-child(5) {
    animation-delay: -3s;
    animation-duration: 11s;
}

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Gallery Items
   ============================================ */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}

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

/* ============================================
   Scroll Reveal (below fold only)
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(7, 14, 21, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   Reduced Motion
   ============================================ */
@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;
    }
    
    .hero-diamond {
        animation: none;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title::after {
        content: ' ';
    }
}

@media (min-width: 768px) {
    .hero-title br {
        display: block;
    }
}
