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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f3f6f2;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2f8f5b;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #f6c453, #2f8f5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #2f8f5b;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, #2f8f5b, #1a6f5a);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    margin-left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: rgba(47, 143, 91, 0.12);
    color: #1a6f5a;
    border: 1px solid rgba(47, 143, 91, 0.3);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(47, 143, 91, 0.15);
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    background: rgba(246, 196, 83, 0.2);
    border-color: rgba(246, 196, 83, 0.5);
    transform: translateY(-2px);
}

.theme-toggle:focus-visible {
    outline: 3px solid rgba(246, 196, 83, 0.4);
    outline-offset: 2px;
}

.theme-icon {
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f8a5c 0%, #0f5f4c 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f6c453);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatShapes 8s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

/* Button Styles */
.cta-button, .btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button {
    background: linear-gradient(45deg, #f6c453, #ffe27a);
    color: #333;
    box-shadow: 0 10px 30px rgba(246, 196, 83, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #2f8f5b, #1a6f5a);
    color: white;
    box-shadow: 0 8px 25px rgba(47, 143, 91, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.cta-button::before, .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before, .btn:hover::before {
    left: 100%;
}

.cta-button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #1f8a5c 0%, #0f5f4c 100%);
    transform: skewY(-2deg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #2f8f5b, #1a6f5a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2f8f5b, #1a6f5a);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

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

/* Our Work Section */
.our-work {
    padding: 100px 0;
    background: linear-gradient(135deg, #e1efe6 0%, #f3f6f2 100%);
    position: relative;
}

.our-work::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(246, 196, 83, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(47, 143, 91, 0.18), transparent 50%);
    opacity: 0.7;
}

.our-work .container {
    position: relative;
    z-index: 1;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background: white;
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(15, 95, 76, 0.12);
    border: 1px solid rgba(26, 111, 90, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(246, 196, 83, 0.3), transparent 70%);
    transform: rotate(25deg);
}

.work-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #1a6f5a;
}

.work-card p {
    color: #446d5e;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.work-note {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(47, 143, 91, 0.12);
    color: #1a6f5a;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(15, 95, 76, 0.18);
}

/* Interactive Demo Section */
.interactive-demo {
    padding: 100px 0;
    background: linear-gradient(135deg, #f3f6f2 0%, #e1efe6 100%);
}

.demo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.demo-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.demo-card h3 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.5rem;
}

.demo-card input[type="range"] {
    width: 100%;
    margin: 1.5rem 0 1rem;
    accent-color: #2f8f5b;
    cursor: pointer;
}

.demo-card select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(47, 143, 91, 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: #1a6f5a;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.demo-card select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.25);
    border-color: rgba(47, 143, 91, 0.45);
}

.range-output {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2f8f5b;
}

.range-output span {
    font-size: 2.6rem;
}

.tip {
    color: #456c54;
    font-weight: 600;
}

.terrain-output {
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(47, 143, 91, 0.08);
    border: 1px solid rgba(47, 143, 91, 0.18);
    text-align: left;
}

.terrain-output h4 {
    margin-bottom: 0.6rem;
    color: #1a6f5a;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f3f6f2;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2f8f5b;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 143, 91, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0b3d2e 0%, #145a32 100%);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f6c453;
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #f6c453;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(246, 196, 83, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Dark Mode */
body.dark-mode {
    background: #0f1c16;
    color: #e4f0e6;
}

body.dark-mode nav {
    background: rgba(9, 33, 26, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode nav.scrolled {
    background: rgba(9, 33, 26, 0.97);
}

body.dark-mode .nav-links a {
    color: #e4f0e6;
}

body.dark-mode .nav-links a:hover {
    color: #f6c453;
}

body.dark-mode .theme-toggle {
    background: rgba(246, 196, 83, 0.2);
    border-color: rgba(246, 196, 83, 0.45);
    color: #fce6a4;
    box-shadow: 0 15px 35px rgba(246, 196, 83, 0.25);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f543c 0%, #062c21 100%);
}

body.dark-mode .hero p {
    opacity: 0.95;
}

body.dark-mode .features {
    background: #0e221b;
}

body.dark-mode .features::before {
    background: linear-gradient(135deg, #0f543c 0%, #062c21 100%);
}

body.dark-mode .feature-card {
    background: rgba(9, 33, 26, 0.85);
    border-color: rgba(246, 196, 83, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body.dark-mode .feature-card p {
    color: #cde8d8;
}

body.dark-mode .feature-icon {
    background: linear-gradient(45deg, #f6c453, #2f8f5b);
}

body.dark-mode .our-work {
    background: linear-gradient(135deg, #0e261d 0%, #0a1b15 100%);
}

body.dark-mode .work-card {
    background: rgba(9, 33, 26, 0.82);
    border-color: rgba(246, 196, 83, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .work-card p {
    color: #d0eadc;
}

body.dark-mode .work-note {
    background: rgba(246, 196, 83, 0.18);
    color: #fce6a4;
}

body.dark-mode .interactive-demo {
    background: linear-gradient(135deg, #0a2018 0%, #07140f 100%);
}

body.dark-mode .demo-card {
    background: rgba(9, 33, 26, 0.85);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

body.dark-mode .demo-card select {
    background: rgba(255, 255, 255, 0.08);
    color: #fce6a4;
    border-color: rgba(246, 196, 83, 0.25);
}

body.dark-mode .range-output {
    color: #f6c453;
}

body.dark-mode .tip {
    color: #d0eadc;
}

body.dark-mode .terrain-output {
    background: rgba(246, 196, 83, 0.1);
    border-color: rgba(246, 196, 83, 0.25);
}

body.dark-mode .terrain-output h4 {
    color: #f6c453;
}

body.dark-mode .contact {
    background: #0a1c15;
}

body.dark-mode .contact-form .form-group input,
body.dark-mode .contact-form .form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(246, 196, 83, 0.25);
    color: #e4f0e6;
}

body.dark-mode .contact-form .form-group input::placeholder,
body.dark-mode .contact-form .form-group textarea::placeholder {
    color: rgba(228, 240, 230, 0.6);
}

body.dark-mode .footer {
    background: linear-gradient(135deg, #04120d 0%, #082118 100%);
}

body.dark-mode .footer-section a {
    color: #9fcbb6;
}

body.dark-mode .footer-section a:hover {
    color: #f6c453;
}

body.dark-mode .footer-bottom {
    color: #9fcbb6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatShapes {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(246, 196, 83, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(246, 196, 83, 0.8)); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-card,
    .demo-card {
        padding: 2rem;
    }
}