:root {
    --primary: #27ae60;
    --primary-dark: #1e8449;
    --bg-light: #ffffff;
    --bg-light-alt: #f4fbf7;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #2d3748;
    --text-muted: #718096;
    --glass-border: rgba(39, 174, 96, 0.15);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.rounded {
    border-radius: 12px;
}

.shadow-img {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.bg-light-alt {
    background-color: var(--bg-light-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Glassmorphism Utility (Light theme version) */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #1a202c;
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 1px;
}

.navbar:not(.scrolled) .logo {
    color: #fff; /* White logo when at the top on hero image */
}

.logo span {
    color: var(--primary);
    font-weight: 300;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a202c;
}

.navbar:not(.scrolled) .nav-links a {
    color: #fff;
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: #d1fae5;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 6px;
    color: var(--primary) !important;
}

.navbar:not(.scrolled) .btn-nav {
    border-color: #fff;
    color: #fff !important;
}

.btn-nav:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a202c;
    border-radius: 3px;
    transition: var(--transition);
}

.navbar:not(.scrolled) .hamburger span {
    background: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=2074&auto=format&fit=crop') center/cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 22, 0.4), rgba(4, 30, 16, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #fff; /* Override default heading color */
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #a7f3d0;
    margin-bottom: 15px;
}

.hero .description {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section Common */
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Features Grid */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    transition: var(--transition);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--bg-light-alt);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Clean Image Card */
.clean-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.clean-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.clean-card .card-content {
    padding: 25px;
}
.clean-card h3 {
    color: var(--primary-dark);
}

/* Project Rows */
.project-row {
    margin-bottom: 80px;
}
.project-row:last-child {
    margin-bottom: 0;
}
.project-row.reversefade-in {
    direction: rtl; /* simple hack to reverse grid on desktop */
}
.project-row.reversefade-in > * {
    direction: ltr; /* reset content orientation */
}

/* Contact / Lead Form */
.contact-form-wrapper {
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.lead-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.contact-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--bg-light-alt);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.form-success {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    border-color: rgba(39, 174, 96, 0.3);
    color: #1e8449;
    background: rgba(39, 174, 96, 0.1);
    font-weight: 600;
    border-radius: 8px;
}

/* Footer */
.footer {
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 20px;
    background: #f8fafc;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a202c;
}

.footer-brand span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #4a5568;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Animations & Responsiveness */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    transform: translateX(50px);
}
.slide-left.appear {
    transform: translateX(0);
}

.slide-right {
    transform: translateX(-50px);
}
.slide-right.appear {
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

.animate-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .project-row.reversefade-in {
        direction: ltr; /* disable reversal on mobile */
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    .nav-links a {
        color: #1a202c !important; /* Force dark text in mobile menu */
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .navbar {
        padding: 15px 20px;
    }
}
