/* Local Fonts */
@font-face {
    font-family: 'Shamel';
    src: url('../fonts/Arabic/FFShamelSansOne-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

@font-face {
    font-family: 'Shamel';
    src: url('../fonts/Arabic/FFShamelSansOne-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

@font-face {
    font-family: 'OkineSans';
    src: url('../fonts/Sec Headline/MADE Okine Sans PERSONAL USE/MADEOkineSansPERSONALUSE-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

@font-face {
    font-family: 'OkineSans';
    src: url('../fonts/Sec Headline/MADE Okine Sans PERSONAL USE/MADEOkineSansPERSONALUSE-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

@font-face {
    font-family: 'Fraktion';
    src: url('../fonts/Sup & Numbering/Sans/PPFraktionSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

:root {
    /* Color Palette */
    --dark-green: #022C1E;
    --original-green: #1C6B4B;
    --white-green: #E2F7E7;
    --text-color: #022C1E;
    --light-text: #1C6B4B;
    --glass-bg: rgba(226, 247, 231, 0.7);
    --glass-border: rgba(28, 107, 75, 0.2);

    /* Typography */
    --font-primary: 'OkineSans', sans-serif;
    --font-arabic: 'Shamel', sans-serif;
    --font-accent: 'Fraktion', sans-serif;

    /* Spacing */
    --section-padding: 100px 5%;
    --transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    background-color: var(--white-green);
    color: var(--text-color);
    font-family: var(--font-arabic);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    /* Arabic support */
}

h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-arabic);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    border-radius: 12px;
}

/* Specific aspect ratios for known image types */
img[src*="hero"] {
    aspect-ratio: 16 / 9;
}

/* Biophilic is square 855x855 */
img[src*="biophilic"] {
    aspect-ratio: 1 / 1;
}

/* Other service images */
img[src*="landscape"],
img[src*="water"],
img[src*="paludarium"],
img[src*="indoor"],
img[src*="maintenance"] {
    aspect-ratio: 855 / 1024;
}

img[src*="project"] {
    aspect-ratio: 4 / 3;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #022C1E 0%, #011811 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
    pointer-events: none;
    /* Let clicks pass through if needed, though hidden soon */
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.juthor-svg-loader {
    filter: drop-shadow(0 0 20px rgba(28, 107, 75, 0.3));
}

.logo-stem-loop {
    opacity: 0;
    animation: loaderStemSequence 2s ease-in-out infinite;
}

.logo-main-loop {
    opacity: 0;
    transform-origin: center;
    animation: loaderMainSequence 2s ease-in-out infinite;
}

@keyframes loaderStemSequence {

    0%,
    5% {
        opacity: 0;
        transform: translateY(10px);
    }

    20%,
    80% {
        opacity: 1;
        transform: translateY(0);
    }

    95%,
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes loaderMainSequence {

    0%,
    25% {
        opacity: 0;
        transform: scale(0.8);
    }

    40%,
    65% {
        opacity: 1;
        transform: scale(1);
    }

    80%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.loader-line {
    width: 150px;
    height: 2px;
    background: rgba(226, 247, 231, 0.1);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--original-green);
    animation: lineLoading 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes lineLoading {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Section Header */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--original-green);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--original-green);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--original-green);
    color: white !important;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 44, 30, 0.2);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    overflow-x: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    /* Default color for hero section */
    display: flex;
    align-items: center;
}

nav.scrolled .logo a {
    color: var(--original-green);
}

.juthor-svg-logo {
    transition: var(--transition);
}

/* Logo Parts Animation */
.logo-stem {
    opacity: 0;
    transform: translateY(20px);
    animation: stemEntry 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.logo-main {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transform-origin: center;
    animation: mainEntry 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes stemEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mainEntry {
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Hover Effect */
.logo:hover .logo-main {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-family: var(--font-arabic);
}

/* Initial State (Hero) */
nav.nav-light .nav-links a {
    color: white;
}

nav.nav-light .nav-links a:hover {
    color: var(--white-green);
}

/* Scrolled State */
nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 0;
    box-shadow: 0 4px 30px rgba(2, 44, 30, 0.08);
}

nav.scrolled .nav-links a {
    color: var(--original-green);
}

nav.scrolled .nav-links a:hover {
    color: var(--dark-green);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* More stable on mobile */
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    aspect-ratio: 16 / 9;
    /* Prevents CLS */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(2, 44, 30, 0.8) 0%,
            rgba(2, 44, 30, 0.4) 50%,
            rgba(2, 44, 30, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    min-height: 400px;
    /* Prevent layout shift */
    contain: layout;
    /* Isolate layout calculations */
}

.hero-tagline {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--white-green);
    opacity: 0.8;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-content .highlight {
    color: var(--white-green);
    position: relative;
    display: inline-block;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--original-green);
    opacity: 0.3;
    z-index: -1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: rgba(226, 247, 231, 0.9);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--white-green);
    color: var(--dark-green) !important;
    font-weight: 700;
}

.btn-primary:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(226, 247, 231, 0.5);
    color: white !important;
}

.btn-outline:hover {
    background: rgba(226, 247, 231, 0.1);
    border-color: white;
}

/* Floating Shapes */
.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: var(--original-green);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 2;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s !important;
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 10%;
    background: var(--white-green);
    animation-delay: -10s !important;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(30deg);
    }
}

/* Falling Leaves */
.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -20px;
    background: var(--original-green);
    border-radius: 0 100% 0 100%;
    opacity: 0.6;
    pointer-events: none;
    animation: fall linear forwards;
    will-change: transform;
}

@keyframes fall {
    0% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(110vh);
    }
}

@keyframes sway {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
    }

    100% {
        transform: translateX(50px) rotate(90deg) scale(1.2);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(226, 247, 231, 0.6);
    font-size: 0.9rem;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(226, 247, 231, 0.4);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white-green);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 0;
        top: 25px;
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 8px;
    }
}

/* Initial Entry Sequence (Once on Load) */
#navbar.reveal-down {
    transition-delay: 0.1s;
}

/* Snappier sequential delays */
.hero .hero-tagline {
    transition-delay: 0.4s;
}

.hero h1 {
    transition-delay: 0.6s;
}

.hero p {
    transition-delay: 0.8s;
}

.hero .hero-btns {
    transition-delay: 1.0s;
}

.hero .scroll-indicator .reveal-up {
    transition-delay: 1.3s;
}

#navbar.reveal-down {
    transition-delay: 0.2s;
}

/* About Section Redesign */
.about {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, var(--white-green), #ffffff);
    position: relative;
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.sub-title {
    display: inline-block;
    color: var(--original-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 5px 15px;
    background: rgba(28, 107, 75, 0.1);
    border-radius: 50px;
}

.main-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 30px;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 30px;
    border-right: 4px solid var(--original-green);
    padding-right: 20px;
}

.philosophy-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
    border: 1px solid rgba(28, 107, 75, 0.1);
    position: relative;
}

.philosophy-card h3 {
    color: var(--original-green);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-green);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.feature-tag:hover {
    transform: translateY(-5px);
    background: var(--original-green);
}

/* Image Stack & Visuals */
.about-visuals {
    position: relative;
}

.image-stack {
    position: relative;
    z-index: 2;
}

.main-img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: visible;
}

.main-about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(28, 107, 75, 0.15);
    aspect-ratio: 855 / 1024;
    /* Actual image dimensions */
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--original-green);
    color: white;
    padding: 25px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(28, 107, 75, 0.3);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-accent);
}

.experience-badge .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.decorative-blob {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: var(--white-green);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    opacity: 0.5;
    animation: blobMorph 10s linear infinite;
}

@keyframes blobMorph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .about-features {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-tag {
        justify-content: center;
        width: 100%;
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
        padding: 15px;
    }
}

/* Services Section Redesign */
.services {
    padding: var(--section-padding);
    background: #ffffff;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(2, 44, 30, 0.05);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 855 / 1024;
    /* Actual image dimensions */
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(2, 44, 30, 0.1) 0%,
            rgba(2, 44, 30, 0.6) 40%,
            rgba(2, 44, 30, 0.95) 100%);
    transition: opacity 0.5s ease;
    z-index: 1;
}

.service-card:hover .service-overlay {
    opacity: 0.35;
}

.service-card:hover .service-bg {
    transform: scale(1.1);
}

.service-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 35px;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-icon {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 2.8rem;
    color: var(--white-green);
    margin: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 45px;
    height: 45px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1) rotate(-5deg);
}

.service-number {
    position: absolute;
    top: 35px;
    left: 35px;
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-accent);
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-align: right;
}

.service-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .service-card {
        height: 400px;
    }

    .service-info {
        padding: 25px;
    }

    .service-icon {
        top: 25px;
        right: 25px;
        font-size: 2.2rem;
    }

    .service-number {
        top: 25px;
        left: 25px;
        font-size: 2.6rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.5s ease;
    aspect-ratio: 4 / 3;
    /* Prevents CLS */
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(2, 44, 30, 0.9));
    color: white;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-info {
    bottom: 0;
}

/* Process Section - Path of Growth */
.process {
    padding: var(--section-padding);
    background: var(--dark-green);
    position: relative;
    overflow: hidden;
}



.process-timeline {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
    padding-right: 40px;
    /* Space for the line */
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 2px;
    height: 100%;
    background: rgba(226, 247, 231, 0.1);
}

.process-timeline::after {
    content: '';
    position: absolute;
    top: -100%;
    right: 20px;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--white-green), transparent);
    animation: timelineFlow 5s infinite linear;
    filter: drop-shadow(0 0 10px var(--white-green));
}

@keyframes timelineFlow {
    0% {
        top: -100px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.process-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-icon {
    width: 60px;
    height: 60px;
    background: var(--original-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(28, 107, 75, 0.4);
    transition: all 0.4s ease;
    animation: iconFloat 4s infinite ease-in-out;
}

.process-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.process-item:hover .process-icon {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 0 30px var(--white-green);
    background: var(--white-green);
    color: var(--dark-green);
    animation-play-state: paused;
}



.step-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: white;
    color: var(--original-green);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-text h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: var(--font-arabic);
}

.process-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: #ffffff;
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.category {
    padding: 10px 25px;
    background: var(--white-green);
    color: var(--original-green);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category.active,
.category:hover {
    background: var(--original-green);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 300px;
    /* Reduced for horizontal look */
    background: var(--dark-green);
    box-shadow: 0 20px 50px rgba(2, 44, 30, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 70px rgba(2, 44, 30, 0.2);
}

.project-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(2, 44, 30, 0.9) 0%, rgba(2, 44, 30, 0) 100%);
    z-index: 2;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 8px 18px;
    background: var(--white-green);
    color: var(--dark-green);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
}

.project-content {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 30px;
    /* Reduced from 40px */
    text-align: right;
    z-index: 3;
    color: white;
}

.project-content h3 {
    font-size: 1.5rem;
    /* Slightly smaller for balance */
    color: white;
    margin-bottom: 6px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.project-content p {
    font-size: 1rem;
    /* Slightly smaller for balance */
    color: rgba(226, 247, 231, 0.8);
    transform: translateY(10px);
    line-height: 1.4;
    transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-content h3,
.project-card:hover .project-content p {
    transform: translateY(0);
}

/* Stats Grid - Coherent with Contact Cards */
.stats-grid {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Stats Grid - Minimalist Look (No Cards) */
.stats-grid {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: none;
    border: none;
    transition: all 0.4s ease;
    min-width: 200px;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--original-green);
    border-radius: 50%;
    /* Circle looks better for minimal items */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(28, 107, 75, 0.08);
    /* Minimal shadow on icon only */
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    background: var(--original-green);
    color: white;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-green);
    font-family: var(--font-accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}



/* Contact Section - Hub Design */
.contact {
    padding: var(--section-padding);
    background: #fdfdfd;
}

/* Contact Section - Minimalist Look (No Cards) */
.contact-hub {
    display: flex;
    flex-direction: row;
    /* Horizontal by default for cleaner look */
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.contact-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Shadow on icon only */
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.whatsapp .contact-icon {
    background: #E8F5E9;
    color: #25D366;
}

.phone .contact-icon {
    background: #E3F2FD;
    color: #2196F3;
}

.instagram .contact-icon {
    background: #FCE4EC;
    color: #E1306C;
}

.email .contact-icon {
    background: #FFEBEE;
    color: #D32F2F;
}

.contact-card-info h3 {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 5px;
}

.contact-card-info p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.contact-arrow {
    margin-right: auto;
    font-size: 1.2rem;
    color: #ccc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-card:hover .contact-arrow {
    transform: translateX(-10px);
    color: var(--original-green);
}

/* Desktop Fixes for Process & Contact */
@media (min-width: 992px) {
    .process-timeline {
        padding-right: 0;
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    .process-timeline::before {
        top: 30px;
        right: 0;
        width: 100%;
        height: 2px;
        background: rgba(226, 247, 231, 0.1);
    }

    .process-timeline::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -100px;
        width: 100px;
        height: 2px;
        background: linear-gradient(to left, transparent, var(--white-green), transparent);
        animation: timelineFlowHorizontal 5s infinite linear;
        filter: drop-shadow(0 0 10px var(--white-green));
    }

    @keyframes timelineFlowHorizontal {
        0% {
            right: -100px;
            opacity: 0;
        }

        20% {
            opacity: 1;
        }

        80% {
            opacity: 1;
        }

        100% {
            right: 100%;
            opacity: 0;
        }
    }

    .process-item {
        flex: 1;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
    }

    .process-icon {
        margin-bottom: 30px;
    }

    .contact-hub {
        flex-direction: row;
        max-width: 1100px;
    }

    .contact-card {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .contact-icon {
        margin-left: 0;
        margin-bottom: 20px;
        width: 80px;
        height: 80px;
        font-size: 2rem;
        padding: 14px;
    }

    .contact-arrow {
        display: none;
        /* Hero card feel on desktop */
    }
}

footer {
    padding: 15px 5%;
    text-align: center;
    background: var(--original-green);
    color: white;
}

/* Mobile Menu Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    padding: 10px;
    background: none;
    border: none;
    outline: none;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

nav.scrolled .menu-toggle .bar {
    background-color: var(--original-green);
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px 5%;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-top {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        transition: max-height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.3s ease;
        opacity: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: static;
        height: auto;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 30px 0 20px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Typography */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
        /* Image first on mobile */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }



    /* Disable parallax on mobile to prevent layout issues */
    .hero {
        background-attachment: scroll;
        height: auto;
        min-height: 100svh;
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.22rem;
    }

    .btn {
        width: 100%;
        padding: 15px;
    }

    .contact-form {
        padding: 25px 20px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Advanced Reveal Animations --- */
[class*="reveal-"] {
    opacity: 1;
    /* LCP Safe: content is technically visible immediately */
    transform: translate3d(0, 0, 0);
    filter: blur(8px);
    transition: var(--transition);
    will-change: transform, filter;
}

.reveal-up {
    transform: translate3d(0, 40px, 0);
}

.reveal-down {
    transform: translate3d(0, -40px, 0);
}

.reveal-left {
    transform: translate3d(-40px, 0, 0);
}

.reveal-right {
    transform: translate3d(40px, 0, 0);
}

.reveal-scale {
    transform: scale3d(0.95, 0.95, 1);
}

.reveal-active {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) !important;
    filter: blur(0) !important;
}

/* Stagger Children */
.stagger-container .reveal-up,
.stagger-container .reveal-left,
.stagger-container .reveal-right {
    transition-delay: calc(var(--stagger-index, 0) * 0.15s);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.about-image img {
    animation: float 6s ease-in-out infinite;
    box-shadow: 20px 20px 60px rgba(28, 107, 75, 0.15);
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-hub {
        gap: 30px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .contact-card-info p,
    .contact-arrow {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 15px 20px;
        gap: 12px;
        min-width: 0;
        flex: 1;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* About Section Mobile Fixes */
    .philosophy-card {
        padding: 20px;
    }

    .philosophy-card h3 {
        font-size: 1.1rem;
    }

    .philosophy-card p {
        font-size: 0.9rem;
    }

    .about-features {
        gap: 8px;
    }

    .feature-tag {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .experience-badge {
        padding: 15px;
        bottom: -20px;
        right: -10px;
    }

    /* Contact Hub Mobile - Stacked Layout */
    .contact-hub {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        width: auto;
        flex: none;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        margin-left: 0;
        padding: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .contact-card-info h3 {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .contact-card-info p,
    .contact-arrow {
        display: none !important;
    }
}

/* Hide Scrollbar */
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}