/* 1. Reset and Global Styles */
:root {
    --background-color: #0a0a0a;
    --text-color: #e1e1e1;
    --secondary-text-color: #8a8a8a;
    --border-color: #2a2a2a;
    --accent-color: #fff;
    --font-family-main: 'Satoshi', sans-serif;
    --font-family-heading: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* 2. Header and Navigation */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid transparent; /* Initially transparent */
    background-color: transparent;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a.active {
    color: var(--text-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.contact-btn {
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

/* 3. Main Content and Project Grid */
main {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.4s ease, transform 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: #444;
}

.card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #1a1a1a;
    overflow: hidden;
}

.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-media video {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-content p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* 4. Footer */
.site-footer-bottom {
    padding: 6rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h2 {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.footer-btn {
    display: inline-block;
    margin-bottom: 6rem;
}

.footer-links-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 6rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column a {
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-color);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* 5. Responsive Adjustments */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .footer-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for mobile, a full menu would need JS */
    }

    .main-nav {
        justify-content: space-between;
    }

    .footer-links-container {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* 6. Services Page Styles */
.hero-section {
    text-align: center;
    padding: 6rem 2rem;
}

.hero-section h1 {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
    padding: 6rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.service-section:nth-child(odd) {
    direction: rtl;
}

.service-section:nth-child(odd) .service-content {
    direction: ltr;
}

.service-content h2 {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-content p {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-content ul li {
    font-weight: 500;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #1a1a1a;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.industries-section {
    text-align: center;
    padding: 6rem 2rem;
}

.industries-section h2 {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.industries-section p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.industry-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .service-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
}
