/* Base Variables and Resets */
:root {
    --orange: #ff5a00;
    --orange-hover: #e04e00;
    --bg-color: #1a2028;
    /* Deep slate blue/grey matching the image */
    --text-white: #ffffff;
    --text-gray: #cbd5e1;
    --btn-dark: #232c38;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Background Layers */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Foggy dark pine trees fitting the vibe */
    background-image: url('https://images.unsplash.com/photo-1542407559-0f40cf1d0f5c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center right;
    z-index: -2;
    opacity: 0.55;
    /* Increased opacity to reveal the aesthetic background trees */
}

.hero-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fades from solid dark on left to transparent on right revealing the trees */
    background: linear-gradient(to right, #1a2028 0%, #1a2028 40%, rgba(26, 32, 40, 0.6) 70%, rgba(26, 32, 40, 0) 100%);
    z-index: -1;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    padding: 24px 0;
    position: sticky;
    /* Fixes it in one place continuously! */
    top: 0;
    z-index: 9999;
    /* Always above all other content */
    background-color: #f3f4f6;
    /* Solid light-gray background */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle structure */
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 16px 0;
    /* Shrinks slightly on scroll */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Adds shadow when scrolling away from top */
    border-bottom: 1px solid transparent;
}

.header-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo-icon {
    background-color: var(--orange);
    color: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 20px;
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.2px;
    color: #0f172a;
    /* Dark text for light background */
}

.logo-text span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 40px;
    margin-right: 40px;
}

.nav-links a {
    color: #475569;
    /* Slate gray text for navigation links */
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--orange);
}

.btn-header {
    background-color: var(--orange);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.btn-header:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: flex-start;
    /* Removed center constraint to prevent the text from drifting too low */
    padding-top: 80px;
    /* Locked-in distance exactly equal to the reference gap */
    padding-bottom: 50px;
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    max-width: 550px;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* faint border */
}

/* Specific Badge match */
.badge {
    display: inline-block;
    border: 1px solid rgba(255, 90, 0, 0.4);
    background: rgba(255, 90, 0, 0.1);
    color: var(--orange);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    /* Slightly more readable */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    /* Tighter grouping with the main title below */
}

/* Title matching precisely */
.hero-title {
    font-size: 84px;
    font-weight: 900;
    line-height: 1.05;
    /* Pulled lines tighter together exactly matching reference */
    margin-bottom: 24px;
    letter-spacing: -2px;
    /* Denser character tracking */
    color: var(--text-white);
}

.hero-title .highlight {
    color: var(--orange);
    font-style: italic;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 45px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: 12px;
    /* Smoothed rectangular button */
    font-weight: 700;
    font-size: 16px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--orange);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(255, 90, 0, 0.35);
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    box-shadow: 0 10px 30px rgba(255, 90, 0, 0.45);
}

.btn-secondary {
    background-color: var(--btn-dark);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* faint border */
}

.btn-secondary:hover {
    background-color: #2a3542;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Essential Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image-wrapper {
        margin-top: 40px;
        max-width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 64px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Modify gradient on mobile for better text legibility over full bg */
    .hero-gradient {
        background: linear-gradient(to top, #1a2028 20%, rgba(26, 32, 40, 0.85) 60%, rgba(26, 32, 40, 0.95) 100%);
    }

    .hero-bg {
        background-position: center;
    }
}

/* Layout & Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-header h2 span {
    color: var(--orange);
    font-style: italic;
    font-weight: 900;
}

.section-header p {
    color: var(--text-gray);
    font-size: 18px;
    max-width: 600px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--btn-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 90, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 90, 0, 0.1);
    color: var(--orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About / CTA */
.about-section {
    background-color: #151a21;
    /* Slightly darker to separate sections */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-text h2 span {
    color: var(--orange);
    font-style: italic;
    font-weight: 900;
}

.about-text p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--btn-dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
    color: var(--orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.7;
}

.client-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-white);
}

/* Contact */
.contact-section {
    background-color: #151a21;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    background-color: var(--btn-dark);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--orange);
    font-style: italic;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-gray);
}

.contact-list i {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 90, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
}

/* Responsive updates for new sections */
@media (max-width: 1024px) {
    .contact-wrapper {
        padding: 40px;
        gap: 40px;
    }
}

@media (max-width: 992px) {

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 36px;
    }

    .contact-wrapper {
        padding: 30px;
    }
}