/* ============================================
   Creative Design Studio — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #064e3b;
    color: #fdfbf7;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.97);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 78, 59, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #059669);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Project Cards
   ============================================ */
.project-card {
    position: relative;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.12);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   Only activates when JS is available and user
   prefers motion. Default state is visible.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* If JS is disabled, all content is visible by default
   (no opacity:0 set in CSS — JS adds the .reveal class) */

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

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

/* ============================================
   Form focus states
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    background-color: #ffffff;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 767px) {
    #hero {
        padding-top: 80px;
    }

    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu,
    .project-card .group-hover\:opacity-100,
    button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
