/* ==========================================================================
   HAARPOR Barber - Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --bg: #050608;
    --bg-alt: #101118;
    --card: #171822;
    --accent: #cba15a;
    --accent-soft: rgba(203, 161, 90, 0.18);
    --text: #f5f5f7;
    --muted: #a2a4b3;
    --border-soft: rgba(255, 255, 255, 0.06);
    --danger: #e45757;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #141525 0, var(--bg) 55%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(5,6,8,0.94), rgba(5,6,8,0.72));
    border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: "Playfair Display", serif;
    letter-spacing: 1px;
    font-size: 15px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.logo-text span:last-child {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
    width: 18px;
}

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-right: 8px;
}

.lang-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1b1308;
}

.nav-phone {
    font-size: 13px;
    color: var(--muted);
}

.nav-phone strong {
    color: var(--text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    transition: filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #f1cf82);
    color: #1b1308;
    box-shadow: 0 12px 24px rgba(0,0,0,0.45);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-outline {
    border-color: var(--border-soft);
    color: var(--muted);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 70px 20px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 44px;
    align-items: center;
}

.hero-left,
.hero-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-left.visible,
.hero-right.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-right.visible {
    transition-delay: 0.2s;
}

.hero-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent-soft);
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4.1vw, 46px);
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--muted);
    font-size: 14px;
    max-width: 420px;
    margin-bottom: 24px;
}

.hero-usp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-usp-pill {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(11,11,16,0.6);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.hero-note {
    font-size: 12px;
    color: var(--muted);
}

.hero-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.hero-detail-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-right {
    position: relative;
}

/* --------------------------------------------------------------------------
   Hero Card
   -------------------------------------------------------------------------- */
.hero-card {
    border-radius: 22px;
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at top left, #262436 0, #090a0f 42%, #050608 90%);
    padding: 20px 20px 18px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.65);
}

.hero-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hero-card-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-card-title {
    font-size: 22px;
    font-weight: 600;
}

.hero-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    background: linear-gradient(145deg, #34313f, #14131d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.hero-avatar-text {
    font-size: 11px;
    color: var(--muted);
}

.hero-avatar-text strong {
    display: block;
    color: var(--text);
    font-size: 12px;
}

.hero-tag {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.hero-card-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.hero-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    min-height: 220px;
    aspect-ratio: 4 / 3;
    background: #0b0c12;
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

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

.hero-times {
    border-radius: 16px;
    background: rgba(5,6,8,0.9);
    border: 1px solid var(--border-soft);
    padding: 12px 12px 10px;
    font-size: 12px;
}

.hero-times h3 {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}

.hero-times-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.hero-times-row span:first-child {
    color: var(--muted);
}

.hero-times-row span:last-child {
    font-weight: 500;
}

.hero-times-note {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
}

.hero-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-soft);
    padding-top: 10px;
    font-size: 11px;
    color: var(--muted);
}

.hero-stars {
    display: flex;
    gap: 2px;
    font-size: 13px;
}

.hero-badge-soft {
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(24, 182, 124, 0.1);
    color: #54d19b;
    border: 1px solid rgba(84,209,155,0.4);
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Generic Sections
   -------------------------------------------------------------------------- */
.section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.section-title {
    font-size: 26px;
    font-family: "Playfair Display", serif;
}

.section-subtitle {
    font-size: 13px;
    color: var(--muted);
    max-width: 380px;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.service-card {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at top, #181825 0, #080910 52%);
    padding: 18px 16px 16px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}

.service-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.service-price {
    font-weight: 600;
}

.service-time {
    color: var(--muted);
    font-size: 11px;
}

.service-note {
    font-size: 11px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.price-table {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(5,6,8,0.9);
    overflow: hidden;
}

.price-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.6fr;
    padding: 11px 16px;
    font-size: 13px;
    align-items: center;
}

.price-row:nth-child(odd) {
    background: rgba(13,14,19,0.9);
}

.price-row.header {
    background: rgba(15,16,24,1);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.price-name {
    font-weight: 500;
}

.pricing-side {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    padding: 16px 16px 14px;
    background: radial-gradient(circle at 0 0, #242030 0, #080910 55%);
    font-size: 13px;
}

.pricing-side h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.pricing-side ul {
    list-style: none;
    margin-left: 0;
}

.pricing-side li {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--muted);
}

.pricing-side li::before {
    content: "•";
    color: var(--accent);
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    min-height: 180px;
    aspect-ratio: 4 / 3;
    background: #0b0c12;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
    pointer-events: none;
}

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

.gallery-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    font-size: 11px;
    color: var(--muted);
    z-index: 1;
}

.gallery-label span {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.team-card {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(8,9,14,0.96);
    padding: 16px 14px 14px;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: radial-gradient(circle at 0 0, #242030 0, #111118 60%);
    border: 1px solid var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-weight: 500;
    font-size: 14px;
}

.team-role {
    font-size: 11px;
    color: var(--muted);
}

.team-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.team-badge {
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid var(--border-soft);
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.testimonial-card {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(7,8,13,0.95);
    padding: 16px 14px 14px;
    font-size: 13px;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 6px;
}

.testimonial-text {
    color: var(--muted);
    margin-bottom: 10px;
}

.testimonial-name {
    font-size: 12px;
    font-weight: 500;
}

.testimonial-meta {
    font-size: 11px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   CTA Strip
   -------------------------------------------------------------------------- */
.cta-strip {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 70px;
}

.cta-inner {
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at right, #2a2534 0, #070810 55%);
    padding: 18px 18px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cta-text-main {
    font-size: 16px;
    font-family: "Playfair Display", serif;
}

.cta-text-sub {
    font-size: 12px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.contact-card,
.contact-form-card {
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(7,8,13,0.96);
    padding: 16px 16px 14px;
    font-size: 13px;
}

.contact-card h3,
.contact-form-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.contact-list {
    list-style: none;
    margin-top: 4px;
}

.contact-list li {
    margin-bottom: 6px;
    color: var(--muted);
}

.contact-list strong {
    color: var(--text);
}

.map-container {
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    min-height: 180px;
}

.map-container iframe {
    width: 100%;
    height: 180px;
    display: block;
}

/* Contact Options (Call/WhatsApp Buttons) */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.btn-large {
    padding: 16px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    font-size: 20px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-soft);
}

.walkin-info {
    text-align: center;
    padding: 16px;
    background: var(--accent-soft);
    border-radius: 12px;
    margin-top: 8px;
}

.walkin-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.walkin-info p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-top: 8px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field-full {
    grid-column: 1 / -1;
}

label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

input,
select,
textarea {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #050608;
    padding: 8px 11px;
    font-size: 13px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    border-radius: 14px;
    min-height: 70px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(203,161,90,0.3);
}

.form-helper {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 14px 20px 20px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    background: #050608;
}

/* --------------------------------------------------------------------------
   Mobile Menu Toggle
   -------------------------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 50;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav Overlay */
.nav-links.mobile-open {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
}

/* --------------------------------------------------------------------------
   Floating CTA Button
   -------------------------------------------------------------------------- */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #f1cf82);
    color: #1b1308;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(203, 161, 90, 0.4), 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.floating-cta:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(203, 161, 90, 0.5), 0 6px 12px rgba(0,0,0,0.4);
}

.floating-cta:active {
    transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Scroll Progress Indicator
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f1cf82);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(203, 161, 90, 0.6);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card,
.testimonial-card,
.team-card,
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible,
.testimonial-card.visible,
.team-card.visible,
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }
.service-card:nth-child(7) { transition-delay: 0.35s; }
.service-card:nth-child(8) { transition-delay: 0.4s; }
.service-card:nth-child(9) { transition-delay: 0.45s; }

.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }

/* --------------------------------------------------------------------------
   Enhanced Accessibility - Focus States
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-fade-in,
    .service-card,
    .testimonial-card,
    .team-card,
    .gallery-item {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Skeleton Loading for Images
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hero-photo.loading,
.gallery-item.loading,
.team-avatar.loading {
    position: relative;
    overflow: hidden;
}

.hero-photo.loading::before,
.gallery-item.loading::before,
.team-avatar.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Micro-Animations
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.service-card,
.team-card,
.testimonial-card {
    transition: all 0.3s ease;
}

.service-card:hover,
.team-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.5);
    border-color: var(--accent-soft);
}

.hero-card {
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 60px rgba(0,0,0,0.75);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 40px;
    }

    .hero-right {
        order: -1;
    }

    .pricing-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .nav-inner {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 6, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        font-size: 20px;
        z-index: 45;
        display: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links a {
        padding: 12px 24px;
        width: 80%;
        text-align: center;
        border-radius: 12px;
        border: 1px solid var(--border-soft);
        background: rgba(255, 255, 255, 0.02);
    }

    .nav-links a:hover {
        background: var(--accent-soft);
        border-color: var(--accent);
    }

    .nav-cta {
        order: 3;
        margin-left: auto;
    }

    .nav-phone {
        display: none;
    }

    .nav-cta .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 620px) {
    .hero-card-body {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}
