:root {
    /* New 2025 Glassmorphism Palette */
    --bg-primary: #0a0a14;
    --text-primary: #eaf2ff;
    --text-secondary: rgba(234, 242, 255, 0.7);
    
    /* Gradient Colors */
    --gradient-start: #00d4ff;
    --gradient-mid: #0088ff;
    --gradient-end: #ad00ff;

    /* Glass & Glow - More Solid */
    --glass-bg: rgba(10, 10, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glow-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
    --glow-shadow-hover: 0 0 35px rgba(173, 0, 255, 0.5);
    --text-glow: 0 0 8px rgba(234, 242, 255, 0.5);
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --text-primary: #1c2a41;
    --text-secondary: rgba(28, 42, 65, 0.7);

    --gradient-start: #00aaff;
    --gradient-mid: #0066cc;
    --gradient-end: #8a00cc;

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.15);
    --glow-shadow: 0 0 20px rgba(0, 136, 255, 0.2);
    --glow-shadow-hover: 0 0 30px rgba(138, 0, 204, 0.3);
    --text-glow: 0 0 8px rgba(28, 42, 65, 0.3);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-primary);
    background-image: radial-gradient(at 0% 0%, hsla(195, 100%, 50%, 0.15) 0px, transparent 50%), 
                      radial-gradient(at 100% 100%, hsla(280, 100%, 50%, 0.15) 0px, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body[data-theme="light"] {
    background-image: none;
    background-color: var(--bg-primary);
}

/* --- Base Glass Component --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.05), var(--glow-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-effect:hover {
    box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.05), var(--glow-shadow-hover);
    transform: translateY(-4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.7);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    transition: transform 0.3s ease;
    height: 60px; /* Increased logo size */
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: var(--text-glow);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-center {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-center a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.4s ease, text-shadow 0.4s ease, scale 0.4s ease, filter 0.4s ease; /* Added transition */
    text-shadow: var(--text-glow);
}

.nav-center:has(a:hover) a:not(:hover) {
    scale: 0.8;
    filter: blur(2px);
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--text-primary);
    text-shadow: 0 0 12px var(--gradient-start);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme & Language Toggles */
.theme-toggle, .language-toggle {
    composes: glass-effect;
    padding: 4px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 80px;
    height: 44px;
}

.theme-option, .language-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.theme-option {
    filter: grayscale(1); /* Monochrome icons */
}

.language-option img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.language-toggle[data-active-lang="de"] .language-option[data-lang="de"] img,
.language-toggle[data-active-lang="en"] .language-option[data-lang="en"] img {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--gradient-mid);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centered */
    text-align: center; /* Centered */
    padding: 160px 5rem 100px;
    position: relative;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40% opacity overlay */
}

.mobile-video {
    display: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.25;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    /* Removed max-width to allow centering */
}

.gradient-text {
    background: linear-gradient(135deg, #8affff, #ff8aff); /* Brighter gradient colors */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 400;
    /* Removed max-width to allow centering */
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Centered */
    flex-wrap: wrap;
}

/* --- Redesigned Minimalist Glassmorphism Button Styles --- */
.hero-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 180px; /* Ensure consistent width */
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Both buttons are now identical and minimalist */
.hero-btn-primary,
.hero-btn-secondary {
    /* Styles are unified in .hero-btn */
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 30px;
}

.cyber-card {
    composes: glass-effect;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 1; /* Made images fully visible */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.cyber-card:hover .card-image img {
    transform: scale(1.05);
    filter: brightness(0.8); /* Darken image on hover */
}

.card-front-title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.card-front-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-shadow: var(--text-glow);
}

.card-content {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 4;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
}

.cyber-card:hover .card-content {
    opacity: 1;
    transform: translateY(0);
}

.cyber-card:hover .card-front-title {
    opacity: 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-shadow: var(--text-glow);
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 18px 0;
    line-height: 1.4;
}

.card-button {
    align-self: flex-start;
}

.card-button:hover {
    background: var(--gradient-start);
    border-color: var(--gradient-start);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--gradient-start);
}

/* Blog & Carousel */
.blog {
    padding: 5rem 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    composes: gradient-text;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.carousel-container {
    composes: glass-effect;
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    width: 100%; /* Each slide takes full width */
    flex-shrink: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 10, 20, 0.9));
    padding: 2rem;
    color: var(--text-primary);
}

[data-theme="light"] .slide-overlay {
    background: linear-gradient(transparent, rgba(240, 242, 245, 0.9));
}

.slide-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.slide-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.slide-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.slide-button {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
}

.nav-arrow:hover {
    background: var(--gradient-mid);
    box-shadow: 0 0 15px var(--gradient-mid);
}

.nav-arrow.prev { left: 1rem; }
.nav-arrow.next { right: 1rem; }

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 20, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--gradient-start);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gradient-start);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* General Section & Other Pages */
.section-padding { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    composes: gradient-text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* All cards on other pages */
.feature-card, .api-card, .overview-item, .use-case-card, .why-card, .approach-item, .story-card, .module-card, .standard-item, .what-we-do-item, .service-item, .optimization-item, .service-overview-card, .solution-card {
    composes: glass-effect;
}

.feature-card .card-content, .api-card .card-content, .overview-item .card-content, .use-case-card .card-content, .why-card .card-content, .approach-item .card-content, .story-card .card-content, .module-card .card-content, .standard-item .card-content, .what-we-do-item .card-content, .service-item .card-content, .optimization-item .card-content, .service-overview-card .card-content, .solution-card .card-content {
    opacity: 1;
    position: static;
    padding: 28px;
    background: transparent;
}

/* Contact Form */
.contact-form, .contact-info {
    composes: glass-effect;
    padding: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gradient-mid);
    box-shadow: 0 0 10px var(--gradient-mid);
}

.submit-btn {
    composes: hero-btn-primary;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-center {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 20, 0.9);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--glass-border);
    }

    .nav-center.active { display: flex; }
    .mobile-menu { display: block; order: 3; }
    .nav-controls { order: 2; margin-left: auto; margin-right: 1rem; }

    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 250px);
    }

    .hero {
        padding: 120px 2rem 100px;
        justify-content: center;
        text-align: center;
    }

    .hero-cta-buttons {
        justify-content: center;
    }

    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-cta-buttons { flex-direction: column; align-items: center; }
}