/* css/global.css */
/* ... (Your complete CSS from the previous step goes here) ... */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #000;
    color: #ccc;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-links a:hover {
    color: #fff;
}

/* Splash Section */
.splash {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff; /* Change to black to match your theme */
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.splash-image {
    flex: 1;
    min-height: 50vh;
    position: relative;
    background-color: #333;
}

.splash-image .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.splash-image .slide.active {
    opacity: 1;
}

.splash-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.splash-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    background-color: #ffffff; /* Ensure background is black */
}

.splash h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    text-shadow: 0 0px 0px rgba(0, 0, 0, 0.5);
}

.splash p {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 1rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block; /* Change from block to inline-block */
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #333, #555);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #555;
    text-align: center; /* Ensure text is centered within the button */
    max-width: fit-content; /* Ensure the button only takes the width of its content */
}

.cta-button:hover {
    background: linear-gradient(45deg, #555, #777);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: 5rem 0;
    border-bottom: 1px solid #222;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
}

/* Portfolio Section */
.portfolio-section {
    background: #111;
}

.tag-controls {
    text-align: center;
    margin-bottom: 3rem;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tag-button {
    padding: 0.5rem 1rem;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.tag-button:hover {
    background: #333;
    color: #fff;
}

.tag-button.active {
    background: #555;
    color: #fff;
    border-color: #777;
}

.clear-filters {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.clear-filters:hover {
    background: #444;
    color: #fff;
}


/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem;
}

.content-card:hover {
    border-color: #555;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.content-card p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.card-tag {
    background: #333;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Updated Services Section */
.services {
    background: #0a0a0a;
    padding: 5rem 0;
}

.services h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-image-box {
    position: sticky;
    top: 30vh;
    height: 35vh;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transform: scale(1.05);
}

.service-image.active {
    opacity: 1;
    transform: scale(1);
}

.services-list {
    padding: 2rem 0;
}

.service-item {
    padding: 3rem 0;
    border-bottom: 1px solid #222;
    transition: opacity 0.4s ease;
    opacity: 0.5;
    min-height: 300px;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item.active {
    opacity: 1;
}

.service-item h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-item.active h3 {
    color: #fff;
}

.service-item p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.7;
    max-width: 500px;
}

/* About Section */
.about {
    background: #0a0a0a;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.about p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.about-image-container {
    text-align: center;
}
.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
}
.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}
.social-links a:hover {
    transform: translateY(-3px);
}
.social-links img {
    height: 40px;
    width: auto;
}

/* Partner Banner */
.partners-banner {
    background: #111;
    padding: 3rem 0;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.partners-scroll {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 4rem;
    align-items: center;
}

.partner-link {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.partner-link:hover {
    opacity: 1;
}

.partner-logo {
    height: 100%;
}

.partner-logo img {
    height: 100%;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
}

.partner-link:hover .partner-logo img {
    filter: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact {
    background: #111;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.contact-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #333, #555);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #555, #777);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials-section h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}
.testimonial-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.testimonial-card p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 1rem;
}
.testimonial-author {
    font-weight: 600;
    color: #fff;
    text-align: right;
}

/* Footer */
footer {
    background: #000;
    border-top: 1px solid #222;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.1rem;
}


.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-image-box {
        position: relative;
        top: auto;
        transform: none;
        height: 300px;
        width: 100%;
        margin-bottom: 2rem;
    }

    .about-container, .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 350px;
        margin: 2rem auto 0;
    }
}

@media (min-width: 769px) {
    .splash {
        flex-direction: row;
    }
    
    .splash-image,
    .splash-content {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .splash {
        flex-direction: column;
    }

    .splash-content {
        padding: 2rem;
    }

    .splash-image {
        order: -1; /* This ensures the image is always on top on mobile */
    }

    .splash h1 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .service-item h3 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section ul {
        padding-left: 0;
    }
}

.project-gallery {
    background: #111;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #333;
}

.project-navigation {
    padding: 3rem 0;
    background: #0a0a0a;
}

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

.project-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-navigation a:hover {
    background: #222;
    border-color: #666;
}
