/* ========================================
   Legend's Barber Shop — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* --- Section Padding --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* --- Fixed Navigation --- */
.nav-fixed {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-fixed.scrolled .nav-link {
    color: #292524;
}

.nav-fixed.scrolled .font-display {
    color: #292524;
}

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

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid #C05A3A;
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 20%;
    left: 3%;
    width: 200px;
    height: 200px;
    background: #D4AF52;
    border-radius: 50%;
}

.geo-square-1 {
    top: 40%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: #C05A3A;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    bottom: 30%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #D4AF52;
    opacity: 0.06;
}

.geo-circle-3 {
    top: 60%;
    right: 25%;
    width: 60px;
    height: 60px;
    background: #C05A3A;
    border-radius: 50%;
}

/* --- 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, #C05A3A, #D4AF52);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* --- Gallery Items --- */
.gallery-item {
    position: relative;
}

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

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

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

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #C05A3A;
    padding-left: 0.5rem;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Success Message --- */
.success-message {
    animation: fadeIn 0.4s ease;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF5EC;
}

::-webkit-scrollbar-thumb {
    background: #C05A3A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A04A30;
}

/* --- Selection --- */
::selection {
    background: #C05A3A;
    color: white;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C05A3A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Mobile Responsive --- */
@media (max-width: 767px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .geo-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}
