/* 
 * Ailean Environmental - Global Styles
 * Apple-style Premium Design System (Light Mode)
 */

:root {
    /* Colors */
    --primary-blue: #0071e3;
    /* Apple Blue */
    --primary-green: #34c759;
    /* Apple Green */
    --accent-gradient: linear-gradient(135deg, #0071e3 0%, #34c759 100%);

    --bg-main: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;

    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-light: #f5f5f7;
    /* For dark backgrounds like footer/hero overlay */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 12px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Utilities */
.highlight {
    color: var(--primary-green);
}

.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.center {
    text-align: center;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #0077ed;
    /* Brighter blue */
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    margin-left: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Navbar */
/* Navbar */
/* Navbar */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.7);
    /* More transparent glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker on scroll */
    box-shadow: var(--shadow-sm);
}

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

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 64px;
    /* Increased from 40px */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    /* Light gray/white text */
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    /* Pure white on hover */
}

.nav-links .btn-primary {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-left: var(--spacing-sm);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section - Premium Split Layout */
/* Hero Section - Premium Split Layout */
.hero-split {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Subtle mesh gradient */
    background: var(--bg-main);
    /* Fallback */
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below content */
    pointer-events: none;
    /* Let clicks pass through */
}

.hero-container-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    /* Image right */
    gap: var(--spacing-xl);
    width: 100%;
    max-width: 1500px;
    z-index: 2;
    /* Vital: Above canvas */
    position: relative;
    /* Important: Use min-height to fill screen, align-content to center rows */
    min-height: 100vh;
    align-content: center;
    align-items: center;
    /* Prevent stretch, allow natural height */
    padding: 100px var(--spacing-md) 100px var(--spacing-md);
    /* Padding to prevent overlap */
    margin: 0 auto;
}

/* Typography */
.hero-content-left {
    padding-right: var(--spacing-xs);
    z-index: 2;
}

.hero-content-left h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-content-left p {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 90%;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 0;
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.btn-secondary-dark:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

.hero-stats {
    position: absolute;
    bottom: 40px;
    left: var(--spacing-md);
    width: auto;
    display: flex;
    gap: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 20px;
    z-index: 10;
}

.h-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Right Side - Image */
.hero-visual-right {
    position: relative;
    width: 100%;
    /* Removed height: 100% to let it shrink to content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper-premium {
    position: relative;
    border-radius: 40px;
    /* Softer rounded corners */
    width: 100%;
    /* Subtle 3D transform effect */
    transform: perspective(2000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow:
        -20px 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Outline */
}

.image-wrapper-premium:hover {
    transform: perspective(2000px) rotateY(0deg) rotateX(0deg) scale(1.01);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-main-img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    object-fit: cover;
    aspect-ratio: 16/10;
    /* Wider aspect ratio */
    display: block;
}

/* Floating Card Element - Adjusted position */
.floating-card {
    position: absolute;
    bottom: 60px;
    left: -40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.floating-card i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.floating-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-main);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header .subtitle {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.section-header h2 {
    color: var(--text-primary);
}

.header-intro {
    max-width: 100%;
    /* Changed from 800px to full width */
    margin-top: var(--spacing-md);
    text-align: left;
    padding: 0;
    /* Ensuring no padding */
}

.header-intro p {
    font-size: 1.15rem;
    /* Slightly larger text */
    line-height: 1.8;
    /* More relaxed leading */
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-lg);
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stats {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-block h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.about-block p {
    color: var(--text-secondary);
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    /* Align to top instead of center */
}

.service-item.reverse {
    direction: rtl;
    /* Quick hack to swap columns */
}

.service-item.reverse .service-text {
    direction: ltr;
    /* Reset text direction */
}

.service-text h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.feature-list i {
    color: var(--primary-green);
}

.service-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* height: 400px; Removed fixed height */
    height: auto;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    /* Add padding */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    transition: transform 0.5s ease;
}

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

/* Technology Section */
.technology {
    padding: var(--spacing-xl) 0;
    background: var(--bg-main);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.tech-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.tech-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    background: rgba(0, 113, 227, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: url('../assets/images/hero_bg.png') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

.contact-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

/* Contact Info Styling */
.contact-info {
    padding-right: var(--spacing-md);
}

.contact-info h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    color: var(--text-primary);
}

.contact-info>p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-top: 4px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-item a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form-wrapper {
    background: rgba(245, 245, 247, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Services Header Intro */
.header-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    /* Better readability for long text */
}

.header-intro p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.full-width {
    width: 100%;
    margin-top: var(--spacing-sm);
    padding: 14px;
    font-size: 1.1rem;
}

/* Map Container */
/* Map Container */
.map-container {
    grid-column: 1 / -1;
    /* Span full width of grid */
    width: 100%;
    height: 400px;
    /* Explicit height is mandatory */
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: var(--spacing-sm);
    background: #f0f0f0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Footer Section */
footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.land-acknowledgement {
    margin-top: var(--spacing-lg);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--spacing-md);
}

/* Animation Classes */
.fade-in-up,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: var(--spacing-lg);
        height: calc(100vh - 70px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .service-item,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-card {
        height: 300px;
    }

    .reverse {
        direction: ltr !important;
    }

    .hero-split {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--spacing-lg);
    }

    .hero-container-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content-left {
        padding-right: 0;
        text-align: center;
    }

    .hero-content-left h1 {
        font-size: 2.5rem;
    }

    .hero-content-left p {
        margin: 0 auto var(--spacing-md) auto;
    }

    .hero-btns {
        justify-content: center;
        margin-bottom: var(--spacing-lg);
    }

    .hero-stats {
        position: static;
        width: 100%;
        justify-content: center;
        padding-bottom: 0;
        margin-top: var(--spacing-md);
    }

    .hero-visual-right {
        order: -1;
        /* Image on top */
    }

    .image-wrapper-premium {
        transform: none;
    }

    .image-wrapper-premium:hover {
        transform: none;
    }
}