@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Deep Water & Earth Theme */
    --primary: #0A192F;
    --primary-light: #112240;
    --secondary: #2D5A27;
    --accent: #64FFDA;
    --text-main: #E6F1FF;
    --text-dim: #8892B0;
    --white: #FFFFFF;
    --bg-dark: #020C1B;
    
    /* Glassmorphism */
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(100, 255, 218, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(2, 12, 27, 0.37);
    
    /* Spacing & Transitions */
    --section-pad: 120px;
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--accent);
    background: rgba(10, 25, 47, 0.85);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.8);
    color: var(--primary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background: var(--text-dim);
    margin-left: 20px;
    opacity: 0.3;
}

/* Navigation */
nav {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 70px;
}

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

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(2, 12, 27, 0.7), rgba(2, 12, 27, 0.7)), url('Images/Irrigation-Field.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
}

.hero-sub {
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Sections */
section {
    padding: var(--section-pad) 0;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-dim);
}

/* Specialty Cards */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-dim);
}

/* Gallery - Masonry Style */
.gallery-grid {
    columns: 3 300px;
    column-gap: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Tech Section */
.tech-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Regions Section */
.regions {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 60px;
}

.region-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
}

.region-item::before {
    content: '▹';
    color: var(--accent);
}

/* Footer */
footer {
    padding: 100px 0 40px;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-dim);
    max-width: 300px;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--text-dim);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }
    
    .tech-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background-color: var(--accent);
        margin: 5px;
        transition: var(--transition);
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mobile-menu {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        border-left: 1px solid var(--glass-border);
    }

    .mobile-menu.active {
        transform: translateX(0%);
    }

    .mobile-links {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .mobile-links a {
        font-family: 'Outfit', sans-serif;
        font-size: 1.5rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
}

.burger {
    display: none;
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
