/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Dark Green Color Palette */
    --primary-dark: #0a2e1a;
    --primary-main: #0d4a2a;
    --primary-medium: #156639;
    --primary-light: #1e7d48;
    --accent-green: #2ea15e;
    --accent-bright: #3fc97d;
    
    /* Neutral Colors */
    --text-primary: #f5f7f5;
    --text-secondary: #c2d4c7;
    --text-muted: #8fa899;
    --bg-dark: #051410;
    --bg-medium: #0a1e16;
    --bg-card: #0f2d1f;
    --border-color: #1e4831;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Crimson Pro', serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(5, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent-bright);
    transition: var(--transition-base);
}

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

.nav {
    display: flex;
    gap: 45px;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-base);
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(46, 161, 94, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(21, 102, 57, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(46, 161, 94, 0.03) 2px, rgba(46, 161, 94, 0.03) 4px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    margin-bottom: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-bright);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(46, 161, 94, 0.4);
}

.btn-primary:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 161, 94, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-medium);
    border-color: var(--accent-bright);
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-bright), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 15px;
}

.section-title {
    margin-bottom: 20px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

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

.lead-text {
    font-size: 1.35rem;
    color: var(--accent-bright);
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 35px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-bright);
    transition: var(--transition-slow);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--accent-bright);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background: var(--bg-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-dark);
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-base);
}

.service-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-medium);
    line-height: 1;
    margin-bottom: 25px;
    transition: var(--transition-base);
}

.service-card:hover .service-number {
    color: var(--accent-bright);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-bright);
    transition: var(--transition-slow);
}

.service-card:hover .service-line {
    width: 100%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background: linear-gradient(180deg, var(--bg-medium) 0%, var(--primary-dark) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.contact-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    color: var(--accent-bright);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-text a {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-text a:hover {
    color: var(--accent-bright);
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
}

.contact-form-container {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-bright);
    background: var(--primary-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-bright);
    display: inline-block;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-column a {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--accent-bright);
    transform: translateX(3px);
}

.footer-column p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.footer-bottom p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-medium);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: var(--transition-base);
        border-left: 1px solid var(--border-color);
    }
    
    .nav.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        padding: 20px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
