/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    --primary: #1D9E75;
    --primary-dark: #157959;
    --primary-light: #e8f5f1;
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #eaeaea;
    --transition: 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

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

html {
    color-scheme: light dark;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: var(--bg-main);
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-main) !important;
    border: 2px solid var(--bg-main);
}

.btn-outline:hover {
    background-color: var(--bg-main);
    color: var(--text-main) !important;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* =========================================
   HEADER
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    transition: height 0.4s ease;
}

.logo {
    height: 80px;
    transition: height 0.4s ease;
}

.header.scrolled .header-content {
    height: 80px;
}

.header.scrolled .logo {
    height: 45px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a:not(.btn) {
    font-weight: 600;
    position: relative;
}

.main-nav a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Header offset */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text-box {
    max-width: 650px;
    color: white;
}

.hero-text-box h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text-box p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-img {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-info p {
    color: var(--text-light);
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Fixed positioning for the experience badge */
.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    /* ensure it stays visible inside standard container bounds, or adjust position */
    transform: translate(-30px, -30px);
}

.experience-badge span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.experience-badge strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-info-box {
    flex: 1.2;
    padding: 60px;
}

.contact-info-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.contact-info-box > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-light);
    transition: var(--transition);
}

a.contact-item:hover,
.contact-item.hoverable:hover {
    background: var(--primary-light);
    transform: translateX(10px);
}

.contact-item .icon {
    font-size: 2rem;
    flex: 0 0 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.contact-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.contact-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.contact-visual {
    flex: 0.8;
    background: var(--primary);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-visual h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-logo {
    width: 200px;
    opacity: 0.2;
    position: relative;
    z-index: 1;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #111;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 80px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #999;
}

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

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-wrapper {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .hero-text-box h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 80px;
    }
    
    .logo {
        height: 45px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: var(--transition);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text-box h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .contact-info-box {
        padding: 40px 20px;
    }
}

/* =========================================
   DARK MODE & LOGO TOGGLE
========================================= */
/* Default (Light Mode) */
.logo-dark {
    display: none !important;
}
.logo-light {
    display: block !important;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-light: #1a4d3b;
        --text-main: #f0f0f0;
        --text-light: #aaaaaa;
        --bg-main: #121212;
        --bg-light: #1e1e1e;
        --border-color: #333333;
    }
    
    .header {
        background: rgba(18, 18, 18, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .service-card, .contact-wrapper, .contact-item {
        background: var(--bg-light);
        border-color: var(--border-color);
    }
    
    .service-card:hover {
        border-color: var(--primary);
    }
    
    .contact-info-box h2, .section-header h2, .about-text h2 {
        color: var(--text-main);
    }

    .btn-outline {
        color: var(--text-main) !important;
        border-color: var(--text-main);
    }

    .btn-outline:hover {
        background-color: var(--text-main);
        color: var(--bg-main) !important;
    }
    
    /* Swap Logos for Dark Mode */
    .logo-light {
        display: none !important;
    }
    .logo-dark {
        display: block !important;
    }
    
    .mobile-menu-btn span {
        background: var(--text-main);
    }
    
    .main-nav {
        background: var(--bg-main) !important;
    }
}
