/* ========================================
   Green Flow Solution — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(43, 184, 150, 0.3);
    color: #f0f4f8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #243b53;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2bb896;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2bb896, #4fd3b5);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

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

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

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.animate-slide-up-delay-3 {
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.animate-bounce-slow {
    animation: bounceSlow 2.5s ease-in-out infinite;
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal.card-glow:hover {
        border-color: rgba(43, 184, 150, 0.3) !important;
        box-shadow: 0 8px 40px rgba(43, 184, 150, 0.08);
    }
}

/* Always visible for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Card Glow Effect
   ======================================== */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(43,184,150,0.15), transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(159, 179, 200, 0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

/* ========================================
   Print
   ======================================== */
@media print {
    #navbar, .animate-bounce-slow { display: none; }
    body { background: white; color: black; }
}
