/* 
  DC Solutions - Premium Corporate Styles 
  Design System: Deep Navy, Metallic Gold, Bronze, White
  Fonts: Outfit (Headers), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Palette */
    scroll-padding-top: 90px;
    --color-primary: #0a192f;
    /* Deep Navy */
    --color-primary-light: #112240;
    /* Lighter Navy */
    --color-secondary: #cfb53b;
    /* Metallic Gold */
    --color-accent: #cd7f32;
    /* Bronze Accent */
    --color-text-main: #e6f1ff;
    /* Off-white for dark bg */
    --color-text-muted: #8892b0;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gold {
    color: var(--color-secondary);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #e5c94d;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(207, 181, 59, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem var(--spacing-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

/* Placeholder for video/image background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.5)), url('main_picture.jpeg') center/cover no-repeat;
    z-index: -1;
    /* animation: bgZoom 20s infinite alternate; */
}



.hero-content {
    max-width: 800px;
    padding: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(45deg, var(--color-white), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--color-primary);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-subtitle {
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: var(--color-primary-light);
    padding: var(--spacing-md);
    border-radius: 4px;
    /* Slight rounding but mostly sharp for industrial feel */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--color-secondary);
    transition: height 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(17, 34, 64, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    height: 100%;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* About / Innovation */
.about {
    background: var(--color-primary-light);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: center;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-content {
    padding: var(--spacing-md);
}

/* Footer */
footer {
    background-color: #020c1b;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-text-muted);
}

.valid-message {
    font-size: 0.8rem;
    margin-top: 2rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Evolution Crossfade */
.evolution-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
}

.evolution-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.evolution-images {
    position: relative;
    width: 100%;
    /* Aspect ratio for the container to prevent collapse (4:3) */
    padding-bottom: 75%;
}

.evolution-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.img-after {
    z-index: 1;
    /* Bottom layer */
}

.img-before {
    z-index: 2;
    /* Top layer */
    opacity: 1;
}

/* The Magic: Hover triggers fade */
.evolution-card:hover .img-before {
    opacity: 0;
}

/* Labels */
.evolution-labels {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    pointer-events: none;
    /* Let clicks pass through labels */
}

.evolution-labels span {
    background: rgba(10, 25, 47, 0.85);
    color: var(--color-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
    border: 1px solid rgba(207, 181, 59, 0.3);
}

.evolution-card:hover .label-left {
    transform: translateX(-10px);
    opacity: 0.5;
}

.evolution-card:hover .label-right {
    transform: translateX(10px);
    color: var(--color-primary);
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(207, 181, 59, 0.4);
}

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

.project-item {
    position: relative;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.project-overlay p {
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 1001;
}

.partner-btn {
    display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .partner-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .grid,
    .about-grid,
    .portfolio-grid,
    .contact-wrapper {
        grid-template-columns: 1fr !important;
    }

    .hero-content {
        padding-top: 6rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: var(--color-secondary);
        color: var(--color-primary);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        text-decoration: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .back-to-top.active-scroll {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background-color: var(--color-white);
        transform: translateY(-5px);
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-secondary);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Make images clickable */
.project-item img {
    cursor: pointer;
    transition: 0.3s;
}

.project-item img:hover {
    opacity: 0.9;
}