/* ==========================================
   CSS Variables & Global Settings
   ========================================== */

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

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

:root {
    --primary: #1a5632;
    --primary-dark: #0f3d22;
    --primary-light: #2d7a4a;
    --primary-50: #e8f5ee;
    --primary-100: #c6e6d1;
    --accent: #c8a951;
    --accent-dark: #a88b3a;
    --accent-light: #e0c878;
    --secondary: #1e3a5f;
    --secondary-light: #2c5282;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --font-secondary: 'Tajawal', 'Cairo', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--gray-50);
    color: var(--gray-800);
    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-base);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 86, 50, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 50, 0.4);
}

.btn--outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ==========================================
   Section Header
   ========================================== */
.section { padding: 6rem 0; }

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__tag {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-100);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section__title span { color: var(--primary); }

.section__line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: var(--z-fixed);
}

.nav__logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(26, 86, 50, 0.3);
}

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

.nav__logo-title {
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1.2;
    transition: color var(--transition-base);
}

.nav__logo-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color var(--transition-base);
}

.header.scrolled .nav__logo-title { color: var(--gray-900); }
.header.scrolled .nav__logo-subtitle { color: var(--gray-500); }

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.header.scrolled .nav__link { color: var(--gray-600); }

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.nav__toggle,
.nav__close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: var(--z-fixed);
}

.header.scrolled .nav__toggle,
.header.scrolled .nav__close { color: var(--gray-800); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2e18 0%, #1a5632 30%, #1e3a5f 70%, #0f2840 100%);
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(200, 169, 81, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 122, 74, 0.15) 0%, transparent 50%);
    animation: heroOverlayShift 10s ease infinite alternate;
}

@keyframes heroOverlayShift {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Animated Gradient Orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: orbFloat1 12s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 122, 74, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    animation: orbFloat2 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, 60px) scale(1.1); }
    50% { transform: translate(-40px, 120px) scale(0.9); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.15); }
    50% { transform: translate(40px, -100px) scale(0.85); }
    75% { transform: translate(-60px, -30px) scale(1.1); }
}

/* Floating Geometric Shapes */
.hero__shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border: 1px solid rgba(200, 169, 81, 0.15);
    opacity: 0.4;
}

.hero__shape--1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation: shapeFloat1 20s linear infinite;
    transform: rotate(45deg);
}

.hero__shape--2 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 15%;
    animation: shapeFloat2 25s linear infinite;
    border-radius: 50%;
}

.hero__shape--3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 20%;
    animation: shapeFloat3 18s linear infinite;
    transform: rotate(30deg);
}

.hero__shape--4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation: shapeFloat4 22s linear infinite;
    border-radius: 30%;
}

.hero__shape--5 {
    width: 40px;
    height: 40px;
    top: 50%;
    left: 5%;
    animation: shapeFloat5 15s linear infinite;
    transform: rotate(60deg);
}

.hero__shape--6 {
    width: 70px;
    height: 70px;
    top: 20%;
    right: 8%;
    animation: shapeFloat6 28s linear infinite;
    border-radius: 50%;
    border-style: dashed;
}

@keyframes shapeFloat1 {
    0% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
    50% { transform: rotate(225deg) translateY(-30px); opacity: 0.6; }
    100% { transform: rotate(405deg) translateY(0); opacity: 0.3; }
}

@keyframes shapeFloat2 {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-40px) scale(1.1); opacity: 0.5; }
    100% { transform: translateY(0) scale(1); opacity: 0.2; }
}

@keyframes shapeFloat3 {
    0% { transform: rotate(30deg) translate(0, 0); opacity: 0.4; }
    33% { transform: rotate(150deg) translate(20px, -20px); opacity: 0.6; }
    66% { transform: rotate(270deg) translate(-10px, 10px); opacity: 0.3; }
    100% { transform: rotate(390deg) translate(0, 0); opacity: 0.4; }
}

@keyframes shapeFloat4 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

@keyframes shapeFloat5 {
    0% { transform: rotate(60deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(240deg) translateY(-50px); opacity: 0.2; }
    100% { transform: rotate(420deg) translateY(0); opacity: 0.5; }
}

@keyframes shapeFloat6 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.15; }
}

/* Animated Grid Pattern */
.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 169, 81, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 169, 81, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(0deg); }
    100% { transform: perspective(500px) rotateX(2deg); }
}

/* Animated Light Rays */
.hero__rays {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    transform: translateX(-50%);
    background: conic-gradient(
        from 0deg at 50% 0%,
        transparent 0deg,
        rgba(200, 169, 81, 0.03) 10deg,
        transparent 20deg,
        transparent 40deg,
        rgba(200, 169, 81, 0.02) 50deg,
        transparent 60deg,
        transparent 80deg,
        rgba(200, 169, 81, 0.03) 90deg,
        transparent 100deg,
        transparent 120deg,
        rgba(200, 169, 81, 0.02) 130deg,
        transparent 140deg,
        transparent 160deg,
        rgba(200, 169, 81, 0.03) 170deg,
        transparent 180deg
    );
    animation: raysRotate 30s linear infinite;
    pointer-events: none;
}

@keyframes raysRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Glowing Dots */
.hero__glow-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__glow-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(200, 169, 81, 0.3);
}

.hero__glow-dot:nth-child(1) { top: 20%; left: 15%; animation: dotPulse1 3s ease infinite; }
.hero__glow-dot:nth-child(2) { top: 40%; right: 20%; animation: dotPulse2 4s ease infinite 0.5s; }
.hero__glow-dot:nth-child(3) { bottom: 30%; left: 25%; animation: dotPulse1 3.5s ease infinite 1s; }
.hero__glow-dot:nth-child(4) { top: 60%; right: 10%; animation: dotPulse2 2.5s ease infinite 1.5s; }
.hero__glow-dot:nth-child(5) { top: 80%; left: 40%; animation: dotPulse1 4s ease infinite 0.8s; }
.hero__glow-dot:nth-child(6) { top: 10%; right: 30%; animation: dotPulse2 3s ease infinite 1.2s; }

@keyframes dotPulse1 {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes dotPulse2 {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(2); }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 0;
    max-width: 900px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(200, 169, 81, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.3);
    color: var(--accent-light);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

.hero__title {
    font-size: 3.75rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__highlight {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
    min-height: 4.5rem;
}

.hero__subtitle .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-light);
    margin-right: 4px;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__stat { text-align: center; }

.hero__stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero__stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 0.8s ease 1s both;
}

.hero__scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color var(--transition-base);
}

.hero__scroll-btn:hover { color: #fff; }

.hero__scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.hero__scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about { background: #fff; }

.about__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about__description {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.about__feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about__feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    border: 1px solid var(--primary-100);
}

.about__feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.about__feature p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* About Card */
.about__card { perspective: 1000px; }

.about__card-inner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.about__card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.15) 0%, transparent 60%);
}

.about__card-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about__card-front h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.about__card-front p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.about__card-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about__detail i {
    font-size: 1.1rem;
    color: var(--accent-light);
}

.about__detail span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.about__detail strong {
    font-size: 0.95rem;
    font-weight: 700;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatGlow 8s ease-in-out infinite;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.services .section__header {
    position: relative;
    z-index: 1;
}

.services .section__tag {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.services .section__title {
    overflow: hidden;
}

.services .section__title span {
    display: inline-block;
    animation: revealWord 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes revealWord {
    0% { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}

.services .section__line {
    animation: expandLine 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

@keyframes expandLine {
    0% { width: 0; opacity: 0; }
    100% { width: 80px; opacity: 1; }
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.services__grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
}

.service__card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--gray-200);
    cursor: default;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: var(--radius-xl);
}

.service__card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(26, 86, 50, 0.15),
        0 0 0 1px var(--primary-100);
    border-color: transparent;
}

.service__card:hover::before {
    opacity: 1;
}

.service__card:hover::after {
    opacity: 1;
}

.service__card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.service__card-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service__card:hover .service__card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(26, 86, 50, 0.3);
}

.service__card:hover .service__card-icon::before {
    opacity: 0.2;
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0.1; }
}

.service__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.service__card:hover .service__card-title {
    color: var(--primary);
}

.service__card-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service__card-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.service__card:hover .service__card-number {
    color: var(--primary-50);
    transform: scale(1.1);
    text-shadow: 0 0 40px rgba(26, 86, 50, 0.1);
}

.service__card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.service__card:hover .service__card-glow {
    opacity: 0.08;
}

/* ==========================================
   BRANCHES SECTION
   ========================================== */
.branches { background: #fff; }

.branches__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.branch__card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    min-height: 420px;
    transition: all var(--transition-base);
}

.branch__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.branch__card-bg {
    position: absolute;
    inset: 0;
}

.branch__card--primary .branch__card-bg {
    background: linear-gradient(135deg, #1a5632 0%, #0f3d22 100%);
}

.branch__card--secondary .branch__card-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2840 100%);
}

.branch__card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
    background-size: 30px 30px;
}

.branch__card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch__card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(200, 169, 81, 0.2);
    border: 1px solid rgba(200, 169, 81, 0.3);
    color: var(--accent-light);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.branch__card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.branch__card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.branch__card-desc {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.branch__card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.branch__info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.branch__info-item i {
    color: var(--accent-light);
    width: 18px;
    text-align: center;
}

/* ==========================================
   LICENSING SECTION
   ========================================== */
.licensing { background: var(--gray-50); }

.licensing__card {
    background: linear-gradient(135deg, #fff 0%, var(--primary-50) 100%);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-2xl);
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.licensing__content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 300px;
}

.licensing__icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(26, 86, 50, 0.25);
}

.licensing__text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.licensing__text p {
    color: var(--gray-600);
    line-height: 1.8;
}

.licensing__badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.licensing__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-100);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.licensing__badge i { color: var(--accent); }

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact { background: #fff; }

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact__info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact__info > p {
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact__items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact__item-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact__item span {
    font-size: 0.85rem;
    color: var(--gray-400);
    display: block;
}

.contact__item strong {
    font-size: 0.95rem;
    color: var(--gray-800);
}

.contact__social {
    display: flex;
    gap: 0.5rem;
}

.contact__social-link {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.contact__social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Contact Form */
.contact__form-wrapper {
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form__group { position: relative; }

.form__group--full { grid-column: 1 / -1; }

.form__group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-800);
    transition: all var(--transition-base);
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
    padding-left: 1rem;
    padding-right: 2.75rem;
}

.form__group i:not(.fa-comment) {
    position: absolute;
    right: 1rem;
    top: 2.6rem;
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.form__group input:focus + i,
.form__group select:focus + i { color: var(--primary); }

.form__group .btn--primary {
    padding: 1rem;
    font-size: 1.05rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--gray-900);
    color: #fff;
    padding-top: 0;
    position: relative;
}

.footer__wave {
    color: var(--gray-900);
    margin-top: -1px;
}

.footer__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer .container {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer__logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.footer__logo-title {
    font-weight: 800;
    font-size: 1.1rem;
    display: block;
    line-height: 1.2;
}

.footer__logo-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.footer__brand-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer__links h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    display: inline-block;
}

.footer__links a:hover {
    color: var(--accent-light);
    transform: translateX(-4px);
}

.footer__newsletter h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__newsletter > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer__newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.9rem;
}

.footer__newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }

.footer__newsletter-form button {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__newsletter-form button:hover { background: var(--primary-light); }

.footer__social {
    display: flex;
    gap: 0.5rem;
}

.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.footer__social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__ministry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__ministry i { color: var(--accent); }

.footer__copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   SCROLL TOP
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    text-align: center;
}

.preloader__logo-img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin: 0 auto 2rem;
    animation: preloaderPulse 1.5s ease infinite;
    filter: drop-shadow(0 0 30px rgba(200, 169, 81, 0.4));
}

.preloader__text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.preloader__text-accent {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 4px;
    font-size: 1rem;
}

.preloader__bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader__progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    animation: preloaderProgress 2s ease forwards;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(200, 169, 81, 0.3)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(200, 169, 81, 0.5)); }
}

@keyframes preloaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(200, 169, 81, 0.5);
}

/* ==========================================
   TEXT TYPING EFFECT
   ========================================== */
.typing-text {
    display: inline-block;
    border-left: 3px solid var(--accent);
    padding-left: 4px;
    animation: blink 0.8s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ==========================================
   GRADIENT BORDER ANIMATION
   ========================================== */
.gradient-border {
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary-light), var(--accent-light));
    background-size: 300% 300%;
    animation: gradientBorder 4s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

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

/* ==========================================
   FLOATING ANIMATION
   ========================================== */
@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

/* ==========================================
   GLOW PULSE
   ========================================== */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(26, 86, 50, 0.2); }
    50% { box-shadow: 0 0 40px rgba(26, 86, 50, 0.4), 0 0 60px rgba(200, 169, 81, 0.2); }
}

.glow-pulse {
    animation: glowPulse 3s ease infinite;
}

/* ==========================================
   SCALE IN REVEAL
   ========================================== */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   SLIDE REVEALS
   ========================================== */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   ROTATE REVEAL
   ========================================== */
.reveal-rotate {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-rotate.revealed {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ==========================================
   STAGGER CHILDREN
   ========================================== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ==========================================
   MAGNETIC BUTTON EFFECT
   ========================================== */
.magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================
   TILT CARD EFFECT
   ========================================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
}

/* ==========================================
   TEXT SHIMMER
   ========================================== */
.text-shimmer {
    background: linear-gradient(
        120deg,
        var(--primary) 0%,
        var(--accent) 25%,
        var(--primary-light) 50%,
        var(--accent) 75%,
        var(--primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    to { background-position: 200% center; }
}

/* ==========================================
   HERO BACKGROUND ANIMATION
   ========================================== */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(200, 169, 81, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(45, 122, 74, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================
   SECTION DIVIDER ANIMATION
   ========================================== */
.section__line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: var(--radius-full);
    animation: lineGrow 1s ease forwards;
    transform-origin: center;
}

@keyframes lineGrow {
    from { width: 0; }
    to { width: 80px; }
}

/* ==========================================
   PARALLAX WRAPPER
   ========================================== */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ==========================================
   RIPPLE EFFECT
   ========================================== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ==========================================
   MARQUEE
   ========================================== */
.marquee-section {
    overflow: hidden;
    background: var(--primary-dark);
    padding: 1rem 0;
    position: relative;
}

.marquee__inner {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 20s linear infinite;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.marquee__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.marquee__dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================
   CURSOR GLOW (desktop)
   ========================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 86, 50, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .hero__title { font-size: 2.75rem; }
    .about__content { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .branches__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 4rem 0; }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: var(--shadow-2xl);
        padding: 5rem 1.5rem 1.5rem;
        transition: right var(--transition-slow);
        z-index: var(--z-fixed);
    }

    .nav__menu.active { right: 0; }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav__link {
        color: var(--gray-700);
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }

    .nav__link:hover,
    .nav__link.active {
        background: var(--primary-50);
        color: var(--primary);
    }

    .nav__toggle,
    .nav__close { display: block; }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        color: var(--gray-800);
    }

    .hero__title { font-size: 2.25rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__stats { gap: 1.5rem; }
    .hero__stat-number { font-size: 2rem; }
    .section__title { font-size: 2rem; }
    .services__grid { grid-template-columns: 1fr; }

    .licensing__card {
        padding: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact__form { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero__title { font-size: 1.75rem; }
    .hero__cta { flex-direction: column; align-items: center; }
    .hero__stats { flex-direction: column; gap: 1.5rem; }
    .hero__stat-divider { width: 40px; height: 1px; }
    .btn { padding: 0.75rem 1.5rem; }
    .preloader__text { font-size: 1rem; letter-spacing: 4px; }
    .preloader__logo-img { width: 200px; height: 200px; }
    .tilt-card:hover { transform: none; }
    .cursor-glow { display: none; }
    .hero__shapes { display: none; }
    .hero__glow-dots { display: none; }
    .hero__grid-pattern { display: none; }
    .hero__rays { display: none; }
    .hero::before, .hero::after { display: none; }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@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;
    }

    .reveal, .reveal-scale, .reveal-left, .reveal-right, .reveal-rotate {
        opacity: 1;
        transform: none;
    }

    .stagger-children > * {
        opacity: 1;
        transform: none;
    }

    .marquee__inner { animation: none; }
    .hero__particles { display: none; }
    .cursor-glow { display: none; }
    .tilt-card:hover { transform: none; }
}

/* ==========================================
   SMOOTH SCROLL
   ========================================== */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   ENHANCED BUTTON EFFECTS
   ========================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(26, 86, 50, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 86, 50, 0.4);
}

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

.btn--outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================
   CARD HOVER EFFECTS
   ========================================== */
.about__card-inner {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about__card:hover .about__card-inner {
    transform: translateY(-10px);
}

.branch__card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch__card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ==========================================
   TEXT REVEAL ANIMATIONS
   ========================================== */
.text-reveal {
    display: inline-block;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

/* ==========================================
   GLOW EFFECTS
   ========================================== */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(20px);
}

.glow:hover::after {
    opacity: 0.2;
}

/* ==========================================
   PARALLAX SECTIONS
   ========================================== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateZ(-2px) scale(1.5);
}

/* ==========================================
   IMAGE HOVER EFFECTS
   ========================================== */
.img-hover {
    overflow: hidden;
}

.img-hover img {
    transition: transform 0.5s ease;
}

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

/* ==========================================
   FORM FOCUS EFFECTS
   ========================================== */
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
    outline: none;
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ==========================================
   LOADING ANIMATION
   ========================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================
   WAVE ANIMATION
   ========================================== */
@keyframes wave {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

.wave-animation {
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

/* ==========================================
   BOUNCE ANIMATION
   ========================================== */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-20px); }
    70% { transform: translateY(-10px); }
    90% { transform: translateY(-4px); }
}

.bounce {
    animation: bounce 1s ease infinite;
}

/* ==========================================
   SHAKE ANIMATION
   ========================================== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake:hover {
    animation: shake 0.5s ease;
}

/* ==========================================
   ZOOM IN ANIMATION
   ========================================== */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.6s ease forwards;
}

/* ==========================================
   SLIDE IN ANIMATIONS
   ========================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.slide-in-left { animation: slideInLeft 0.6s ease forwards; }
.slide-in-right { animation: slideInRight 0.6s ease forwards; }
.slide-in-up { animation: slideInUp 0.6s ease forwards; }
.slide-in-down { animation: slideInDown 0.6s ease forwards; }

/* ==========================================
   FLIP ANIMATION
   ========================================== */
@keyframes flip {
    from {
        transform: perspective(400px) rotateY(0);
    }
    to {
        transform: perspective(400px) rotateY(360deg);
    }
}

.flip {
    animation: flip 0.8s ease forwards;
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
