/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a2351;
    /* Deep Blue */
    --secondary-color: #fca311;
    /* Gold/Yellow Accent */
    --background-color: #ffffff;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e8920a;
    transform: translateY(-3px);
}


/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;

}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 25%;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- Hero Section --- */
#hero {
    height: 50vh;
    background: linear-gradient(rgb(2, 14, 117), rgb(23, 24, 34)), url() no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 70px;
    /* Offset for header */
}


.hero-content {
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #f1e209;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: burlywood max-width: 600px;
    margin: 0 auto 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- About Section --- */
#about {
    background: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}


/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
}


/* --- Projects Section --- */
#projects {
    background: var(--light-gray);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.project-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.project-item img,
.project-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item:hover img,
.project-item:hover video {
    transform: scale(1.1);
}




/* Container hides overflow */
.scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: #f9f9f9;
    /* optional background */
    padding: 20px 0;
}

/* Track for scrolling */
.project-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

/* Pause animation on hover */
.scroll-container:hover .project-track {
    animation-play-state: paused;
}

/* Each image */
.project-item img {
    height: auto;
    width: auto;
    max-height: 400px;
    /* adjust if needed */
    display: block;
}

/* Smooth infinite scroll */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}



/* --- Contact Section --- */
.contact-details {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.container p {
    text-align: center;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
    justify-content: center;

}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    margin-left: 30%;
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* --- Animations & Responsiveness --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
    }
}


@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .menu-btn {
        display: block;
    }

    .project-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 250px);
    }
}