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

:root {
    --primary-color: #4caf50;
    --secondary-color: #2e7d32;
    --accent-color: #81c784;
    --dark-color: #1b5e20;
    --light-color: #f1f8e9;
    --text-dark: #212121;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* ========================================
   Header & Navigation
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: var(--light-color);
}

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

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.dark-mode .mobile-menu-toggle span {
    background: var(--text-green);
}

.light-mode .mobile-menu-toggle span {
    background: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8) 0%, rgba(27, 94, 32, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
}

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

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

.btn-primary:hover {
    background: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: 5rem 0;
}

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

.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color) !important;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 2rem;
    line-height: 1.8;
    font-weight: 400;
}

body.dark-mode:not(.legal-page) .section-header h2 {
    color: var(--text-green) !important;
}

body.legal-page.dark-mode .section-header h2 {
    color: #ffffff !important;
}

.light-mode .section-header h2 {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }
}

/* ========================================
   Services Section
   ======================================== */

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

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

.service-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    contain: layout style paint;
    will-change: transform;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover:before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 60px rgba(76, 175, 80, 0.3);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    will-change: transform;
}

/* ========================================
   Dark Mode Styles
   ======================================== */

:root {
    --primary-color: #4caf50;
    --secondary-color: #2e7d32;
    --accent-color: #81c784;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --bg-dark: #121212;
    --bg-dark-secondary: #1e1e1e;
    --text-dark: #e0e0e0;
    --text-green: #96e19b;
    --border-dark: #333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.dark-mode .main-header {
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid var(--border-dark);
}

.dark-mode .nav-menu a {
    color: var(--text-dark);
}

.dark-mode .nav-menu a:hover,
.dark-mode .nav-menu a.active {
    color: var(--text-green);
}

.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(30, 30, 30, 0.85) 100%);
}

.dark-mode .hero-title,
.dark-mode .hero-subtitle,
.dark-mode .hero-location {
    color: var(--text-dark);
}

.dark-mode p {
    color: var(--text-dark);
}

.dark-mode .section-header h2::after {
    background: var(--text-green);
}

.dark-mode .service-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
}

.dark-mode .service-card:hover {
    border-color: var(--text-green);
}

.dark-mode .service-content h3 {
    color: var(--text-green);
}

.dark-mode .service-content p {
    color: var(--text-dark);
}

.dark-mode .services-section {
    background: var(--bg-dark);
}

.dark-mode .about-content h2 {
    color: var(--text-green);
}

.dark-mode .feature-item h4 {
    color: var(--text-green);
}

.dark-mode .feature-item p {
    color: var(--text-dark);
}

.dark-mode .gallery-section,
.dark-mode .contact-section {
    background: var(--bg-dark-secondary);
}

.dark-mode .main-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
}

.dark-mode .form-control {
    background: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.dark-mode .form-control:focus {
    border-color: var(--text-green);
}

/* Light Mode */
.light-mode {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 50%, #f0f9ff 100%);
    color: #212529;
}

.light-mode .main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.08);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.light-mode .nav-menu a {
    color: #1b5e20;
}

.light-mode .nav-menu a:hover,
.light-mode .nav-menu a.active {
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.light-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8) 0%, rgba(27, 94, 32, 0.9) 100%);
}

.light-mode .hero-title,
.light-mode .hero-subtitle,
.light-mode .hero-location {
    color: #ffffff !important;
}

.light-mode .section-header h2,
.light-mode .section-header p {
    color: #1b5e20;
}

.light-mode .service-card {
    background: #ffffff;
    border: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.light-mode .service-card:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.15);
    transform: translateY(-10px);
}

.light-mode .service-content h3 {
    color: #2e7d32;
}

.light-mode .service-content p {
    color: #424242;
}

.light-mode .about-section {
    background: #fafafa;
}

.light-mode .about-content h2 {
    color: #1b5e20;
}

.light-mode .about-content p {
    color: #424242;
}

.light-mode .feature-item {
    background: #ffffff;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .feature-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.15);
    transform: translateX(10px);
}

.light-mode .feature-item h4 {
    color: #2e7d32;
}

.light-mode .feature-item p {
    color: #424242;
}

.light-mode .gallery-section {
    background: #ffffff;
}

.light-mode .gallery-item {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.light-mode .gallery-item:hover {
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.2);
    transform: translateY(-5px);
}

.light-mode .gallery-item h3 {
    color: #1b5e20;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.light-mode .contact-section {
    background: #fafafa;
}

.light-mode .contact-info {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    border-radius: 20px;
}

.light-mode .contact-info h3 {
    color: #2e7d32;
}

.light-mode .info-item {
    color: #424242;
    background: rgba(76, 175, 80, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.light-mode .contact-form {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    color: #424242;
}

.light-mode .form-group label {
    color: #2e7d32;
    font-weight: 600;
}

.light-mode .form-group input,
.light-mode .form-group textarea {
    background: #ffffff;
    border: 2px solid #c5e1a5;
    color: #212529;
}

.light-mode .form-group input:focus,
.light-mode .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ========================================
   Theme Toggle Button
   ======================================== */

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-color);
    transform: rotate(180deg);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--primary-color);
}

.theme-toggle:hover i {
    color: white;
}

/* ========================================
   Phone Link Styles
   ======================================== */

.phone-link,
.phone-number {
    color: var(--text-green) !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:hover,
.phone-number:hover {
    color: var(--primary-color) !important;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    color: var(--text-green);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Service Cards with Click
   ======================================== */

.service-content {
    padding: 2rem;
    text-align: center;
}

.service-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--text-green);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-details-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.service-details-btn:hover {
    background: var(--text-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.service-card {
    cursor: pointer;
}

/* ========================================
   Service Modal
   ======================================== */

.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.service-modal .modal-content {
    background: var(--bg-dark-secondary);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    border: 1px solid var(--border-dark);
}

.modal-close {
    color: var(--text-dark);
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-green);
}

.modal-body h2 {
    color: var(--text-green);
    margin-bottom: 1.5rem;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-body ul li i {
    color: var(--text-green);
    font-size: 1.5rem;
}

/* ========================================
   Gallery Filter
   ======================================== */

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-dark-secondary);
    color: var(--text-dark);
    border: 2px solid var(--border-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.light-mode .filter-btn {
    background: #ffffff;
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.light-mode .filter-btn:hover {
    background: #f1f8e9;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
}

.light-mode .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.light-mode .cta-button {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.light-mode .cta-button:hover {
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.gallery-badge {
    background: var(--text-green);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.light-mode .gallery-badge {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Contact Highlight
   ======================================== */

.info-highlight {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--text-green);
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.info-highlight i {
    font-size: 2rem;
    color: var(--text-green);
}

.info-highlight strong {
    color: var(--text-green);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-highlight p {
    margin: 0;
    color: var(--text-dark);
}

/* ========================================
   Footer Dark Mode
   ======================================== */

.dark-mode .main-footer {
    background: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-dark);
}

.dark-mode .footer-content h4,
.dark-mode .footer-content p,
.dark-mode .footer-content span,
.dark-mode .footer-content a,
.dark-mode .footer-bottom p {
    color: var(--text-dark) !important;
}

.dark-mode .footer-content a:hover {
    color: var(--text-green) !important;
}

/* Light Mode Footer */
.light-mode .main-footer {
    background: #1b5e20;
    border-top: none;
}

.light-mode .footer-content h4,
.light-mode .footer-content p,
.light-mode .footer-content span,
.light-mode .footer-content li {
    color: #ffffff !important;
}

.light-mode .footer-content a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.light-mode .footer-content a:hover {
    color: #ffffff !important;
}

.light-mode .footer-bottom {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode .footer-bottom p {
    color: rgba(255, 255, 255, 0.7) !important;
}



/* ========================================
   About Section
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color) !important;
    margin-bottom: 2rem;
}

.dark-mode .about-content h2 {
    color: var(--text-green) !important;
}

.light-mode .about-content h2 {
    color: var(--primary-color) !important;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #555;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery-section {
    background: #fafafa;
}

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

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    contain: layout style paint;
    will-change: transform, opacity;
}

.gallery-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
}

.dark-mode .contact-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

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

.contact-info h3 {
    font-size: 2rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

.dark-mode .contact-info h3 {
    color: var(--text-green);
}

.light-mode .contact-info h3 {
    color: var(--dark-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.dark-mode .info-item {
    color: var(--text-dark);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.dark-mode .info-item i {
    color: var(--text-green);
}

.info-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.info-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.dark-mode .info-item a::after {
    background: var(--text-green);
}

.info-item a:hover {
    color: var(--primary-color);
}

.dark-mode .info-item a:hover {
    color: var(--text-green);
}

.info-item a:hover::after {
    width: 100%;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.1);
    transition: var(--transition);
}

.dark-mode .contact-form {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-form:hover {
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.15);
}

.dark-mode .contact-form:hover {
    box-shadow: 0 20px 50px rgba(150, 225, 155, 0.2);
}

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

.dark-mode .contact-form input,
.dark-mode .contact-form textarea,
.dark-mode .contact-form select {
    background: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.dark-mode .contact-form input::placeholder,
.dark-mode .contact-form textarea::placeholder {
    color: #888;
}

.dark-mode .contact-form label {
    color: var(--text-dark);
}

.light-mode .info-item {
    color: #212529;
}

.light-mode .info-item i {
    color: var(--primary-color);
}

.light-mode .info-highlight {
    background: #f1f8e9;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.light-mode .info-highlight i {
    color: var(--primary-color);
}

.light-mode .info-highlight strong {
    color: var(--dark-color);
}

.light-mode .info-highlight p {
    color: #212529;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

/* ========================================
   Footer
   ======================================== */

.main-footer {
    background: var(--dark-color);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col:first-child {
    padding-right: 2rem;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

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

.footer-col li {
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-col li:hover {
    transform: translateX(5px);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:before {
    content: '›';
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .dark-mode .nav-menu {
        background: var(--bg-dark-secondary);
        box-shadow: 0 5px 20px rgba(150, 225, 155, 0.2);
    }

    .light-mode .nav-menu {
        background: white;
        box-shadow: 0 5px 20px rgba(76, 175, 80, 0.15);
    }

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

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   Animations & Effects
   ======================================== */

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ========================================
   Gallery Section
   ======================================== */

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

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.dark-mode .gallery-item {
    background: var(--bg-dark-secondary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .gallery-item:hover {
    box-shadow: 0 10px 30px rgba(150, 225, 155, 0.15);
}

.before-after-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.comparison-side {
    position: relative;
    overflow: hidden;
}

.comparison-side img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.comparison-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.light-mode .comparison-label {
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-item h3 {
    padding: 1.2rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.dark-mode .gallery-item h3 {
    color: var(--text-green);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-side img {
        height: 200px;
    }
}

/* ========================================
   Lightbox Bildvergleich
   ======================================== */

.comparison-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 2rem;
}

.comparison-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.image-comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-image.after {
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    cursor: ew-resize;
    z-index: 100;
    transform: translateX(-50%);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-handle::before {
    left: 10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.slider-handle::after {
    right: 10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.comparison-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 99;
}

.comparison-label-lightbox {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.dark-mode .comparison-label-lightbox {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid var(--border-dark);
}

.light-mode .comparison-label-lightbox {
    background: rgba(255, 255, 255, 0.95);
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .comparison-lightbox {
        padding: 1rem;
    }

    .lightbox-content {
        height: 70vh;
    }

    .lightbox-close {
        top: -50px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .comparison-labels {
        padding: 0 15px;
    }

    .comparison-label-lightbox {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .slider-handle {
        width: 50px;
        height: 50px;
    }
}

/* Überschriften nur auf Hauptseite grün */
body:not(.legal-page) h1, 
body:not(.legal-page) h2, 
body:not(.legal-page) h3, 
body:not(.legal-page) h4, 
body:not(.legal-page) h5, 
body:not(.legal-page) h6,
body:not(.legal-page) .h1,
body:not(.legal-page) .h2,
body:not(.legal-page) .h3,
body:not(.legal-page) .h4,
body:not(.legal-page) .h5,
body:not(.legal-page) .h6 {
    color: var(--primary-color) !important;
    text-transform: var(--mw-text-transform);
    font-weight: var(--mw-font-weight);
    letter-spacing: var(--mw-letter-spacing);
    line-height: var(--mw-line-height);
}

body.dark-mode:not(.legal-page) h1, 
body.dark-mode:not(.legal-page) h2, 
body.dark-mode:not(.legal-page) h3, 
body.dark-mode:not(.legal-page) h4, 
body.dark-mode:not(.legal-page) h5, 
body.dark-mode:not(.legal-page) h6,
body.dark-mode:not(.legal-page) .h1,
body.dark-mode:not(.legal-page) .h2,
body.dark-mode:not(.legal-page) .h3,
body.dark-mode:not(.legal-page) .h4,
body.dark-mode:not(.legal-page) .h5,
body.dark-mode:not(.legal-page) .h6,
body.dark-mode:not(.legal-page) .section-header h2,
body.dark-mode:not(.legal-page) .service-content h3,
body.dark-mode:not(.legal-page) .about-content h2,
body.dark-mode:not(.legal-page) .feature-item h4,
body.dark-mode:not(.legal-page) .gallery-item h3,
body.dark-mode:not(.legal-page) .contact-info h3,
body.dark-mode:not(.legal-page) .footer-content h4 {
    color: var(--text-green) !important;
}

.light-mode:not(.legal-page) h1, 
.light-mode:not(.legal-page) h2, 
.light-mode:not(.legal-page) h3, 
.light-mode:not(.legal-page) h4, 
.light-mode:not(.legal-page) h5, 
.light-mode:not(.legal-page) h6,
.light-mode:not(.legal-page) .h1,
.light-mode:not(.legal-page) .h2,
.light-mode:not(.legal-page) .h3,
.light-mode:not(.legal-page) .h4,
.light-mode:not(.legal-page) .h5,
.light-mode:not(.legal-page) .h6 {
    color: var(--primary-color) !important;
}

/* Überschriften auf rechtlichen Seiten bleiben weiß */
body.legal-page h1, 
body.legal-page h2, 
body.legal-page h3, 
body.legal-page h4, 
body.legal-page h5, 
body.legal-page h6 {
    color: #ffffff !important;
}

body.legal-page.dark-mode h1, 
body.legal-page.dark-mode h2, 
body.legal-page.dark-mode h3, 
body.legal-page.dark-mode h4, 
body.legal-page.dark-mode h5, 
body.legal-page.dark-mode h6 {
    color: #ffffff !important;
}

body.legal-page.light-mode h1, 
body.legal-page.light-mode h2, 
body.legal-page.light-mode h3, 
body.legal-page.light-mode h4, 
body.legal-page.light-mode h5, 
body.legal-page.light-mode h6 {
    color: #212121 !important;
}