:root {
    --primary-color: #ff66c4;
    /* Pink Brand Color */
    --primary-dark: #e055ac;
    --bg-black: #000000;
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-card-hover: #2A2A2A;
    --text-color: #f5f5f5;
    /* Light text for dark background */
    --text-dark: #333;
    /* Dark text for light areas */
    --white: #ffffff;
    --font-header: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-black);
    /* Removed wood texture */
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

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

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

.text-white {
    color: var(--white);
}

.section-title {
    text-align: center;
    font-family: var(--font-header);
    font-size: 3rem;
    /* Increased size for Oswald */
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    /* Pink headers pop on wood */
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 196, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 102, 196, 0.1);
    /* Pink glow */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-links .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('assets/tree-care-hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    /* Offset for fixed nav */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for readability */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-black));
    z-index: 2;
    pointer-events: none;
}

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

.hero h1 {
    font-family: var(--font-header);
    font-size: 4.5rem;
    /* Bigger impact */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.text-cta {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.text-cta:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--bg-card);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    background: var(--bg-card-hover);
}

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

.service-card h3 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.specialties {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trust-item {
    text-align: center;
    color: var(--white);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.trust-item h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* About Section */
.about-container {
    max-width: 1200px;
    /* Increased to accommodate split layout */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-video {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-video video {
    width: 100%;
    max-width: 350px;
    /* Limit width for vertical video */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.founder-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    display: inline-block;
}

/* Service Area */
.area-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 30px;
    font-size: 1.2rem;
}

.area-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Gallery - Infinite Scroll */
.gallery {
    overflow: hidden;
    background: var(--bg-black);
}

.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Animation removed for JS control */
    will-change: transform;
    /* Optimize for JS movement */
}

/* @keyframes scroll removed */

.gallery-item {
    width: 300px;
    height: 400px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card cite {
    display: block;
    margin-top: 20px;
    font-weight: 700;
    font-style: normal;
    color: var(--primary-color);
    font-family: var(--font-header);
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--bg-black);
    color: var(--white);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

/* Footer */
footer {
    background: var(--bg-black);
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        text-align: center !important;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Staggered delays for grids */
.service-card.fade-in,
.trust-item.fade-in,
.testimonial-card.fade-in {
    transition-delay: 0.1s;
}

.service-card.fade-in:nth-child(2),
.trust-item.fade-in:nth-child(2),
.testimonial-card.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card.fade-in:nth-child(3),
.trust-item.fade-in:nth-child(3),
.testimonial-card.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card.fade-in:nth-child(4),
.trust-item.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card.fade-in:nth-child(6) {
    transition-delay: 0.6s;
}