/* ========================================
   Cut N Dye - Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(61, 12, 21, 0.95);
    backdrop-blur-md;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #fbbf24;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(61, 12, 21, 0.92) 0%,
        rgba(61, 12, 21, 0.78) 50%,
        rgba(61, 12, 21, 0.65) 100%
    );
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

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

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

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

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

.hero-cta {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 1s both;
}

/* CTA Buttons */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    position: relative;
}

.section-label {
    letter-spacing: 0.1em;
}

.section-title {
    line-height: 1.2;
}

.section-subtitle {
    line-height: 1.7;
}

/* ========================================
   Services
   ======================================== */
.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card-title {
    line-height: 1.3;
}

.service-card-desc {
    line-height: 1.7;
}

/* ========================================
   About
   ======================================== */
.about-images {
    position: relative;
}

.about-img-secondary {
    border: 4px solid white;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
    display: grid;
    gap: 1rem;
}

.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 12, 21, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* ========================================
   Testimonials
   ======================================== */
.testimonials-grid {
    display: grid;
    gap: 2rem;
}

.testimonial-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

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

.testimonial-text {
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
    display: grid;
    gap: 4rem;
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-submit {
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

.form-success {
    animation: fadeIn 0.5s ease;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a62640, #f59e0b, #a62640);
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-heading {
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f59e0b;
}

.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .about-img-secondary {
        display: none;
    }
    
    .about-badge {
        display: none !important;
    }
    
    .contact-grid {
        gap: 3rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   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;
    }
}
