/* CSS Variables & Reset */
:root {
    --primary-color: #0F172A;
    /* Dark Blue */
    --primary-light: #1E293B;
    --secondary-color: #F97316;
    /* Orange */
    --secondary-hover: #EA580C;
    --text-color: #334155;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--secondary-color), #FDBA74);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.badge {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-large {
    font-size: 1.1rem;
    padding: 16px 32px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .btn-primary {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #CBD5E1;
    max-width: 600px;
}

/* Services Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.service-category {
    margin-bottom: 6rem;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.service-category.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
    overflow: hidden;
    /* Removed box-shadow here to let images have it if needed, or keep it on container */
    box-shadow: none;
}

.service-image img {
    width: 100%;
    height: 100%;
    /* Fallback */
    flex: 1;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.5s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-image:hover img:hover {
    transform: scale(1.03);
}

.service-category h3 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 1rem;
}

.service-category h3 i {
    color: var(--secondary-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.4);
}

.card h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card p {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Why Choose Us */
.why-us {
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden;
}

.why-us-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.why-us h2 {
    color: var(--white);
}

.why-us p {
    color: #94A3B8;
}

.features-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-us-image {
    flex: 0 0 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    display: none;
    /* Hidden on small screens by default, shown in media query */
}

@media (min-width: 1024px) {
    .why-us-image {
        display: block;
    }
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info>p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #F8FAFC;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background-color: var(--white);
}

.contact-form button {
    grid-column: 1 / -1;
    margin-top: 1rem;
    border: none;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: #020617;
    color: #94A3B8;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    .service-category,
    .service-category.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .service-image {
        width: 100%;
        max-height: 400px;
    }

    .why-us-container {
        flex-direction: column;
    }

    .why-us-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Dynamic Form Fields */
.service-fields {
    display: contents;
}