/* ── Global & Scrollbar ── */
* {
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0d1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10b981, #f59e0b);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #34d399, #fbbf24);
}

body {
    background-color: #0b0d1a;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, #34d399, #fbbf24, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #fbbf24, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glass Effects ── */
.glass {
    background: rgba(18, 20, 43, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.glass-light {
    background: rgba(26, 29, 46, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52, 211, 153, 0.08);
}

/* ── Card Hover ── */
.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* ── Glow Border ── */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #10b981, #f59e0b, #14b8a6);
    -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.4s ease;
}

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

/* ── Keyframes ── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Animation Classes ── */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 6s ease-in-out 2s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

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

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

/* ── Grid Background ── */
.grid-bg {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(245, 158, 11, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(20, 184, 166, 0.08), transparent);
}

/* ── Section Divider ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), rgba(245, 158, 11, 0.2), transparent);
}

/* ── Icon Gradients ── */
.icon-gradient-1 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon-gradient-2 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.icon-gradient-3 {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.icon-gradient-4 {
    background: linear-gradient(135deg, #34d399, #fbbf24);
}

.icon-gradient-5 {
    background: linear-gradient(135deg, #6ee7b7, #10b981);
}

.icon-gradient-6 {
    background: linear-gradient(135deg, #fbbf24, #14b8a6);
}

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* ── Mobile Menu ── */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
    max-height: 600px;
}

/* ── Stat Counter ── */
.stat-counter {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ── About Image Frame ── */
.about-image-frame {
    position: relative;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #10b981, #f59e0b) 1;
    border-radius: 16px;
    z-index: 0;
}

.about-image-frame::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 60px;
    height: 60px;
    border-bottom: 3px solid #f59e0b;
    border-left: 3px solid #f59e0b;
    border-radius: 0 0 0 8px;
}

@media (max-width: 768px) {
    .about-image-frame::before {
        top: -8px;
        right: -8px;
        width: calc(100% + 16px);
        height: calc(100% + 16px);
    }

    .about-image-frame::after {
        bottom: -8px;
        left: -8px;
        width: 40px;
        height: 40px;
    }
}

/* ── Hero + Navbar overlap fix ── */
#hero {
    padding-top: 6rem;
}

@media (min-width: 1024px) {
    #hero {
        padding-top: 7rem;
    }
}

#navbar {
    isolation: isolate;
}

/* ── Navbar solid state ── */
#navbar.nav-solid {
    background: rgba(6, 8, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ── Hero image mobile fix ── */
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── Active Navbar Link ── */

.nav-link {
    position: relative;
}

.nav-link.active {
    color: #10b981 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            #10b981,
            #f59e0b);
}

/* ── Active Mobile Link ── */
.mobile-link.active {
    color: #10b981 !important;
}