/* Design System for Back in Action Chiropractic */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');


:root {
    /* Colors */
    --bg-dark: #050505;
    --surface-card: #0A0A0A;
    --surface-lighter: #0F0F0F;
    --accent-gold: #F5C041;
    --accent-gold-hover: #e0ac3a;
    --accent-teal: #00B3A4;
    --text-heading: #F5F7FA;
    --text-body: #D0D4E0;
    --error-red: #FF5C5C;
    --navy-veteran: #0D1B2A;
    
    /* Typography */
    --font-heading: 'Satoshi', 'General Sans', sans-serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --header-height: 100px;
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
}

h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.2; }
h3, h4 { font-size: 24px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }

p, li, .footer-text, .contact-info {
    font-size: 16px;
    line-height: 1.7;
}

.footer-link, .footer-links a { 
    font-size: 14px; 
    font-weight: 500; 
}

.small-label, .badge { 
    font-size: 12px; 
    font-weight: 600; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    transition: var(--transition);
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.section {
    padding: var(--section-padding);
}

.text-gold { color: var(--accent-gold); }
.text-teal { color: var(--accent-teal); }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 192, 65, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: #000;
}

/* Header & Nav */
.top-bar {
    background: var(--surface-card);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left, .top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-top {
    display: flex;
    gap: 15px;
    margin-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 15px;
}

.social-top a {
    color: var(--text-body);
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-top a:hover {
    color: var(--accent-gold);
}

.award-mini {
    height: 24px;
    object-fit: contain;
}

.main-header {
    background: rgba(10, 11, 15, 0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Wider for more space */
    margin: 0 auto;
    padding: 0 40px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent-gold);
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 30px; /* Reduced gap to prevent overlapping */
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    color: var(--text-body);
    letter-spacing: 0;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--text-heading);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-phone {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-gold);
}

.contact-phone i {
    margin-right: 8px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-card);
    min-width: 220px;
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent-gold);
}

/* Footer */
footer {
    background: #050608;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-seo {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
}

.demo-note {
    opacity: 0.7;
    font-style: italic;
}

.contact-wa {
    color: var(--accent-gold);
    text-decoration: underline;
    font-weight: 600;
}

/* Page Components */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(245, 192, 65, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(0, 179, 164, 0.05), transparent);
}

.card {
    background: var(--surface-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 192, 65, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Veteran Panel */
.veteran-panel {
    background-color: var(--navy-veteran);
    color: #fff;
    padding: 60px 0;
}

.branch-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.branch-logo-wrapper {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.branch-logo-wrapper:hover {
    transform: translateY(-8px) scale(1.1);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(245, 192, 65, 0.2);
}

.branch-logo {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}


/* Sticky Elements */
.sticky-reviews {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    background: var(--surface-lighter);
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    font-weight: 600;
}

.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: #000;
    font-size: 1.5rem;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(21, 24, 36, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-gold);
    color: #000;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

/* Success Story Cards */
.success-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.success-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--accent-gold);
}

.success-card:hover img {
    transform: scale(1.1);
}

.success-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(10, 11, 15, 0.8));
}
/* ==========================================================================
   Beyond the Cards: New Design Components
   ========================================================================== */

/* 1. Feature Canvas (Asymmetric Grid) */
.feature-canvas {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
}

.feature-tile {
    background: var(--surface-card);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
}

.feature-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    filter: grayscale(100%) brightness(0.5);
}

.feature-tile:hover::before {
    opacity: 0.5;
    filter: grayscale(0%) brightness(0.8);
    transform: scale(1.1);
}

.feature-tile i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.feature-tile:hover i {
    transform: translateY(-10px);
}

.feature-tile h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.feature-tile p {
    position: relative;
    z-index: 2;
    opacity: 1;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
    -webkit-font-smoothing: antialiased;
}


.feature-tile:nth-child(1) { grid-column: span 8; border-radius: 40px 0 0 0;}
.feature-tile:nth-child(2) { grid-column: span 4; border-radius: 0 40px 0 0; border-left: 2px solid var(--accent-gold); }
.feature-tile:nth-child(3) { grid-column: span 4; border-bottom: 2px solid var(--accent-teal); }
.feature-tile:nth-child(4) { grid-column: span 4; background: var(--surface-lighter); }
.feature-tile:nth-child(5) { grid-column: span 4; border-radius: 0 0 40px 0; }
.feature-tile:nth-child(6) { grid-column: span 12; border-radius: 0 0 0 40px; }

.feature-tile:nth-child(1)::before { background-image: url('../assets/chiropractic-proof.png'); }
.feature-tile:nth-child(2)::before { background-image: url('../assets/office-interior.png'); }
.feature-tile:nth-child(3)::before { background-image: url('../assets/us-army-v2.png'); }
.feature-tile:nth-child(4)::before { background-image: url('../assets/laser-therapy-proof.png'); }
.feature-tile:nth-child(5)::before { background-image: url('../assets/nutrition-proof.png'); }
.feature-tile:nth-child(6)::before { background-image: url('../assets/auto-accident-proof.png'); }

.feature-tile:hover {
    background: var(--surface-lighter);
    border-color: rgba(245, 192, 65, 0.4);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

@media (max-width: 992px) {
    .feature-tile:nth-child(n) { grid-column: span 12 !important; border-radius: 12px !important; min-height: 200px; }
}

/* 2. Services Revamp (Cinematic List) */
.services-revamp {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.revamp-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s ease;
    filter: brightness(0.4) saturate(0.8);
    transform: scale(1.15);
}

.bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-dark) 90%);
    z-index: 2;
}

.services-list {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.service-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 850px;
    padding: 35px 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 192, 65, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.service-name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: block;
    margin: 0 auto;
}

.service-name::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-gold);
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s ease;
}

.service-item:hover .service-name {
    color: #fff;
    transform: scale(1.05);
}

.service-item:hover .service-name::before {
    clip-path: inset(0 0 0 0);
}

.service-desc {
    font-size: 1.1rem;
    color: var(--text-body);
    opacity: 0.8;
    margin-top: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


@media (max-width: 992px) {
    .service-name { font-size: 2.5rem; }
}

/* 2.1 Service Showcase (For Services Page) */
.service-showcase-section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 80vh;
}

.service-showcase-section:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-visual {
    flex: 1.2;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-showcase-section:hover .showcase-visual img {
    transform: scale(1.05);
}

.showcase-info {
    flex: 1;
}

.showcase-num {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    line-height: 0.8;
    margin-bottom: -20px;
    display: block;
}

.showcase-info h2 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.showcase-info p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--text-body);
}

.showcase-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--accent-teal);
}

@media (max-width: 992px) {
    .service-showcase-section { flex-direction: column !important; gap: 40px; padding: 60px 0; }
    .showcase-visual { height: 350px; width: 100%; }
    .showcase-info h2 { font-size: 2.22rem; }
}

/* 3. Split Reveal Duo */
.split-reveal {
    display: flex;
    min-height: 400px;
    background: var(--surface-card);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.split-panel {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.split-panel:first-child {
    background: linear-gradient(rgba(0, 179, 164, 0.1), transparent);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.split-panel:hover {
    background: rgba(245, 192, 65, 0.05);
}

.split-panel-cta {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--accent-teal);
    transition: var(--transition);
}

.split-panel:hover .split-panel-cta {
    gap: 20px;
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3, h4 { font-size: 20px; }
    body { font-size: 15px; }
    .split-reveal { flex-direction: column; }
}

/* 4. Testimonial Spotlight */
.spotlight-carousel {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 40px 0;
}

.quote-mark {
    font-size: 8rem;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 179, 164, 0.1);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.spotlight-item {
    padding: 20px;
}

.spotlight-text {
    font-size: 1.8rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-style: italic;
    margin-bottom: 40px;
    line-height: 1.4;
}

.spotlight-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-info h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    .spotlight-text { font-size: 1.3rem; }
}

/* 5. Action Slots */
.action-slots {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.action-slot {
    flex: 1;
    background: var(--surface-card);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-slot i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.action-slot h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.action-slot p {
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.action-slot:hover {
    transform: translateY(-10px);
    background: var(--surface-lighter);
    border-color: var(--accent-gold);
}

.action-slot.featured {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(rgba(245, 192, 65, 0.05), transparent);
}

@media (max-width: 992px) {
    .action-slots { flex-direction: column; }
}

/* Reveal Animation System */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="down"] { transform: translateY(-50px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(0.95); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger System for grids/lists */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal-stagger].revealed > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0.1s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.2s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.3s; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.4s; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.5s; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.6s; }

/* Image Masks/Reveals */
.image-mask {
    position: relative;
    overflow: hidden;
}

.image-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transform: translateX(-100%);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.image-mask.revealed::after {
    transform: translateX(101%);
}

.image-mask img {
    opacity: 0;
    transition: opacity 0s 0.5s;
}

.image-mask.revealed img {
    opacity: 1;
}

/* AI Chat Assistant Styles */
.ai-chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 10001; /* Ensure chat box is above everything */
}

#askMeBtn i {
    font-size: 1.4rem;
}

#askMeBtn {
    animation: pulseSide 2s infinite;
}

@keyframes pulseSide {
    0% { box-shadow: 0 0 0 0 rgba(245, 192, 65, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 192, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 192, 65, 0); }
}

#askMeBtn:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 15px 40px rgba(245, 192, 65, 0.6);
}

.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ask-me-btn i {
    font-size: 1.4rem;
}

.chat-box {
    width: 350px;
    height: 500px;
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(to right, var(--surface-lighter), var(--surface-card));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent-gold);
}

.close-chat {
    background: transparent;
    color: var(--text-body);
    font-size: 1.2rem;
    padding: 5px;
}

.close-chat:hover {
    color: var(--error-red);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: radial-gradient(circle at center, rgba(245, 192, 65, 0.02), transparent);
}

.msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg.bot {
    align-self: flex-start;
    background: var(--surface-lighter);
    color: var(--text-body);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

.msg.user {
    align-self: flex-end;
    background: var(--accent-teal);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: var(--surface-lighter);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-footer input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
}

.chat-footer button {
    background: var(--accent-gold);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .chat-box {
        width: calc(100vw - 40px);
        height: 400px;
    }
}
