/* 
  All styles are now handled by Tailwind CSS (config in index.html). 
  This file is kept for advanced custom CSS that cannot be handled by Tailwind utilities. 
*/
html {
    scroll-behavior: smooth;
}

:root {
    --scroll-p: 0;
}

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(6, 78, 59, 0.08), transparent 35%),
        #f9fafb;
    position: relative;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -15% -10%;
    pointer-events: none;
    z-index: -1;
}

/* Stripe-inspired climate gradient bands */
body::before {
    background:
        linear-gradient(115deg,
            rgba(16, 185, 129, 0.42) 0%,
            rgba(5, 150, 105, 0.22) 22%,
            rgba(16, 185, 129, 0.12) 42%,
            rgba(4, 120, 87, 0.3) 64%,
            rgba(6, 78, 59, 0.36) 100%);
    transform: translate3d(0, calc((var(--scroll-p) - 0.5) * 90px), 0) skewY(-9deg);
    filter: blur(1px);
    opacity: 1;
}

body::after {
    background:
        radial-gradient(55% 45% at 15% 8%, rgba(110, 231, 183, 0.28), transparent 62%),
        radial-gradient(45% 42% at 85% 14%, rgba(16, 185, 129, 0.28), transparent 68%),
        radial-gradient(40% 45% at 60% 75%, rgba(6, 95, 70, 0.24), transparent 70%);
    transform: translate3d(0, calc((var(--scroll-p) - 0.5) * -60px), 0);
    opacity: 0.9;
}

.section-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-shell.bg-white,
.section-shell.bg-secondary {
    background-color: transparent !important;
}

.section-liquid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(130deg, rgba(236, 253, 245, 0.7), rgba(167, 243, 208, 0.6), rgba(110, 231, 183, 0.46)),
        linear-gradient(110deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.18), rgba(6, 95, 70, 0.14));
    backdrop-filter: blur(1.5px);
    z-index: -2;
}

.section-liquid-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(120deg,
            rgba(5, 150, 105, 0.16) 0px,
            rgba(5, 150, 105, 0.16) 1px,
            transparent 1px,
            transparent 64px);
    background-position: calc(var(--scroll-p) * 220px) 0;
    opacity: 0.38;
    z-index: -1;
}

.section-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 78, 59, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 78, 59, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    z-index: 0;
}

.section-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(35px);
    opacity: 0.45;
    animation: floatOrb 14s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.orb-hero-1 {
    width: 280px;
    height: 280px;
    top: -60px;
    left: -70px;
    background: rgba(16, 185, 129, 0.35);
}

.orb-hero-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -50px;
    background: rgba(6, 78, 59, 0.28);
    animation-delay: 2s;
}

.orb-about-1,
.orb-services-1,
.orb-projects-1 {
    width: 230px;
    height: 230px;
    top: 20px;
    left: -70px;
    background: rgba(16, 185, 129, 0.25);
}

.orb-about-2,
.orb-services-2,
.orb-projects-2 {
    width: 260px;
    height: 260px;
    bottom: -60px;
    right: -80px;
    background: rgba(6, 78, 59, 0.24);
    animation-delay: 3s;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

#contact {
    background:
        linear-gradient(145deg, rgba(6, 78, 59, 0.95), rgba(5, 150, 105, 0.88)) !important;
}

.shader-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.shader-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.2), rgba(255, 255, 255, 0), rgba(6, 78, 59, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.shader-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    box-shadow: 0 30px 55px -28px rgba(6, 78, 59, 0.65);
}

.hero-main-title {
    line-height: 1.7;
}

[dir="rtl"] .hero-main-title {
    line-height: 1.85;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.07);
    }
}