/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #858585;
    font-size: clamp(16px, 2.5vw, 18px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 20px);
    width: 100%;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    background: linear-gradient(to bottom, #000000, #f97316);
    color: #fff;
    padding: clamp(10px, 2vw, 15px) 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: bold;
}

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    background: #fff;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fed7aa;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(237, 237, 237, 0.6), rgba(107, 107, 107, 0.3)), url('../images/DallasFinal.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: clamp(250px, 40vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}


.hero-content {
    background: rgba(0, 0, 0, 0);
    padding: clamp(5px, 2vw, 20px);
    border-radius: 8px;
    max-width: 90%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    display: block;
    margin: 0 auto 15px;
    max-width: 100%;
    width: clamp(50px, 20vw, 150px);
    height: auto;
    object-fit: contain;
    border-radius: 25%;
    border: 3px solid #f97316;
    opacity: 0.85;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 15px;
}

.cta-button {
    background-color: #f97316;
    color: #fff;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: background-color 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #ea580c;
}

/* Content Section */
.content {
    padding: clamp(40px, 8vh, 60px) clamp(10px, 3vw, 20px);
    text-align: center;
}

.content h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #f97316;
    margin-bottom: 20px;
}

.content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 65vw, 550px), 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin-top: 20px;
}

.grid-item {
    background: #fff;
    padding: clamp(15px, 3vw, 20px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid-item h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: #f97316;
    margin-bottom: 10px;
}

.project-img {
    width: 100%;
    height: clamp(200px, 45vw, 500px); /* Increased from 120px, 25vw, 150px */
    object-fit: cover;
    border-radius: 8px;
    border-color: #f97316;
    margin-bottom: 10px;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: clamp(15px, 3vw, 20px);
    padding: 10px;
    scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.carousel-item {
    flex: 0 0 clamp(250px, 80vw, 400px);
    scroll-snap-align: start;
    background: #fff;
    padding: clamp(15px, 3vw, 20px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.carousel-item img {
    width: 100%;
    height: clamp(150px, 30vw, 200px);
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(249, 115, 22, 0.8);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: #ea580c;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Contact Form */
.contact-form {
    max-width: clamp(300px, 80vw, 500px);
    margin: 0 auto;
    background: #fff;
    padding: clamp(15px, 3vw, 20px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 5px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: clamp(8px, 2vw, 10px);
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 5px rgba(249, 115, 22, 0.3);
}

.contact-form .cta-button {
    width: 100%;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(to top, #000000, #f97316);
    color: #fff;
    padding: clamp(15px, 3vw, 20px) 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar .container {
        flex-direction: row;
        gap: 10px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        height: clamp(200px, 35vh, 300px);
    }

    .hero-content {
        padding: 0;
    }

    .hero h1,
    .hero p,
    .cta-button {
        display: none;
    }

    .hero-logo {
        width: clamp(50px, 20vw, 150px);
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 45vw, 300px), 1fr));
    }

    .project-img {
        height: clamp(150px, 30vw, 250px);
    }

    .carousel-item {
        flex: 0 0 clamp(200px, 70vw, 350px);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(to bottom, #000000, #f97316);
        padding: 10px 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links li a {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }

    .hero-logo {
        width: clamp(40px, 18vw, 100px);
        height: auto;
        max-width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: clamp(120px, 30vw, 200px);
    }

    .content h2 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }

    .carousel-item {
        flex: 0 0 clamp(180px, 90vw, 300px);
    }

    .carousel-btn {
        padding: 8px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    .hero {
        height: clamp(150px, 30vh, 200px);
    }

    .hero-logo {
        width: clamp(30px, 15vw, 80px);
        height: auto;
        max-width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: clamp(100px, 30vw, 150px);
    }

    .content {
        padding: clamp(20px, 5vh, 30px) 10px;
    }

    .form-input {
        padding: 8px;
    }

    .carousel-item {
        flex: 0 0 clamp(160px, 85vw, 250px);
    }

    .carousel-btn {
        padding: 6px;
        font-size: 1rem;
    }
}