/*
 * JSSEPL "Beast" UI Design System
 * Modern, Dark, Premium
 */

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #525252;

    --accent-primary: #D4AF37;
    /* Metallic Gold */
    --accent-secondary: #F4C430;
    /* Brighter Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);

    --success: #2ecc71;
    --error: #e74c3c;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --space-section: 8rem;
    --space-section-sm: 4rem;
    --section-padding: var(--space-section) 0;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Glow Effects */
    --glow: 0 0 20px var(--accent-glow);
}

[data-theme="light"] {
    /* Colors - Light Mode */
    --bg-primary: #f8f9fa;
    /* Light gray background */
    --bg-secondary: #ffffff;
    /* White cards */
    --bg-tertiary: #e9ecef;
    /* Slightly darker gray for inputs/borders */

    --text-primary: #212529;
    /* Dark text */
    --text-secondary: #495057;
    /* Medium gray text */
    --text-muted: #6c757d;
    /* Muted text */

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    /* Lighter border */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    --accent-glow: rgba(212, 175, 55, 0.15);
}

/* Light Mode Overrides */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-theme="light"] .section-title h2, [data-theme="light"] .section-title h1 {
    background: linear-gradient(to right, #212529, #495057);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle {
    color: #000;
}

/* Light Mode Visibility Overrides */
[data-theme="light"] .carousel-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.85) 100%);
}

[data-theme="light"] .hero-title {
    color: #000;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero-subtitle {
    color: #000;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .site-footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-heading {
    color: #000;
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
    color: #000;
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000;
}

[data-theme="light"] .mobile-menu {
    background: var(--bg-primary);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-close,
[data-theme="light"] .mobile-toggle {
    color: #000;
}

[data-theme="light"] .project-header {
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
}

[data-theme="light"] .hero-stat-icon {
    background: rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #000;
    text-shadow: none;
}

[data-theme="light"] .nav-link::after {
    box-shadow: none;
}

[data-theme="light"] .nav-link::after {
    box-shadow: none;
}

/* Contact Page Styles */
.contact-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    text-align: center;
}

[data-theme="light"] .contact-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.office-card {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.office-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.office-card h3 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.office-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.office-details p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 10px;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: clamp(1.25rem, 5vw, 3rem);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .contact-form,
[data-theme="light"] .office-card {
    border-color: rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title span {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-title h2, .section-title h1 {
    font-size: 3rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    text-align: center;
    /* Minimum touch target size for mobile accessibility */
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    height: 50px;
    /* Constrain height */
    padding: 5px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Dark Mode Logo - Smart Blend */
[data-theme="dark"] .logo,
body:not([data-theme="light"]) .logo {
    background: rgba(255, 255, 255, 0.95);
    mix-blend-mode: normal;
}

/* Light Mode Logo */
[data-theme="light"] .logo {
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Global Header Overrides for Content Pages */
body.content-page .site-header {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    backdrop-filter: none;
}

[data-theme="light"] body.content-page .site-header {
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-desktop {
    display: none;
}

@media (min-width: 900px) {
    .nav-desktop {
        display: flex;
        gap: 2.5rem;
    }
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px var(--accent-primary);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

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

.mobile-toggle,
.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

.mobile-menu-close {
    display: flex;
    margin-left: auto;
}

@media (min-width: 900px) {
    .mobile-toggle {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop') center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width); /* align with header/container edge */
    width: 100%;
    min-width: 0;
}

.hero-content > * {
    max-width: 800px; /* text measure */
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-title {
    text-wrap: balance;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-title span {
    display: block;
    text-wrap: balance;
    color: var(--accent-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

/* Stats Section */
.stats-section {
    padding: var(--space-section-sm) 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

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

/* Profile Section */
.profile-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    margin-top: -2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Services */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

/* Technical Consulting Introduction */
.technical-consulting-intro {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .technical-consulting-intro {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Service Provider Headline */
.services-headline {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-tertiary);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    group: hover;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Featured Projects */
.projects-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--card-shadow);
    group: hover;
}

.project-header {
    height: 100px;
    /* Simplified for now, could be image */
    background: linear-gradient(45deg, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-value {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--accent-primary);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--glow);
}

.project-body {
    padding: 3rem 2rem 2rem;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

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

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: #000;
    padding: var(--space-section-sm) 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 1001;
    padding: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    cursor: pointer;
    text-align: right;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Carousel Styles */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced opacity for more prominent images */
    background: radial-gradient(circle at 50% 50%, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.7) 100%);
    z-index: 2;
}

/* Ensure Hero Content is above carousel */
.hero-content {
    position: relative;
    z-index: 3;
}

/* Why Choose Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.why-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Clients and Partners */
.clients-grid,
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.client-item,
.partner-item {
    padding: 1rem 2rem;
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.client-item:hover,
.partner-item:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.partner-item {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    opacity: 0.8;
}

/* =========================================
   Bulletins & Post Styles (Migrated)
   ========================================= */
/* ponytail: empty legacy CMS opener used to swallow the mobile media queries below; closed here */

    /* Post View Styles */
    .post-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem 0;
    }

    .breadcrumbs {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .breadcrumbs a {
        color: var(--text-secondary);
        text-decoration: none;
    }

    .breadcrumbs a:hover {
        color: var(--accent-primary);
    }

    .post-header {
        margin-bottom: 2rem;
    }

    .post-meta {
        display: flex;
        gap: 1rem;
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 1rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .post-tag {
        background: var(--accent-primary);
        color: #000;
        padding: 0.2rem 0.8rem;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .post-title {
        font-size: 2.5rem;
        line-height: 1.2;
        color: #fff;
    }

    .post-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .post-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #e0e0e0;
    }

    .post-content p {
        margin-bottom: 1.5rem;
    }

    .post-content h2 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--accent-primary);
    }

    .post-content ul {
        list-style: disc;
        margin-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* =========================================
   Mobile Responsiveness (Global)
   ========================================= */
    @media (max-width: 900px) {
        :root {
            --space-section: 5rem;
            --space-section-sm: 3rem;
        }

        /* Layout */
        .container {
            padding: 0 5vw;
            max-width: 100%;
        }

        section {
            padding: var(--space-section) 0;
        }

        /* Hero */
        .hero {
            min-height: 100vh;
            padding: 120px 0 60px;
            width: 100vw;
            overflow-x: clip;
        }

        .hero-content {
            text-align: center;
            padding: 0 5vw;
            max-width: 100%;
            width: 100%;
            min-width: 0;
            overflow: hidden;
        }

        .hero-stats {
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
        }

        .hero-title {
            font-size: clamp(1.5rem, 7vw, 2.4rem) !important;
            line-height: 1.3;
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-word;
            margin-bottom: 1rem;
            padding: 0;
            max-width: 100%;
            hyphens: auto;
            -webkit-hyphens: auto;
        }

        .hero-title span {
            display: inline;
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .hero-title br {
            display: block;
        }

        .hero-subtitle {
            font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
            line-height: 1.6;
            margin-bottom: 2rem;
            padding: 0;
            max-width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* Typography */
        h1 {
            font-size: 1.8rem !important;
            line-height: 1.3 !important;
        }

        h2 {
            font-size: 1.5rem !important;
            line-height: 1.4 !important;
        }

        h3 {
            font-size: 1.25rem !important;
        }

        p {
            font-size: 0.95rem !important;
            line-height: 1.6 !important;
        }

        /* Buttons on Mobile */
        .btn {
            width: 100%;
            max-width: 100%;
            text-align: center;
            justify-content: center;
            padding: 1rem 1.5rem !important;
            font-size: 0.9rem !important;
            display: inline-flex;
            align-items: center;
            min-height: 48px;
            min-width: 0;
            box-sizing: border-box;
        }

        /* Hero Actions on Mobile */
        .hero-actions {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            max-width: 100% !important;
            gap: 1rem !important;
            margin-top: 1.5rem;
            padding: 0;
            min-width: 0;
        }

        .hero-actions .btn {
            width: 100% !important;
            max-width: 100% !important;
            text-align: center;
            display: flex !important;
            margin: 0 !important;
            box-sizing: border-box;
        }

        /* Stats */
        .hero-stat-item {
            width: 48%;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .hero-stat-item h3 {
            font-size: 1.8rem !important;
        }

        .hero-stat-item p {
            font-size: 0.85rem !important;
        }

        /* Bulletins Page */
        .bulletin-card {
            flex-direction: column;
            height: auto;
        }

        .bulletin-image {
            width: 100%;
            height: 200px;
        }

        .bulletin-content {
            width: 100%;
            padding: 1.5rem;
        }

        .bulletin-title {
            font-size: 1.25rem !important;
        }

        .bulletin-excerpt {
            font-size: 0.9rem !important;
        }

        /* Post Page */
        .post-title {
            font-size: 1.5rem !important;
            line-height: 1.3;
            padding: 0 0.5rem;
        }

        .post-meta {
            font-size: 0.85rem !important;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .post-image {
            height: auto;
            aspect-ratio: 16/9;
        }

        .post-content {
            font-size: 1rem !important;
            line-height: 1.7 !important;
        }

        /* Services Grid */
        .services-grid {
            grid-template-columns: 1fr !important;
            gap: 1.5rem;
        }

        /* Technical Consulting Intro Mobile */
        .technical-consulting-intro {
            padding: 1.5rem;
            font-size: 0.95rem !important;
            margin: 0 auto 2rem !important;
        }

        .technical-consulting-intro p {
            font-size: 0.95rem !important;
        }

        .services-headline {
            font-size: 1rem !important;
            margin-bottom: 2rem !important;
            padding: 0 1rem;
        }

        /* Projects Grid */
        .projects-grid {
            grid-template-columns: 1fr !important;
            gap: 1.5rem;
        }

        /* Contact Page */
        .contact-grid {
            grid-template-columns: 1fr !important;
        }

        /* Header on Mobile */
        .site-header {
            padding: 1rem 0;
        }

        .logo img {
            max-height: 40px;
        }

        /* Mobile Menu */

    }

    @media (max-width: 480px) {
        /* Small Mobile - Extra Fine Tuning */

        .container {
            padding: 0 4vw;
        }

        .hero {
            min-height: 100vh;
            padding: 100px 0 60px;
            overflow-x: clip;
        }

        .hero-content {
            padding: 0 4vw;
            width: 100%;
            min-width: 0;
        }

        .hero-title {
            line-height: 1.25;
            margin-bottom: 0.75rem;
            padding: 0;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .hero-title span {
            display: inline;
            word-break: break-word;
        }

        .hero-subtitle {
            font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
            margin-bottom: 1.5rem;
            max-width: 100%;
            padding: 0;
        }

        .hero-stats {
            gap: 0.75rem;
        }

        .hero-stat-item {
            width: 100%;
            padding: 1rem;
        }

        .hero-stat-item h3 {
            font-size: 1.5rem !important;
        }

        .btn {
            width: 100%;
            max-width: 100%;
            text-align: center;
            justify-content: center;
            padding: 1rem 1.25rem !important;
            font-size: 0.85rem !important;
            box-sizing: border-box;
        }

        .hero-actions {
            width: 100%;
            padding: 0;
        }

        .hero-actions .btn {
            padding: 1rem 1.25rem !important;
            width: 100%;
        }

        /* Typography - Small Screens */
        h1 {
            font-size: 1.75rem !important;
        }

        h2 {
            font-size: 1.35rem !important;
        }

        h3 {
            font-size: 1.15rem !important;
        }

        p {
            font-size: 0.9rem !important;
        }

        /* Post Page Mobile */
        .post-title {
            font-size: 1.35rem !important;
        }

        .post-meta {
            font-size: 0.8rem !important;
        }

        /* Bulletin Cards */
        .bulletin-title {
            font-size: 1.15rem !important;
        }

        .bulletin-excerpt {
            font-size: 0.85rem !important;
        }

        .clients-grid,
        .partners-grid {
            gap: 0.75rem;
        }

        .client-item,
        .partner-item {
            padding: 0.5rem 1rem;
            font-size: 0.75rem;
        }

        /* Footer on Mobile */
        .footer-grid {
            grid-template-columns: 1fr !important;
            gap: 2rem;
        }

        .footer-heading {
            font-size: 1.1rem !important;
        }

        /* Theme Toggle on Mobile */
        .theme-toggle {
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
            font-size: 1rem;
        }
    }

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--accent-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-primary);
}

[data-theme="light"] .theme-toggle {
    background: #fff;
    color: #000;
    border-color: #000;
}

/* Clients Marquee */
.marquee-container {
    overflow: hidden;
    padding: var(--space-section-sm) 0;
    position: relative;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item span {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--text-primary);
}

.marquee-item:hover {
    opacity: 1;
}

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

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

/* Light Mode Marquee */
[data-theme="light"] .marquee-container {
    background: var(--bg-primary);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Extra Small Devices (< 375px) */
@media (max-width: 374px) {
    .hero {
        overflow-x: clip;
        width: 100vw;
    }

    .hero-content {
        padding: 0 4vw;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .hero-title {
        line-height: 1.25;
        letter-spacing: -0.5px;
        padding: 0;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .hero-title span {
        font-size: inherit !important;
        word-break: break-word;
        display: inline;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .container {
        padding: 0 4vw;
    }

    .btn {
        font-size: 0.85rem;
        padding: 1rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-actions {
        width: 100%;
        padding: 0;
    }
}

/* Small Mobile Devices (360px - 414px) - Common Phone Sizes */
@media (min-width: 360px) and (max-width: 414px) {
    .hero {
        overflow-x: clip;
        width: 100vw;
    }

    .hero-title {
        line-height: 1.3;
        padding: 0;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .hero-title span {
        display: inline;
        word-break: break-word;
        font-size: inherit !important;
    }

    .hero-content {
        padding: 0 5vw;
        overflow: hidden;
        width: 100%;
        min-width: 0;
    }

    .container {
        padding: 0 5vw;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-actions {
        width: 100%;
        padding: 0;
    }
}