/* ============================================
   V10 - Alon Lev Law Firm
   Firon-inspired fullpage vertical scroll
   RTL Hebrew | Deep Navy + Orange
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
    --navy-deep: #0a1628;
    --navy: #0f1d3a;
    --navy-light: #162544;
    --navy-lighter: #1e3055;
    --orange: #e8752a;
    --orange-light: #ff8c42;
    --orange-glow: rgba(232, 117, 42, 0.15);
    --white: #ffffff;
    --white-90: rgba(255,255,255,0.9);
    --white-70: rgba(255,255,255,0.7);
    --white-50: rgba(255,255,255,0.5);
    --white-30: rgba(255,255,255,0.3);
    --white-15: rgba(255,255,255,0.15);
    --white-10: rgba(255,255,255,0.1);
    --white-05: rgba(255,255,255,0.05);
    --gray-light: #f2f2f2;
    --gray-text: #b0b8c8;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --font-main: 'Heebo', sans-serif;
    --section-padding: 80px;
    --header-height: 72px;
}

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    direction: rtl;
    background: var(--navy-deep);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-main);
    color: inherit;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px;
}

/* ---------- HEADER / NAVIGATION ---------- */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

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

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

.header-logo .logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--white-70);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--white);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s var(--transition-smooth);
}

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

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

.header-phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--orange-light);
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone svg {
    width: 16px;
    height: 16px;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1100;
}

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

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    padding: 12px 0;
}

.mobile-menu a:hover {
    color: var(--orange);
}

/* ---------- FULLPAGE SECTIONS ---------- */
.fp-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fp-section--dark {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.fp-section--darker {
    background: linear-gradient(135deg, #060e1a 0%, var(--navy-deep) 100%);
}

.fp-section--navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.fp-section--gradient {
    background: linear-gradient(135deg, var(--navy-deep) 0%, #0d1f3d 50%, var(--navy) 100%);
}

/* ---------- SECTION CONTENT (entrance animation) ---------- */
.section-content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    margin: 0 auto;
}

.fp-section.in-view .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fp-section.in-view .stagger-1 { transition-delay: 0.1s; }
.fp-section.in-view .stagger-2 { transition-delay: 0.2s; }
.fp-section.in-view .stagger-3 { transition-delay: 0.3s; }
.fp-section.in-view .stagger-4 { transition-delay: 0.4s; }
.fp-section.in-view .stagger-5 { transition-delay: 0.5s; }
.fp-section.in-view .stagger-6 { transition-delay: 0.6s; }

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.fp-section.in-view .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- NAVIGATION DOTS ---------- */
.nav-dots {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white-15);
    border: 2px solid var(--white-30);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background: var(--white-30);
    border-color: var(--white-50);
}

.nav-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--orange-glow);
}

.nav-dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover .nav-dot-label {
    opacity: 1;
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 3px;
    height: 0%;
    background: var(--orange);
    z-index: 1001;
    transition: height 0.3s ease;
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(15, 29, 58, 0.85) 50%,
        rgba(10, 22, 40, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange-light);
    border: 1px solid var(--orange);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero h1 .highlight {
    color: var(--orange);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--white-70);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.9s forwards;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232, 117, 42, 0.3);
}

.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 117, 42, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* ---------- COUNTER STRIP ---------- */
.counter-strip {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    background: var(--navy);
    border-top: 1px solid var(--white-10);
    border-bottom: 1px solid var(--white-10);
    padding: 0;
}

.counter-strip__inner {
    display: flex;
    animation: scrollStrip 25s linear infinite;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 48px;
    min-width: 200px;
    border-left: 1px solid var(--white-10);
}

.counter-number {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 900;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    direction: ltr;
}

.counter-label {
    font-size: 14px;
    color: var(--white-70);
    margin-top: 8px;
    text-align: center;
    white-space: normal;
    max-width: 160px;
}

@keyframes scrollStrip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- SECTION HEADINGS ---------- */
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--orange);
}

.section-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    color: var(--white-70);
    max-width: 700px;
    line-height: 1.8;
}

.section-subtitle.centered {
    margin: 0 auto;
    text-align: center;
}

/* ---------- PRACTICE AREA CARDS ---------- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.area-card {
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--orange);
    transition: height 0.4s var(--transition-smooth);
}

.area-card:hover {
    background: var(--white-10);
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.area-card:hover::before {
    height: 100%;
}

.area-card-icon {
    width: 56px;
    height: 56px;
    background: var(--orange-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.area-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.area-card p {
    font-size: 15px;
    color: var(--white-70);
    line-height: 1.7;
}

.area-card .area-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    transition: gap 0.3s ease;
}

.area-card:hover .area-link {
    gap: 10px;
}

/* ---------- TEAM CARDS ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.team-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.4s var(--transition-smooth);
}

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

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.5) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: background 0.3s ease;
}

.team-card:hover .team-card-overlay {
    background: linear-gradient(to top, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.3) 100%);
}

.team-card-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 14px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card-motto {
    font-size: 14px;
    color: var(--white-70);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.team-card:hover .team-card-motto {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- REVIEW CARDS ---------- */
.review-card {
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.review-card::before {
    content: '\201D';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 64px;
    color: var(--orange);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.review-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--orange);
}

.review-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--white-90);
    margin-bottom: 16px;
}

.review-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange-light);
}

/* ---------- WINS / TIMELINE ---------- */
.timeline {
    position: relative;
    padding-right: 40px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--white-15);
}

.timeline-item {
    position: relative;
    padding: 0 40px 40px 0;
}

.timeline-dot {
    position: absolute;
    right: -7px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--orange);
    border-radius: 50%;
    border: 3px solid var(--navy-deep);
    box-shadow: 0 0 0 2px var(--orange);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--white-70);
    line-height: 1.7;
}

.timeline-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-glow);
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

/* ---------- ARTICLES GRID ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.article-card {
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s var(--transition-smooth);
}

.article-card:hover {
    background: var(--white-10);
    border-color: var(--orange);
    transform: translateY(-4px);
}

.article-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-glow);
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card p {
    font-size: 14px;
    color: var(--white-70);
    line-height: 1.7;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--white-70);
}

.form-group input,
.form-group textarea {
    background: var(--white-05);
    border: 1px solid var(--white-15);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--white);
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--orange-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 15px;
    color: var(--white-70);
    direction: ltr;
    text-align: right;
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--white-10);
    margin-top: 24px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.3) brightness(0.8);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #060e1a;
    border-top: 1px solid var(--white-10);
    padding: 48px 40px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand img {
    height: 36px;
    width: auto;
}

.footer-brand p {
    font-size: 14px;
    color: var(--white-50);
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-links-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white-70);
}

.footer-links-col a {
    display: block;
    font-size: 14px;
    color: var(--white-50);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--white-10);
    text-align: center;
    font-size: 13px;
    color: var(--white-30);
}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 40px) 40px 40px;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 18px;
    color: var(--white-70);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- SUB-PAGE CONTENT ---------- */
.page-content {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- ANIMATED ELEMENTS ---------- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gradient animation for hero background */
.animated-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--navy-deep),
        var(--navy),
        #0d2247,
        var(--navy-deep));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ---------- ADVANTAGES SECTION ---------- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.advantage-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    transition: all 0.4s var(--transition-smooth);
}

.advantage-card:hover {
    background: var(--white-10);
    transform: translateY(-4px);
    border-color: var(--orange);
}

.advantage-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--orange);
    margin-bottom: 12px;
    line-height: 1;
}

.advantage-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.advantage-text {
    font-size: 15px;
    color: var(--white-70);
    line-height: 1.7;
}

/* ---------- REVIEW CAROUSEL (fullpage) ---------- */
.review-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.review-slide {
    display: none;
    text-align: center;
    padding: 40px;
}

.review-slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.review-slide .review-quote {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.8;
    color: var(--white-90);
    margin-bottom: 24px;
    font-style: italic;
}

.review-slide .review-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
}

.review-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white-15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: var(--orange);
    transform: scale(1.2);
}

/* Review grid for reviews page */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* ---------- GOOGLE RATING BADGE ---------- */
.google-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 100px;
    padding: 10px 24px;
    margin: 0 auto 32px;
    width: fit-content;
}

.google-rating .rating-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--orange);
}

.google-rating .rating-stars {
    display: flex;
    gap: 2px;
}

.google-rating .rating-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--orange);
}

.google-rating .rating-text {
    font-size: 13px;
    color: var(--white-50);
}

/* ---------- ABOUT TIMELINE ---------- */
.about-timeline {
    position: relative;
    margin-top: 60px;
    padding-right: 40px;
}

.about-timeline::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange), var(--white-15));
}

.about-timeline-item {
    position: relative;
    padding: 0 40px 48px 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s var(--transition-smooth);
}

.about-timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-timeline-dot {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--orange);
    border-radius: 50%;
    border: 3px solid var(--navy-deep);
    box-shadow: 0 0 0 2px var(--orange);
}

.about-timeline-year {
    font-size: 32px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.about-timeline-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-timeline-text {
    font-size: 15px;
    color: var(--white-70);
    line-height: 1.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-dots {
        display: none;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        --header-height: 60px;
    }

    html {
        scroll-snap-type: y proximity;
    }

    .site-header {
        padding: 0 20px;
    }

    .section-content {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .page-hero {
        padding: 120px 20px 40px;
    }

    .page-content {
        padding: 40px 20px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .counter-item {
        padding: 24px 32px;
        min-width: 160px;
    }

    .counter-number {
        font-size: 40px;
    }

    .site-footer {
        padding: 32px 20px 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- SUB-PAGE SECTIONS (non-snap) ---------- */
.page-sections {
    scroll-snap-type: none;
}

.page-sections .fp-section {
    scroll-snap-align: none;
    min-height: auto;
    padding: 80px 0;
}

/* ---------- ABOUT ADVANTAGES ON ABOUT PAGE ---------- */
.about-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .about-advantages {
        grid-template-columns: 1fr;
    }
}

/* ---------- WIN CARDS (for wins page) ---------- */
.wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.win-card {
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s var(--transition-smooth);
}

.win-card:hover {
    background: var(--white-10);
    border-color: var(--orange);
    transform: translateY(-4px);
}

.win-card .win-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
}

.win-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.win-card p {
    font-size: 14px;
    color: var(--white-70);
    line-height: 1.7;
}

/* ---------- FULLPAGE AREA DETAIL (areas page) ---------- */
.area-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.area-detail-content h2 {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    margin-bottom: 8px;
}

.area-detail-content .area-detail-sub {
    font-size: 16px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 16px;
}

.area-detail-content p {
    font-size: 15px;
    color: var(--white-70);
    line-height: 1.8;
    margin-bottom: 16px;
}

.area-detail-services {
    list-style: none;
}

.area-detail-services li {
    font-size: 15px;
    color: var(--white-90);
    padding: 8px 0;
    border-bottom: 1px solid var(--white-10);
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-detail-services li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.area-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.area-lottie {
    width: 250px;
    height: 250px;
}

@media (max-width: 768px) {
    .area-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .area-detail-visual {
        height: 200px;
    }

    .area-lottie {
        width: 180px;
        height: 180px;
    }

    .wins-grid {
        grid-template-columns: 1fr;
    }
}
