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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Theme gradients using CSS variables */
:root {
    --bg1: #2c5530;
    --bg2: #4a7c59;
}
.theme-forest { --bg1:#2c5530; --bg2:#4a7c59; }
.theme-ocean { --bg1:#0f2027; --bg2:#2c5364; }
.theme-sunset { --bg1:#ee7752; --bg2:#e73c7e; }
.theme-dusk { --bg1:#141e30; --bg2:#243b55; }
.theme-charcoal { --bg1:#232526; --bg2:#414345; }
/* Additional theme variables and global overrides */
.theme-royal { --bg1:#141e30; --bg2:#4b6cb7; }
.theme-citrus { --bg1:#f7971e; --bg2:#ffd200; }
.theme-lavender { --bg1:#b993d6; --bg2:#8ca6db; }
.theme-fire { --bg1:#f83600; --bg2:#f9d423; }
.theme-slate { --bg1:#485563; --bg2:#29323c; }

/* Variable defaults and theme palettes */
:root {
    --primary: #2c5530;
    --secondary: #4a7c59;
    --accent: #b8c5ba;
    --text: #333;
}
.theme-forest{ --primary:#2c5530; --secondary:#4a7c59; --accent:#b8c5ba; --text:#1b1f1d; }
.theme-ocean{ --primary:#0f8ecf; --secondary:#2c5364; --accent:#b4d7e8; --text:#0e1a1f; }
.theme-sunset{ --primary:#e73c7e; --secondary:#ee7752; --accent:#ffd3c2; --text:#2b0a12; }
.theme-dusk{ --primary:#2d4d7a; --secondary:#141e30; --accent:#b9c7e6; --text:#0f1626; }
.theme-charcoal{ --primary:#2e2f30; --secondary:#585a5c; --accent:#bfc3c4; --text:#1a1a1a; }
.theme-royal{ --primary:#4b6cb7; --secondary:#182848; --accent:#c7d2fe; --text:#0c1222; }
.theme-citrus{ --primary:#e67e22; --secondary:#f1c40f; --accent:#fff3b0; --text:#3a2a00; }
.theme-lavender{ --primary:#8e44ad; --secondary:#8ca6db; --accent:#e8d7ff; --text:#24122e; }
.theme-fire{ --primary:#d35400; --secondary:#f9d423; --accent:#ffe3a3; --text:#2b1800; }
.theme-slate{ --primary:#3b4a59; --secondary:#29323c; --accent:#c7d0da; --text:#0f1419; }

/* Overrides mapping UI colors to variables */
body{ color: var(--text); }
.nav-logo h2{ color: var(--primary); }
.nav-link:hover{ color: var(--primary); }
.nav-link::after{ background: var(--primary); }
.btn-primary{ background: var(--primary); border-color: var(--primary); }
.btn-primary:hover{ background: rgba(0,0,0,0.05); filter: brightness(0.9); border-color: var(--primary); }
.btn-secondary{ color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover{ background: var(--primary); }
.hero-placeholder{ background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.section-header h2{ color: var(--primary); }
.service-icon{ background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.service-card h3{ color: var(--primary); }
.portfolio-overlay{ background: rgba(0,0,0,0.4); }
.portfolio-content h3{ color: var(--primary); }
.about-text h2{ color: var(--primary); }
.about-placeholder{ background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.testimonial-author h4{ color: var(--primary); }
.contact-item i{ background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.contact-item h4{ color: var(--primary); }
.footer{ background: var(--primary); }
.footer-bottom{ border-top: 1px solid var(--secondary); }

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

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link.cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-link.cta:hover {
    background: transparent;
    color: var(--primary);
}

/* Disable underline animation for CTA */
.nav-link.cta::after {
    content: none;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15));
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: color-mix(in oklab, var(--primary), #000 20%);
    border-color: color-mix(in oklab, var(--primary), #000 20%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px color-mix(in oklab, var(--primary), transparent 70%);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px color-mix(in oklab, var(--primary), transparent 70%);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.hero-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(44, 85, 48, 0.3);
}

.hero-placeholder i {
    font-size: 8rem;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

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

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

/* Services Section */
.services {
    background: white;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

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

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

/* Portfolio Section */
.portfolio {
    background: #f8f9fa;
}

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

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

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in oklab, var(--primary), rgba(0,0,0,0.2) 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-link {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.2);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    background: white;
}

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

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

.about-text p {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(44, 85, 48, 0.3);
}

.about-placeholder i {
    font-size: 8rem;
    color: white;
}

/* Testimonials Section */
.testimonials {
    background: #f8f9fa;
}

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

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

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
}

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

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

.footer-section p {
    color: #b8c5ba;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
    color: #b8c5ba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-link.cta {
        margin: .5rem auto 0;
        width: fit-content;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .hero-buttons {
        justify-content: center;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-placeholder,
    .about-placeholder {
        width: 300px;
        height: 300px;
    }

    .hero-placeholder i,
    .about-placeholder i {
        font-size: 6rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .hero-placeholder,
    .about-placeholder {
        width: 250px;
        height: 250px;
    }

    .hero-placeholder i,
    .about-placeholder i {
        font-size: 4rem;
    }
}
