/* ============================================
   The Christopher Goy Team — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation
   ============================================ */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1f1f2b;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b3f;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #3d3d4f;
}

#navbar.scrolled .nav-link:hover {
    color: #ff6b3f;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #ff6b3f 0%, #f04c1c 100%);
    color: white;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8f6b 0%, #ff6b3f 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(255, 107, 63, 0.4);
}

/* Secondary Button */
.btn-secondary {
    transition: all 0.3s ease;
}

/* White Button (CTA section) */
.btn-white {
    background: white;
    color: #ff6b3f;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-white:hover {
    background: #fff5f2;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(255, 255, 255, 0.4);
}

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

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease 1.2s forwards;
    opacity: 0;
}

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

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

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    padding-left: 8px;
    border-bottom-color: #ffece5;
}

/* ============================================
   Back to Top Button
   ============================================ */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    transform: translateY(16px);
}

#back-to-top:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px -8px rgba(255, 107, 63, 0.5);
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 63, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b9bab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title br {
        display: none;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #ffd5c8;
    color: #872410;
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* ============================================
   Smooth Image Loading
   ============================================ */
img {
    image-rendering: auto;
    loading: lazy;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #back-to-top,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
