/* =============================================
   HAIR BY ANDII — Custom Styles
   ============================================= */

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

#navbar.scrolled {
    background: rgba(254, 252, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.hide {
    animation: slideUp 0.3s ease forwards;
}

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

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

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

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

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

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

/* --- Hero --- */
.hero-photo-wrap {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    border-radius: 24px 0 0 0;
    overflow: hidden;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Geometric shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #D4A373;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #aad1b5;
    bottom: 10%;
    left: 20%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    background: #D4A373;
    top: 30%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    border-radius: 16px;
    opacity: 0.1;
}

.geo-rect-1 {
    width: 100px;
    height: 100px;
    background: #fff;
    top: 20%;
    left: 35%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite;
}

.geo-rect-2 {
    width: 60px;
    height: 60px;
    background: #D4A373;
    bottom: 25%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite reverse;
}

.geo-triangle {
    position: absolute;
    opacity: 0.12;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #aad1b5;
    top: 60%;
    right: 48%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}

.geo-rect-1 { --rot: 30deg; }
.geo-rect-2 { --rot: 45deg; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #aad1b5, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Tags --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(27, 67, 50, 0.08);
    color: #1B4332;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(27, 67, 50, 0.12);
}

.tag-light {
    background: rgba(254, 252, 246, 0.12);
    color: #FEFCF6;
    border-color: rgba(254, 252, 246, 0.2);
}

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

.service-card.animate-in {
    animation: cardIn 0.5s ease forwards;
}

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

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

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

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #D5E4DB;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* --- Contact Form --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 125, 79, 0.15);
}

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

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

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

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

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero-photo-wrap {
        width: 50%;
        opacity: 0.3;
    }
}

@media (max-width: 767px) {
    .hero-photo-wrap {
        display: none;
    }

    #hero {
        text-align: center;
    }
}

/* --- Selection --- */
::selection {
    background: #1B4332;
    color: #FEFCF6;
}
