:root {
    --primary-orange: #FF6B00;
    --primary-orange-light: #FF8533;
    --primary-orange-dark: #E65C00;
    --dark-bg: #050505;
    --dark-panel: rgba(20, 20, 20, 0.4);
    --dark-card: rgba(30, 30, 30, 0.6);
    --text-main: #D0D0D0;
    --text-muted: #A0A0A0;

    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-orange: rgba(255, 107, 0, 0.2);
}

/* EU Logo Bar */
.eu-logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--glass-border);
}

.eu-logo-bar img {
    height: 120px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .eu-logo-bar {
        gap: 30px;
        padding: 25px;
    }

    .eu-logo-bar img {
        height: 50px;
    }
}

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

html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

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

.bg-orb {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(0, 0, 0, 0) 60%);
}

.orb-2 {
    top: 30%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, rgba(0, 0, 0, 0) 60%);
}

.glass-panel {
    background: var(--dark-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-badge {
    background: rgba(255, 107, 0, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.6) 0%, rgba(15, 15, 15, 0.4) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-orange);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-top: 1px solid rgba(255, 107, 0, 0.6);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-dark));
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 107, 0, 0.5);
    color: var(--primary-orange);
    padding: 10px 24px;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.1);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 0;
}

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

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-orange), #C9302C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.logo-icon.small {
    width: 36px;
    height: 36px;
    font-size: 20px;
}

.brand-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

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

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--primary-orange);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
}

.hero {
    padding: 100px 0 40px;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 30px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.text-orange-gradient {
    background: linear-gradient(to right, #FF8C00, #FF3300);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    overflow-wrap: break-word;
}

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

.services {
    padding: 60px 0;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 0 auto;
    border-radius: 4px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--glass-border-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-orange);
    margin-bottom: 24px;
}

.glass-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.glass-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
    overflow-wrap: break-word;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link i {
    transition: transform 0.3s ease;
}

.glass-card:hover .card-link i {
    transform: translateX(4px);
}

.eu-project {
    padding: 60px 0 100px;
}

.eu-card {
    border-radius: 24px;
    padding: 40px;
    border-left: 4px solid #3B82F6;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
}

@media (min-width: 768px) {
    .eu-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 50px;
    }
}

.eu-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.text-blue {
    color: #60A5FA;
    font-size: 28px;
}

.eu-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.eu-content p {
    color: var(--text-muted);
    max-width: 700px;
}

.footer {
    padding: 40px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    margin: 15px 0;
}

.socials {
    display: none;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
}

.social-btn:hover {
    color: var(--text-main);
    border-color: var(--primary-orange);
}

.footer h4 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-orange);
    font-size: 20px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
        padding: 0 20px;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 101;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 1.05rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .eu-card {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 20px auto;
    }

    .socials {
        justify-content: center;
    }

    .nav-links.active .nav-item {
        font-size: 1.5rem;
        color: var(--text-main);
        font-weight: 600;
        width: 100%;
        text-align: center;
    }

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

body.menu-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }

    .glass-card {
        padding: 24px 16px;
    }

    .card-video {
        width: calc(100% + 32px);
        margin: -24px -16px 20px -16px;
        height: 180px;
    }
}

/* Subpage Specific Styles */
.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 400px);
}

.page-header {
    padding: 60px 0 30px;
}

.content-section {
    padding: 20px 0 60px;
}

.content-box {
    border-radius: 24px;
    padding: 40px;
}

@media (min-width: 768px) {
    .content-box {
        padding: 50px;
    }
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
}

.secondary-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.feature-list i {
    font-size: 24px;
    margin-top: 2px;
}

/* Utilities */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.text-orange {
    color: var(--primary-orange);
}

.text-white {
    color: var(--text-main);
}

.text-xl {
    font-size: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.font-medium {
    font-weight: 500;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-60 {
    opacity: 0.6;
}

.d-block {
    display: block;
}

.gradient-text {
    background: linear-gradient(to right, #FF8C00, #FF3300);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* EU Project Special Styles */
.eu-project-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.border-top-glass {
    border-top: 1px solid var(--glass-border);
}

.eu-grid-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .eu-grid-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-images {
        grid-template-columns: 1fr 1fr;
    }
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-img {
    border-radius: 8px;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.bg-white {
    background-color: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
}

.stats-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number .unit {
    color: var(--primary-orange);
    font-size: 0.7em;
    font-weight: 500;
    margin-left: 5px;
}

.stat-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    word-break: break-word;
}

.stat-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.stat-divider .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.stat-divider .icon-box {
    color: var(--primary-orange);
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }

    .stat-desc {
        font-size: 1rem;
    }
}

/* Render Video Styles */
.render-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.render-video {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .render-container {
        border-radius: 16px;
        margin-top: 30px;
    }
}

/* Card Video Styles */
.card-video {
    width: calc(100% + 64px);
    margin: -32px -32px 24px -32px;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    /* Ensure hardware acceleration for the clipping */
    mask-image: -webkit-radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.glass-card:hover .card-video video {
    transform: scale(1.05);
}

/* Contact Section Styles */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--primary-orange);
}

.contact-item p {
    color: var(--text-main);
    font-size: 1rem;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--primary-orange);
}

.map-container {
    height: 450px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}


.card-icon.small {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin-bottom: 0;
}