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

:root {
    /* Colors (Dark Theme - Default) */
    --bg-primary: #0b0f19; /* Rich midnight instead of flat gray */
    --bg-secondary: #131a28;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #cd272a; /* DP Red/Accent */
    --accent-hover: #a81d20;
    --accent-light: #ff4b4b;
    --highlight: #177672; /* Secondary DP color */
    --highlight-light: #4fd1c5;
    --logo-filter: none;
    --navbar-bg-scrolled: rgba(18, 18, 18, 0.85);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing & Utilities */
    --section-padding: 100px 0;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    
    /* Hero Gradient Variables */
    --hero-overlay-start: rgba(11, 15, 25, 0.85);
    --hero-overlay-end: #0b0f19;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --text-primary: #121212;
    --text-secondary: #4a4a4a;
    --logo-filter: none;
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --hero-overlay-start: rgba(18, 18, 18, 0.65);
    --hero-overlay-end: #121212;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cursor-dot.hovered {
    transform: translate(-50%, -50%) scale(3);
    background-color: var(--highlight);
    mix-blend-mode: difference;
}

.cursor-outline.hovered {
    opacity: 0;
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-outline.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(205, 39, 42, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

.highlight {
    background: linear-gradient(90deg, var(--highlight-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.6));
    display: inline-block;
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.hero .btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.hero .btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Subpages dynamic logo */
.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Home page white logo */
.navbar-home .logo a {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.logo img {
    filter: var(--logo-filter);
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Subpages use dynamic text color */
.navbar:not(.scrolled) .nav-links a {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Home page forces white text on dark video */
.navbar-home:not(.scrolled) .nav-links a {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.navbar.scrolled .nav-links a {
    color: var(--text-primary);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-links a.btn {
    padding: 10px 20px;
}

.nav-links a.btn:hover {
    color: white;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--glass-bg);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3px;
    margin-left: 15px;
}

[data-theme="light"] .lang-switch {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-switch .lang-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.lang-switch .lang-btn:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .lang-switch .lang-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.lang-switch .lang-btn.active {
    opacity: 1 !important;
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(213, 35, 40, 0.3);
}

/* On transparent navbar in light mode, force white text/borders on dark hero */
.navbar-home:not(.scrolled) .lang-switch {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.navbar-home:not(.scrolled) .lang-switch .lang-btn {
    color: #ffffff !important;
    opacity: 0.6;
}
.navbar-home:not(.scrolled) .lang-switch .lang-btn.active {
    opacity: 1 !important;
    background: var(--accent) !important;
    color: #ffffff !important;
}

.lang-switch .lang-sep {
    display: none;
}


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    overflow: hidden;
    background-color: #121212; /* FORCE dark background so image overlay darkens */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-new.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 0;
    opacity: 0.9;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    color: #ffffff !important;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
    text-align: left;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Projects */
.projects-grid {
    display: none; /* old grid */
}

.projects .container {
    max-width: 1600px; /* Make project slider wider on large screens */
}

/* Swiper Slider Styles */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px; /* Space for pagination */
    overflow: visible;
}
.swiper-slide {
    height: auto; /* Let card determine height */
    opacity: 0.5;
    transition: all 0.5s ease;
    transform: scale(0.9);
}
.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.swiper-pagination-bullet {
    background: var(--text-secondary);
}
.swiper-pagination-bullet-active {
    background: var(--accent);
}

.project-card {
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border);
}

.project-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--highlight);
}

/* Project Detail Layout */
.project-tech {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    background: rgba(205, 39, 42, 0.1);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--highlight);
}

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

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info, .contact-form {
    padding: 40px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

/* Partner Logos Marquee */
.partner-logo {
    height: 45px;
    width: auto;
    margin: 0 50px;
    filter: grayscale(100%) invert(1) brightness(3) opacity(0.8);
    mix-blend-mode: screen;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) invert(1) brightness(3) opacity(1);
    mix-blend-mode: screen;
}

[data-theme="light"] .partner-logo {
    filter: grayscale(100%) contrast(1.5) opacity(0.8);
    mix-blend-mode: multiply;
}

[data-theme="light"] .partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    mix-blend-mode: multiply;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Legal Pages Content Spacing */
.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--highlight);
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.legal-content h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.legal-content p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--highlight);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--glass-bg);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--highlight);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none; /* simple mobile menu hidden for now */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}
    
/* Contact Section Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info ul li {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer Redesign */
.site-footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

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

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Editorial / Magazine Layout */
.editorial-section {
    padding: 100px 0;
    position: relative;
    overflow-x: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reversed {
    direction: rtl;
}

.split-layout.reversed > * {
    direction: ltr;
}

.project-bottom-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 60px;
    margin-bottom: 60px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pull-quote {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    color: var(--highlight);
    margin: 80px auto;
    max-width: 800px;
    position: relative;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 6rem;
    color: var(--glass-border);
    z-index: -1;
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .pull-quote {
        font-size: 1.8rem;
    }
    .project-bottom-image {
        height: auto;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/* Contact Section Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info ul li {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer Redesign */
.site-footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

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

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Infinite Marquee */
.marquee-container {
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    overflow: hidden;
    background: #000000 !important;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    white-space: nowrap;
}

[data-theme="light"] .marquee-container {
    background: #ffffff !important;
}

.marquee-content {
    display: flex;
    animation: scroll-marquee 20s linear infinite;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding: 0 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.marquee-item i {
    color: var(--accent);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Showreel Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Live Widget */
.live-widget {
    position: fixed;
    bottom: 30px;
    left: -400px; /* Hidden initially */
    width: 320px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9900;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
}

.live-widget.show {
    left: 30px;
}

.widget-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.widget-content {
    display: flex;
    flex-direction: column;
}

.widget-time {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.widget-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.widget-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.widget-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.widget-close:hover {
    color: #fff;
}

/* Custom Cursor Text */
.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.cursor-outline.view-project {
    width: 80px;
    height: 80px;
    background: rgba(205, 39, 42, 0.8) !important;
    border: none;
    mix-blend-mode: normal;
}

.cursor-outline.view-project .cursor-text {
    opacity: 1;
}

.cursor-dot.hidden {
    opacity: 0;
}


/* Masonry Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}
@media(max-width: 900px) {
    .masonry-gallery {
        column-count: 2;
    }
}
@media(max-width: 600px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* Project Hero */
.project-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}
.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    filter: blur(5px);
}
.project-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.project-title {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin: 0;
    text-transform: uppercase;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
    object-fit: contain;
}

@keyframes zoom {
    from {transform:scale(0.95); opacity:0}
    to {transform:scale(1); opacity:1}
}

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

.lightbox-close:hover {
    color: var(--highlight);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 10000;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--highlight);
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 0px;
    margin-left: 15px;
}


/* Absolute Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}


/* Ensure Custom Cursor is always above Lightbox */
.cursor-dot { z-index: 2147483647 !important; }
.cursor-outline { z-index: 2147483646 !important; }


/* Fix Custom Cursor in Lightbox */
body.lightbox-active * {
    cursor: auto !important;
}

.live-status {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
    max-width: 350px;
    backdrop-filter: blur(15px);
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.live-status .status-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #ffffff;
}

.live-status .status-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

.live-status .status-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .live-status {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}


/* Fix shadow on highlight in light mode */
[data-theme="light"] .highlight {
    filter: none !important;
}

/* Fix shadow on highlight in light mode */
[data-theme="light"] .highlight {
    filter: none !important;
    -webkit-filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Remove text-shadows in light mode for readability */
[data-theme="light"] .navbar:not(.scrolled) .nav-links a,
[data-theme="light"] .logo a,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    text-shadow: none !important;
}

/* Grid Layout for Equipment */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.equipment-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.equipment-card-img-wrapper {
    height: 250px;
    background: rgba(255,255,255,0.02);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}
.equipment-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.equipment-card-icon {
    font-size: 6rem;
}

.equipment-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.equipment-card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--highlight);
    margin-bottom: 5px;
}
.equipment-card-subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.equipment-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}
.equipment-card-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 24px;
    border: 1px solid var(--highlight);
    color: var(--highlight);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.equipment-card-btn:hover {
    background: var(--highlight);
    color: #fff;
}

/* Service Hero Styles (Compact 35vh Height) */
.service-hero {
    position: relative;
    height: 35vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-primary);
    overflow: hidden;
    margin-top: 80px;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
    filter: blur(5px);
    pointer-events: none;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.service-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.service-desc {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.navbar-home:not(.scrolled) .theme-toggle {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Hero Subtitle Fix */
.hero-subtitle {
    animation-delay: 0.2s;
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 1200px;
    margin: 0 auto 40px;
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0,0,0,1);
    color: #eeeeee;
}
@media (min-width: 768px) {
    .hero-subtitle {
        white-space: nowrap;
    }
}

/* --- MOBILE UI FIXES (Added for Launch Polish) --- */
@media (max-width: 768px) {
    /* 1. Prevent heading overflow */
    h1, h2, h3, .hero-content h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    h2 {
        font-size: 2rem !important;
    }
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    /* 2. Center service cards perfectly on mobile */
    .service-card {
        text-align: center !important;
        /* padding: 24px !important; removed for image cards */
    }
    .service-card .icon, .service-icon {
        margin: 0 auto 20px auto !important;
        display: flex !important;
        justify-content: center;
    }
}
