﻿:root {
    --bg-color: #0f0f1a;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    /* Slightly increased opacity */
    --glass-border: rgba(227, 11, 14, 0.3);
    /* Reddish border for visibility */
    --primary-color: #e30b0e;
    --primary-gradient: linear-gradient(135deg, #e30b0e, #9a0709);
    --secondary-gradient: linear-gradient(135deg, #fc5130, #e30b0e);
    --font-main: 'Outfit', sans-serif;
}

body.intro-active header,
body.intro-active section,
body.intro-active footer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

header,
section,
footer {
    transition: opacity 1s ease, visibility 1s ease;
}

body,
html {
    font-family: var(--font-main);
    background-color: #000;
    /* Solid black base */
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Reset margin/padding specifically */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: transparent;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Moved further back */
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
}

#bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Above canvas, below site */
    pointer-events: none;
    overflow: hidden;
}

/* Dark red tint bg */


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility with 3D feel */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    /* Inner glow for volume */
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Language Switcher */
.lang-switch {
    margin-left: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    height: 60px;
    /* Match header height for centering */
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--primary-color);
    font-weight: 800;
}

/* Header - Floating Pill Design */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 60px;
    /* Fixed height to keep menu size constant */
    z-index: 100;
    padding: 0 25px 0 0;
    /* Reduced right padding to allow items to move closer to edge */
    border-radius: 0 0 25px 25px;
    /* Rounded bottom corners */
    transition: 0.3s;
    background: rgba(20, 0, 0, 0.75);
    border: 1px solid rgba(227, 11, 14, 0.4);
    border-top: none;
    /* Attached to top edge */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Removed hover movement to keep menu static */

/* Override glass class for header if needed or relying on explicit styles above */
/* The header has 'glass' class in HTML, but we are overriding its rect shape here */

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* Center all items vertically */
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 60px;
    margin-left: 40px;
    /* Forced gap from the logo */
}

.lang-switch {
    margin-left: 60px;
    /* Clear gap between KONTAKT and SK / EN */
    display: flex;
    align-items: center;
    gap: 6px;
    /* Keeping SK / EN close together */
    margin-right: 0;
}

.logo {
    margin: 0;
    display: flex;
    align-items: flex-start;
    /* Keeping logo flush with top */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.logo img {
    height: 70px;
    display: block;
    /* Set to 70px as requested */
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 40px;
}

.hero-content h1 {
    perspective: 2000px;

    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 1;
    visibility: hidden;
    text-transform: uppercase;
    line-height: 1.1;
}

.anim-letter {
    display: inline-block;
    opacity: 0;
    transform: var(--start-transform);
    filter: blur(20px);
    transition: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 2px;
}

.anim-letter.arrive {
    animation: letterArrival 5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes letterArrival {
    0% {
        opacity: 0;
        transform: var(--start-transform);
        filter: blur(30px);
    }

    15% {
        opacity: 1;
        filter: blur(10px) brightness(2);
    }

    60% {
        transform: scale(1.2) rotate(0deg);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
        filter: blur(0);
    }
}

.hero-content h1.start-animation {
    animation: glowPulse 4s ease-in-out infinite 2s;
}

@keyframes dramaticRevealV2 {
    0% {
        opacity: 0;
        filter: blur(30px);
        letter-spacing: 4em;
        /* Massive spread */
        transform: scale(1.5);
        /* Zoomed in */
        text-shadow: none;
    }

    /* Violent Strobe Phase */
    2% {
        opacity: 1;
        text-shadow: 0 0 30px red;
        transform: scale(1.5) translateX(-10px);
    }

    4% {
        opacity: 0;
    }

    6% {
        opacity: 0.8;
        letter-spacing: 3.5em;
        filter: blur(10px);
    }

    8% {
        opacity: 0;
    }

    10% {
        opacity: 1;
        text-shadow: 0 0 50px red;
        transform: scale(1.4);
    }

    12% {
        opacity: 0;
    }

    15% {
        opacity: 0.3;
    }

    20% {
        opacity: 1;
        letter-spacing: 3em;
        filter: blur(20px);
    }

    /* Emerge Phase - The Snap */
    40% {
        opacity: 1;
        letter-spacing: 2em;
        filter: blur(15px);
        transform: scale(1.2);
    }

    80% {
        opacity: 1;
        letter-spacing: 0.2em;
        filter: blur(5px);
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        letter-spacing: normal;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Cinematic Keyframes - Flicker then Emerge */
@keyframes dramaticReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        letter-spacing: 2em;
        text-shadow: none;
    }

    /* Flicker Phase */
    5% {
        opacity: 0.5;
        text-shadow: 0 0 10px red;
    }

    6% {
        opacity: 0;
        text-shadow: none;
    }

    10% {
        opacity: 0.8;
        letter-spacing: 1.8em;
    }

    11% {
        opacity: 0;
    }

    15% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
        text-shadow: 0 0 20px red;
        filter: blur(10px);
    }

    25% {
        opacity: 0;
    }

    /* Emerge Phase */
    30% {
        opacity: 0;
        letter-spacing: 1.5em;
        filter: blur(15px);
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        letter-spacing: normal;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(227, 11, 14, 0.5);
    }

    50% {
        text-shadow: 0 0 50px rgba(227, 11, 14, 1), 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

.hero-content p {
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    color: #ffd1d1;
    transition: all 1s ease-out;
}

.hero-content .btn {
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-out;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Projects/Services */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.project-card .btn {
    margin-top: auto;
}

.project-card img {
    height: 200px;
    /* Fixed height for alignment */
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    min-height: 60px;
    /* Ensure titles align texts below */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #ddd;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 0;
    /* Boxy aesthetic from original */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 11, 14, 0.4);
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    padding: 40px 30px;
    text-align: center;
}

.team-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(227, 11, 14, 0.2);
}

.team-card h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.team-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Contact/Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    header {
        width: 95%;
        max-width: 1400px;
        padding: 0 20px 0 0;
        height: 60px;
        display: flex;
        align-items: center;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* Perfectly centering burger and text */
        width: 100%;
    }

    .logo {
        margin-right: 0;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 20px;
        display: flex;
        align-items: center;
        margin-top: 0;
        /* Centered by flex */
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 101;
        margin-top: 0;
        /* Centered by flex */
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: 0.3s;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 0, 0, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 100;
        margin-top: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 500;
        margin: 10px 0;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.7rem !important;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2rem !important;
        width: 100%;
        max-width: 100vw;
        padding: 0 10px;
    }

    .hero-content h1 .anim-line {
        display: block !important;
        white-space: normal !important;
        text-align: center;
        width: 100%;
    }

    .anim-letter {
        font-size: 2rem !important;
    }
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Unbox contacts to align evenly with title */
.footer-contacts {
    display: contents;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle glass */
    border: 1px solid rgba(227, 11, 14, 0.2);
    /* Red border */
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-contact-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    /* Increased internal spacing */
    color: white;
    /* White icons as requested/shown */
}

/* Hover effects */
.footer-contact-item:hover {
    background: rgba(227, 11, 14, 0.15);
    border-color: #e30b0e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 11, 14, 0.2);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    /* Ensure grid items align properly */
}

/* Logo Section */
.footer-content>div:first-child {
    justify-self: end;
    text-align: right;
}

/* Phone Number (inside display: contents wrapper) */
.footer-contacts>a:first-child {
    justify-self: center;
}

/* Email (inside display: contents wrapper) */
.footer-contacts>a:last-child {
    justify-self: start;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-content>div:first-child {
        justify-self: center;
        text-align: center;
    }

    .footer-contacts>a:first-child,
    .footer-contacts>a:last-child {
        justify-self: center;
    }
}

.partner-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.partner-item:hover {
    transform: scale(1.1);
    opacity: 1;
}

.footer-social-links a:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}