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

:root {
    --primary: #37745B;
    --secondary: #8B9D77;
    --light: #E7EAEF;
    --dark: #0a0a0a;
    --gray: #808080;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background: var(--gray);
    min-height: 200px;
    object-fit: cover;
}

/* Image loading optimization */
img[src] {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 30px rgba(55, 116, 91, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.logo-img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(55, 116, 91, 0.2), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 157, 119, 0.15), transparent 50%);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(55, 116, 91, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 5px;
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(55, 116, 91, 0.2);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 5px 30px rgba(55, 116, 91, 0.4);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(55, 116, 91, 0.6);
    border-color: var(--primary);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(55, 116, 91, 0.3);
    border: 2px solid var(--primary);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch1 2s infinite;
    color: var(--primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch2 2s infinite;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(55, 116, 91, 0.1);
    border-radius: 15px;
    border: 2px solid var(--primary);
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(55, 116, 91, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary);
    text-transform: uppercase;
}

.about-image img {
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 15px 50px rgba(55, 116, 91, 0.3);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(55, 116, 91, 0.05), rgba(139, 157, 119, 0.05));
    border-radius: 20px;
    border: 2px solid var(--primary);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 116, 91, 0.2), transparent);
    transition: 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(55, 116, 91, 0.4);
    border-color: var(--secondary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.service-link:hover {
    transform: translateX(10px);
    color: var(--secondary);
}

/* Detail Section */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse > * {
    direction: ltr;
}

.detail-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.detail-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(55, 116, 91, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 5px;
    transition: 0.3s;
}

.feature-list li:hover {
    background: rgba(55, 116, 91, 0.2);
    transform: translateX(10px);
}

.feature-list li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.warning-box {
    padding: 1.5rem;
    background: rgba(255, 165, 0, 0.1);
    border-left: 4px solid orange;
    border-radius: 10px;
    margin: 2rem 0;
}

.detail-image img {
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 15px 50px rgba(55, 116, 91, 0.3);
}

.detail-section.alt {
    background: rgba(55, 116, 91, 0.05);
}

/* Issues Section */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.issue-card {
    padding: 2rem;
    background: rgba(55, 116, 91, 0.05);
    border-radius: 15px;
    border: 2px solid var(--primary);
    text-align: center;
    transition: 0.3s;
}

.issue-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(55, 116, 91, 0.3);
}

.issue-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.issue-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(55, 116, 91, 0.05);
    transition: 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(55, 116, 91, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: rgba(55, 116, 91, 0.1);
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(55, 116, 91, 0.2);
}

.faq-question h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    transition: 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem 2rem;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(55, 116, 91, 0.2), rgba(139, 157, 119, 0.1));
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 4rem 0 2rem;
    border-top: 2px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-col p {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--light);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary);
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 2px solid var(--primary);
    }

    .nav-menu.active {
        left: 0;
    }

    .burger {
        display: flex;
    }

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

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

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .container {
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .issues-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .service-card,
    .issue-card {
        padding: 1.5rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .hero-features {
        gap: 0.5rem;
    }

    .feature-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .issues-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        gap: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* Extra small devices - 320px and below */
@media (max-width: 320px) {
    .container {
        padding: 0 0.3rem;
    }

    .nav-container {
        padding: 0.3rem 0.5rem;
    }

    .logo {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .logo-img {
        width: 25px;
        height: 25px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .section-title {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .service-card,
    .issue-card {
        padding: 1rem;
    }

    .stat-item {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .hero-features {
        gap: 0.3rem;
    }

    .feature-item {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .feature-icon {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 0.8rem;
    }

    .faq-question h3 {
        font-size: 0.9rem;
    }

    .faq-answer p {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .issues-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .services-grid {
        gap: 0.8rem;
    }

    .section {
        padding: 2rem 0;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col p,
    .footer-col li {
        font-size: 0.8rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--light);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #00ff00;
        --secondary: #ffff00;
        --light: #ffffff;
        --dark: #000000;
    }
}