* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2d;
    --accent-gold: #c9a961;
    --dark-bg: #0f1419;
    --light-bg: #f8faf9;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e4e0;
}

/* Dark theme (default - energy saving) */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e8e8e8;
    line-height: 1.7;
    background: #0f1419;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme */
body.light-theme {
    background: white;
    color: var(--text-dark);
}

body.light-theme .logo {
    color: var(--primary-green);
}

body.light-theme .hero {
    color: var(--text-dark);
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
    color: var(--text-dark);
}

body.light-theme .hero-description {
    color: var(--text-light);
}

body.light-theme .section-tag {
    color: var(--primary-green);
}

body.light-theme .section-description,
body.light-theme p {
    color: var(--text-light);
}

body.light-theme .card,
body.light-theme .feature-card,
body.light-theme .tech-item,
body.light-theme .tool-card {
    background: white;
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.light-theme .features,
body.light-theme .technology,
body.light-theme .tools {
    background: white;
}

body.light-theme .about {
    background: var(--light-bg);
}

body.light-theme nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-color);
}

body.light-theme .hero::before {
    background: linear-gradient(180deg, rgba(248, 250, 249, 0.4) 0%, rgba(255, 255, 255, 0.4) 100%);
}

body.light-theme .contact {
    background: var(--light-bg);
}

body.light-theme .about-image-placeholder {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.1), rgba(0, 168, 107, 0.1));
    color: var(--primary-green);
}

body.light-theme .stat-number {
    color: var(--primary-green);
}

body.light-theme footer {
    background: var(--text-dark);
    color: #e8e8e8;
}

body.light-theme .footer-links a {
    color: #cccccc;
}

body.light-theme .footer-links a:hover {
    color: white;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4a7c2d;
    letter-spacing: 0.5px;
}

.nav-badge {
    background: linear-gradient(135deg, rgba(74, 124, 45, 0.2) 0%, rgba(45, 80, 22, 0.2) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a7c2d;
    border: 1px solid rgba(74, 124, 45, 0.3);
}

/* Theme Toggle */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-option {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

.theme-option:first-of-type {
    color: #4a7c2d;
}

body.light-theme .theme-option:first-of-type {
    color: #666;
}

body.light-theme .theme-option:last-of-type {
    color: var(--accent-gold);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(74, 124, 45, 0.3);
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid #4a7c2d;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
    background-color: #4a7c2d;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .theme-slider {
    background-color: rgba(201, 169, 97, 0.3);
    border-color: var(--accent-gold);
}

input:checked + .theme-slider:before {
    transform: translateX(30px);
    background-color: var(--accent-gold);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 40px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

body.light-theme .hero::before {
    background: linear-gradient(180deg, rgba(248, 250, 249, 0.4) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(30, 36, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.light-theme .hero-badge {
    background: white;
    border-color: var(--border-color);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

body.light-theme h1 {
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: #d0d0d0;
    margin-bottom: 40px;
    line-height: 1.8;
}

body.light-theme .hero-description {
    color: var(--text-light);
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 14px rgba(45, 80, 22, 0.25);
}

.btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.35);
}

.btn-secondary {
    background: rgba(74, 124, 45, 0.15);
    color: #e8e8e8;
    border: 2px solid #4a7c2d;
}

.btn-secondary:hover {
    background: rgba(74, 124, 45, 0.25);
}

body.light-theme .btn-secondary {
    background: white;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

body.light-theme .btn-secondary:hover {
    background: var(--light-bg);
}

/* Tools/Features Section */
.tools, .features {
    padding: 100px 40px;
    background: #1a1f26;
}

body.light-theme .tools,
body.light-theme .features {
    background: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    color: #4a7c2d;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

body.light-theme h2 {
    color: var(--text-dark);
}

.section-description {
    font-size: 1.15rem;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
}

body.light-theme .section-description {
    color: var(--text-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tool-card {
    background: #1e242d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.light-theme .tool-card {
    background: white;
    border-color: var(--border-color);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(74, 124, 45, 0.3);
    border-color: var(--secondary-green);
}

body.light-theme .tool-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.tool-icon {
    margin-bottom: 25px;
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

body.light-theme .tool-card h3 {
    color: var(--text-dark);
}

.tool-card p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.7;
}

body.light-theme .tool-card p {
    color: var(--text-light);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: #1e242d;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-theme .feature-card {
    background: var(--light-bg);
    border-color: var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 124, 45, 0.3);
    border-color: var(--secondary-green);
}

body.light-theme .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 124, 45, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border: 1px solid rgba(74, 124, 45, 0.3);
}

body.light-theme .feature-icon {
    background: white;
    border-color: var(--border-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

body.light-theme .feature-card h3 {
    color: var(--text-dark);
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.7;
}

body.light-theme .feature-card p {
    color: var(--text-light);
}

/* Technology Stack */
.technology {
    padding: 100px 40px;
    background: linear-gradient(rgba(15, 20, 25, 0.65), rgba(15, 20, 25, 0.70)), url('/assets/tech-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.technology h2,
.technology .section-tag {
    color: white;
}

.technology .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-green);
}

.tech-item-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tech-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

/* About Section */
.about {
    padding: 100px 40px;
    background: #0f1419;
}

body.light-theme .about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: 1.05rem;
}

body.light-theme .about-text p {
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    padding: 25px;
    background: #1e242d;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-green);
}

body.light-theme .stat-item {
    background: var(--light-bg);
    border-left-color: var(--primary-green);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4a7c2d;
    margin-bottom: 8px;
}

body.light-theme .stat-number {
    color: var(--primary-green);
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.95rem;
}

body.light-theme .stat-label {
    color: var(--text-light);
}

.about-image {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.1) 0%, rgba(74, 124, 45, 0.1) 100%), url('/assets/about-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.about-image-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

/* Tools Section */
.tools {
    padding: 100px 40px;
    background: #1a1f26;
}

body.light-theme .tools {
    background: var(--light-bg);
}

/* Contact Section */
.contact {
    padding: 100px 40px;
    background: #1a1f26;
}

body.light-theme .contact {
    background: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.contact-item {
    padding: 30px;
    background: #1e242d;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-theme .contact-item {
    background: var(--light-bg);
    border-color: transparent;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 124, 45, 0.3);
    border-color: var(--secondary-green);
}

body.light-theme .contact-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact-item-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

body.light-theme .contact-item h3 {
    color: var(--text-dark);
}

.contact-item a {
    color: #4a7c2d;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

body.light-theme .contact-item a {
    color: var(--primary-green);
}

.contact-item a:hover {
    opacity: 0.7;
}

.contact-item p {
    color: #b0b0b0;
}

body.light-theme .contact-item p {
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-description {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-container,
.section-container {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .tech-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }
}
