/* === CUSTOM STYLES === */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #047857;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === GEOMETRIC SHAPES === */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #34d399;
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #6ee7b7;
    bottom: 10%;
    left: 5%;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    background: #a7f3d0;
    top: 30%;
    left: 15%;
}

.geo-rect {
    position: absolute;
    opacity: 0.12;
    transform: rotate(45deg);
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: #fde68a;
    top: 20%;
    right: 10%;
}

.geo-rect-about-1 {
    width: 80px;
    height: 80px;
    background: #fde68a;
    bottom: 15%;
    right: 5%;
}

.geo-rect-cta-1 {
    width: 100px;
    height: 100px;
    background: #34d399;
    top: 10%;
    left: 8%;
}

.geo-triangle {
    position: absolute;
    opacity: 0.1;
    width: 0;
    height: 0;
}

.geo-triangle-1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #fde68a;
    top: 60%;
    right: 5%;
}

.geo-dots {
    position: absolute;
    opacity: 0.12;
    background-image: radial-gradient(circle, #a7f3d0 2px, transparent 2px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 8%;
}

.geo-circle-about-1 {
    width: 300px;
    height: 300px;
    background: #34d399;
    bottom: -80px;
    right: -80px;
}

.geo-circle-cta-1 {
    width: 250px;
    height: 250px;
    background: #6ee7b7;
    top: -60px;
    right: 10%;
}

/* === FLOATING CARD ANIMATIONS === */
.floating-card {
    z-index: 20;
}

.card-float-1 {
    animation: float1 4s ease-in-out infinite;
}

.card-float-2 {
    animation: float2 5s ease-in-out infinite;
}

.card-float-3 {
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(5px); }
}

/* === SERVICE CARDS === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #047857, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* === GALLERY === */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 120, 87, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
    position: relative;
}

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

nav.scrolled .nav-text {
    color: #064e3b !important;
}

nav.scrolled .nav-link {
    color: #064e3b !important;
}

nav.scrolled .menu-line {
    background: #064e3b !important;
}

/* Mobile menu active state */
#mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ecfdf5;
}

::-webkit-scrollbar-thumb {
    background: #34d399;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
