:root {
    --primary: #0066cc;
    /* Tech Blue */
    --secondary: #0a192f;
    /* Dark Navy */
    --accent: #64ffda;
    /* Cyan/Teal for highlights */
    --text-light: #e6f1ff;
    --text-dark: #333333;
    --bg-dark: #0a192f;
    --bg-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
}

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

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 1rem;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo img {
    height: 60px;
    margin-right: 0;
}

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

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--secondary);
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-link.btn-primary {
    color: white;
    padding: 8px 24px;
}

.nav-link.btn-primary:hover {
    color: var(--primary);
}

.nav-link.btn-primary::after {
    display: none;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(100, 255, 218, 0.1) 100%);
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Features Grid */
.features {
    padding: 5rem 0;
    background: white;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    /* Overlap hero */
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    text-align: center;
    flex: 1 1 300px;
    max-width: 400px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: #666;
}

/* Section Common */
.section {
    padding: 8rem 0;
}

.section-tag {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Dark Section (Smart Energy) */
.dark-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

.dark-section .section-title {
    color: white;
}

.dark-section .section-text {
    color: #a8b2d1;
}

.checklist {
    list-style: none;
    margin-bottom: 2rem;
}

.checklist li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: #a8b2d1;
}

.checklist li i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Light Section (Smart Agriculture) */
.light-section {
    background: white;
}

.light-section .section-title {
    color: var(--secondary);
}

.light-section .section-text {
    color: #555;
}

.stats-grid {
    display: flex;
    gap: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.glitch-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.split-image:hover .glitch-image {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #112240 100%);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 800px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #a8b2d1;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-block {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
}

.btn-block:hover {
    background: transparent;
    color: var(--accent);
}

/* Footer */
.footer {
    background: #020c1b;
    color: #8892b0;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    font-size: 1.5rem;
}

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

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: 1000;
    }

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

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

    /* Fix Split Layouts to stack vertically */
    .split-layout,
    .split-layout.reverse,
    .detail-grid,
    .row {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .split-content,
    .split-image,
    .detail-content,
    .detail-image,
    .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .split-image,
    .detail-image {
        height: auto;
        margin-top: 2rem;
    }

    .checklist li {
        justify-content: center;
        text-align: left;
    }

    /* Hero Fixes */
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 2rem;
    }

    .hero-cta .btn {
        width: 100%;
        margin: 0 !important;
    }

    /* Grid Fixes */
    .features-grid {
        grid-template-columns: 1fr;
        /* Single column */
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* General Container Padding */
    .container {
        padding: 0 1.5rem;
    }

    /* Footer Fixes */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    /* Image Constraint */
    img,
    .split-image,
    .glitch-image {
        max-width: 100% !important;
    }
}

/* Global Overflow Fix */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}