/* ===================================
   Style & Ink Emporium — Custom Styles
   Premium Dark Luxury Theme
   =================================== */

:root {
    --color-bg: #0A0610;
    --color-bg-elevated: #120A1F;
    --color-primary: #D4AF37;
    --color-primary-light: #E8C547;
    --color-accent: #7B2D8E;
    --color-accent-light: #9B4DCA;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: #fff;
    overflow-x: hidden;
}

/* Typography */
.font-playfair {
    font-family: var(--font-serif);
}

.font-inter {
    font-family: var(--font-sans);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* ===================================
   Navbar
   =================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 6, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1);
}

/* ===================================
   Hero
   =================================== */
.hero-badge {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image-container {
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    opacity: 1;
}

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

/* ===================================
   Reveal Animations
   =================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Testimonial Cards
   =================================== */
.testimonial-card {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .testimonial-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===================================
   Mobile Menu
   =================================== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s 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.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu Toggle Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 1.4rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Form Styles
   =================================== */
select option {
    background: #120A1F;
    color: #fff;
}

/* ===================================
   Focus Visible
   =================================== */
:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    #hero h1 span {
        display: inline;
    }
    
    .hero-image-container {
        max-width: 100%;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2rem;
    }
}
