/* Base styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-width: 320px;
    /* Minimum width for mobile */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

html {
    scroll-behavior: smooth;
}


/* Header */

header {
    background-color: #000;
    color: #fff;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
}

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 1rem;
    padding-top: 1rem;
    padding-bottom: 0;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero.loaded {
    opacity: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

.hero-image-container {
    position: relative;
    max-width: 80%;
    max-height: 70vh;
    width: 100%;
    height: 100%;
    z-index: 2;
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-mask-image: url('assets/TYPO_SEDE_VECTOR.png');
    mask-image: url('assets/TYPO_SEDE_VECTOR.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.08)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.04));
}


/* Background container */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--gradient-angle), #00ffff,
            /* Inverted from red */
            #007fff,
            /* Inverted from orange */
            #0000ff,
            /* Inverted from yellow */
            #ff00ff,
            /* Inverted from cyan */
            #ff0000,
            /* Inverted from blue */
            #00ff00,
            /* Inverted from magenta */
            #00ffff
            /* Inverted from red */
        );
    background-size: 400% 400%;
    opacity: 0.2;
    /* Adjust this value to control overlay intensity */
    mix-blend-mode: overlay;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    filter: grayscale(100%);
    will-change: opacity;
    /* Optimize for animations */
}

.hero-background img.active {
    opacity: 1;
    z-index: 1;
}

@supports not ((-webkit-mask-image: url('assets/TYPO_SEDE_VECTOR.png')) or (mask-image: url('assets/TYPO_SEDE_VECTOR.png'))) {
    .hero-image {
        display: none;
    }
}


/* Ensure other hero elements are above the background */

.hero-nav {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 4rem;
}

.hero-nav ul {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
    padding: 1rem;
}

.footer-nav {
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}


/* Add gradient hover effect */

nav a::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover {
    color: #fff;
    background: #222;
}

nav a:hover::before {
    opacity: 1;
}


/* Apply to both header and footer navigation */

.hero-nav a::before,
.footer-nav a::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-nav a:hover::before,
.footer-nav a:hover::before {
    opacity: 1;
}

.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.lang-opt {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-opt.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.lang-opt:hover:not(.active) {
    color: rgba(255, 255, 255, 0.85);
}


/* Sections */

section {
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
}


/* Services */

.services-section {
    display: flex;
    gap: 2rem;
    margin-top: 0;
    padding: 4rem 3rem 2rem;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    justify-content: center;
    background-color: transparent;
}

.service {
    flex: 1 1 300px;
    /* Base flex size */
    max-width: 400px;
    min-width: 280px;
    padding: 1.8rem;
    background: #222;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.service h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.8rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.service h2::after {
    display: none;
}

.service ul {
    list-style: none;
    margin-bottom: 1.5rem;
    height: 120px;
    flex-shrink: 0;
}

.service ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.service ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #666;
}

.service p {
    opacity: 0;
    max-height: 0;
    transition: all 0.5s ease;
    overflow: hidden;
    transform: translateY(20px);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: auto;
}


/* Remove conflicting hover styles */

.services-section:hover .service {
    transform: none;
    box-shadow: none;
    background-color: transparent;
    border-color: transparent;
}

.services-section:hover .service p {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
    margin-top: 0;
}


/* Update gradient border effect for services */

.service::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Add inner background */

.service::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #222;
    border-radius: 12px;
    z-index: -1;
    transition: background-color 0.3s ease;
}


/* Individual service hover effects */

.service:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.service:hover::before {
    opacity: 1;
}

.service:hover::after {
    background: #333;
}


/* Services base styles */

.services-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service {
    flex: 1 1 300px;
    /* Base flex size */
    max-width: 400px;
    min-width: 280px;
}


/* Remove ALL previous media queries for services and replace with these */

@media (max-width: 768px) {

    /* Disable animations but keep background */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .hero-background img {
        opacity: 1 !important;
        transition: none !important;
    }

    /* Remove only the animated overlay */
    .hero-background::after {
        display: none;
    }

    /* Keep the logo styling */
    .hero-image {
        background: linear-gradient(45deg, #ff0000, #ff8000);
        -webkit-mask-image: url('assets/TYPO_SEDE_VECTOR.png');
        mask-image: url('assets/TYPO_SEDE_VECTOR.png');
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        filter: none;
    }

    /* Remove all gradient effects and animations */
    .hero::after,
    nav a::before,
    .client::before,
    .client::after,
    .team-member::before,
    .service::before {
        display: none;
    }

    /* Simplify navigation */
    .hero-nav {
        margin-bottom: 2rem;
        width: 100%;
    }

    .hero-nav ul {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }

    /* Basic styles without animations */
    .client {
        background: #222;
        border: 1px solid #333;
    }

    .team-member {
        background: #222;
        border: 1px solid #333;
    }

    .service {
        background: #222;
        border: 1px solid #333;
    }

    /* Remove all hover effects */
    .client:hover,
    .team-member:hover,
    .service:hover,
    nav a:hover {
        background: #222;
        transform: none;
        box-shadow: none;
    }

    .services-grid {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .service {
        flex: 1;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .services-section {
        padding: 3rem 1rem;
    }

    .service p {
        opacity: 1 !important;
        /* Force show paragraphs */
        max-height: none !important;
        /* Remove height restriction */
        transform: none !important;
        /* Remove transform */
        margin-top: 1rem !important;
        font-size: 0.85rem;
        color: #ccc;
        overflow: visible;
    }

    .services-section:hover .service p {
        opacity: 1;
        max-height: none;
        transform: none;
        margin-top: 1rem;
    }

    .service {
        padding: 1.2rem;
    }

    .service ul {
        margin-bottom: 1rem;
        /* Reduce space between list and paragraph */
        height: auto;
        /* Allow list to take natural height */
        min-height: 0;
    }
}


/* Contact Section */

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: transparent;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #fff;
    margin: 0.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #888;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #333;
    border-color: #444;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.contact-section button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-section button:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}


/* Footer */

footer {
    background-color: #000;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
}


/* Clients Section */

.clients-section {
    position: relative;
    padding: 4rem 2rem;
    background-color: transparent;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

.clients-section h2 {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
    background-color: transparent;
    padding-bottom: 1.5rem;
}

.clients-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}


/* Fade edges */

.clients-section::before,
.clients-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-section::before {
    left: 0;
    background: linear-gradient(to right, #000 20%, transparent 100%);
}

.clients-section::after {
    right: 0;
    background: linear-gradient(to left, #000 20%, transparent 100%);
}

.client-container {
    margin-top: 2rem;
    position: relative;
    display: flex;
    overflow-x: auto;
    width: 100%;
    cursor: grab;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
    gap: 2rem;
}


/* Hide scrollbar for Chrome/Safari */

.client-container::-webkit-scrollbar {
    display: none;
}

.client-container:active {
    cursor: grabbing;
}

.client {
    min-width: 280px;
    max-width: 280px;
    padding: 2rem;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    flex: 0 0 280px;
    position: relative;
    z-index: 1;
    isolation: isolate;
    margin: 2px;
}

.client::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #222;
    border-radius: 12px;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.client h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.8rem;
}

.client-quote {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Remove slider nav since we're using drag scroll */

.slider-nav {
    display: none;
}


/* Gradient Animation Properties */

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}


/* Animations */

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes rotate {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.12)) drop-shadow(0 0 40px rgba(255, 0, 0, 0.08)) drop-shadow(0 0 60px rgba(0, 0, 255, 0.04));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.16)) drop-shadow(0 0 60px rgba(255, 0, 0, 0.12)) drop-shadow(0 0 90px rgba(0, 0, 255, 0.08));
    }
}


/* About Section */

.about-section {
    text-align: left;
    padding: 2rem 2rem 4rem;
    background-color: transparent;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
    position: relative;
}

.about-text {
    position: relative;
    z-index: 1;
    padding-right: 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    padding-right: 0;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.mascot-image {
    position: relative;
    width: 80px;
    height: auto;
    margin: 1rem auto;
    display: block;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* Gallery Section Styling */
.galerija {
    margin: 3rem auto;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding-bottom: 125%;
    /* 5:4 aspect ratio for Instagram vertical videos */
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.video-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* New Team Section Styling */

.team {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.team h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member {
    background: #222;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-5px);
    background: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid #333;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member .bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

.team-member .bio,
.team-member .role {
    display: block;
}

.team-member .role {
    margin-bottom: 1rem;
}


/* Add a dark overlay to make text more readable */

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}


/* Add styled section title */

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}


/* Add gradient overlay for bottom transition */

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    /* Adjust this value to control gradient height */
    background: linear-gradient(to top, #000 0%, transparent 100%);
    z-index: 2;
    /* Above images but below content */
    pointer-events: none;
}


/* Adjust the existing dark overlay z-index */

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}


/* Update responsive adjustments */

@media (max-width: 1400px) {
    .mascot-image {
        width: 80px;
    }
}

@media (max-width: 1200px) {
    .mascot-image {
        display: block;
    }
}


/* Arrow indicators */

.scroll-indicator {
    position: absolute;
    top: calc(2rem + 213px);
    /* Increased from 180px to move arrows down */
    transform: none;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.scroll-indicator.left {
    left: 5px;
    /* Bring back into view but still near edge */
}

.scroll-indicator.right {
    right: 5px;
    /* Bring back into view but still near edge */
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    top: 50%;
    left: 50%;
}

.scroll-indicator.left::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.scroll-indicator.right::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.scroll-indicator.show {
    opacity: 1;
}


/* Add this to your existing gradient properties */

.gradient-hover {
    display: none;
}


/* Update the base styles for containers */

.service,
.client,
.team-member {
    position: relative;
    background: #222;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1;
}


/* Gradient border effect */

.service::before,
.client::before,
.team-member::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 14px;
    /* Slightly larger than container */
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Add inner background to cover gradient except border */

.service::after,
.client::after,
.team-member::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #222;
    border-radius: 12px;
    z-index: -1;
    transition: background-color 0.3s ease;
}


/* Hover effects */

.service:hover,
.client:hover,
.team-member:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.service:hover::before,
.client:hover::before,
.team-member:hover::before {
    opacity: 1;
}

.service:hover::after,
.client:hover::after,
.team-member:hover::after {
    background: #333;
}


/* Update hero nav for mobile */

.hero-nav {
    width: 100%;
    margin-bottom: 4rem;
}

.hero-nav ul {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
    padding: 1rem;
}

@media (max-width: 768px) {

    /* Mobile navigation */
    .hero-nav {
        margin-bottom: 2rem;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .hero-nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .hero-nav ul {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        white-space: nowrap;
        /* Keep text in one line */
        padding: 0.5rem 1rem;
        width: 100%;
        min-width: min-content;
        /* Ensure all items fit */
    }

    .hero-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    /* Mobile video container */
    .video-container {
        max-width: 100%;
        padding-bottom: 140%;
        /* Slightly taller on mobile for better viewing */
    }

    /* Same for footer nav */
    .footer-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .footer-nav::-webkit-scrollbar {
        display: none;
    }

    .footer-nav ul {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }
}


/* Add general mobile optimizations */

@media (max-width: 480px) {
    body {
        min-width: 280px;
        /* Smaller minimum width for very small devices */
    }

    .hero-image-container {
        max-width: 95%;
        /* Allow logo to be slightly wider on mobile */
    }
}


/* Update team and clients layout for mobile */

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-member {
        min-width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .team-member-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .team-member h3 {
        font-size: 1.1rem;
    }

    .team-member .role {
        font-size: 0.8rem;
    }

    .team-member .bio {
        font-size: 0.8rem;
    }

    .client h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .client ul li {
        font-size: 0.8rem;
    }

    .client {
        min-width: 260px;
        /* Slightly smaller width */
        max-width: 260px;
        padding: 1.5rem;
        /* Reduced padding */
        flex: 0 0 260px;
    }

    .client-quote {
        font-size: 0.85rem;
        /* Smaller quote text */
        line-height: 1.5;
        color: #aaa;
        /* Slightly lighter color for better readability */
    }

    .clients-section {
        padding: 3rem 1rem;
        /* Reduced section padding */
    }

    .client-container {
        gap: 1rem;
        /* Reduced gap between boxes */
        padding: 2px 1rem;
        /* Adjusted container padding */
    }

    /* Adjust fade edges for mobile */
    .clients-section::before,
    .clients-section::after {
        width: 60px;
        /* Narrower fade edges */
    }
}


/* Add specific styling for Kev-O */

.team-member.kev-o .bio {
    display: block;
    /* Make sure bio is visible */
}

.team-member.kev-o .role {
    display: block;
    margin-bottom: 1rem;
}

.team-member.kev-o .role {
    color: #ffff00;
}


/* Gallery Section */

.gallery-section {
    padding: 4rem 2rem;
    background-color: #111;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-tab {
    background: transparent;
    border: 2px solid #333;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.gallery-tab:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.gallery-tab.active {
    background: #fff;
    border-color: #fff;
    color: #000;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Video items */

.video-item {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.play-button {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-button {
    opacity: 1;
}

.video-placeholder h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Team placeholder styling */

.team-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #888;
    font-weight: bold;
    border: 3px solid #444;
    transition: all 0.3s ease;
}

.team-member:hover .team-placeholder {
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff);
    color: #000;
    border-color: #fff;
}


/* Mobile responsive for gallery */

@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 1rem;
    }

    .gallery-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .gallery-tabs {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .gallery-tab {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    .team-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
}

/* ============================================
   GALLERY PAGE STYLES (galerija.html)
   ============================================ */

/* Gallery Page Body */
.gallery-body {
    background-color: #000;
}

/* Gallery Header - Override default header styles */
.gallery-header {
    background-color: #000;
    padding: 1.5rem 0 2rem;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
}

.gallery-nav {
    position: relative;
    z-index: 2;
    width: 100%;
}

.gallery-nav ul {
    display: flex;
    justify-content: center;
    gap: 4rem;
    list-style: none;
    flex-wrap: wrap;
    padding: 1rem;
}

.gallery-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gallery-nav a::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-nav a:hover {
    background: #222;
}

.gallery-nav a:hover::before {
    opacity: 1;
}

/* Gallery Page Section */
.gallery-page-section {
    position: relative;
    padding: 4rem 2rem;
    background-color: transparent;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
}

.gallery-main-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.gallery-subtitle {
    font-size: 2rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
}

/* Removed the underline from h2 subtitles */
/* .gallery-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
} */

/* Fade edges for gallery slideshow */
.gallery-page-section::before,
.gallery-page-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-page-section::before {
    left: 0;
    background: linear-gradient(to right, #000 20%, transparent 100%);
}

.gallery-page-section::after {
    right: 0;
    background: linear-gradient(to left, #000 20%, transparent 100%);
}

/* Gallery Video Grid - Horizontal Slideshow */
.gallery-video-grid {
    margin-top: 2rem;
    position: relative;
    display: flex;
    overflow-x: auto;
    width: 100%;
    cursor: grab;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
    gap: 2rem;
}

.gallery-video-grid::-webkit-scrollbar {
    display: none;
}

.gallery-video-grid:active {
    cursor: grabbing;
}

/* Reels wrapper, fade, and arrow styles */
.gallery-reels-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.gallery-fade {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to right, #000 60%, transparent 100%);
}

.gallery-fade.right {
    right: 0;
    background: linear-gradient(to left, #000 60%, transparent 100%);
}

.gallery-fade.left {
    left: 0;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    z-index: 4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-arrow.left {
    left: 10px;
}

.scroll-arrow.right {
    right: 10px;
}

.scroll-arrow::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.scroll-arrow.right::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.scroll-arrow:active,
.scroll-arrow:focus {
    background: #111;
}

.gallery-video-item {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    min-height: 400px;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    isolation: isolate;
    margin: 2px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-video-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(var(--gradient-angle), #ff0000, #ff8000, #ffff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: gradient 6s ease-in-out infinite alternate, rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-video-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #222;
    border-radius: 12px;
    z-index: -1;
}

.gallery-video-item:hover::before {
    opacity: 1;
}

.gallery-video-item:hover {
    transform: translateY(-5px);
}

.gallery-video-item video {
    width: 100%;
    height: auto;
    min-height: 300px;
    display: block;
    background: #000;
    aspect-ratio: 9/16;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.video-caption {
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    background: #222;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* DJ Video Grid - Regular Grid Layout (not slideshow) */
#djVideoGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    overflow: visible;
    cursor: default;
}

#djVideoGrid .gallery-video-item {
    min-width: auto;
    max-width: none;
    flex: none;
    min-height: auto;
}

/* DJ Video Thumbnail Link Styles */
.dj-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dj-video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #000;
}

.dj-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dj-video-link:hover .dj-video-thumbnail img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dj-video-link:hover .play-button-overlay {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

#djVideoGrid .video-caption {
    padding: 1.5rem;
    font-size: 1rem;
}

/* Placeholder for future YouTube embeds */
.dj-video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: #888;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

.dj-video-placeholder::before {
    content: '▶';
    font-size: 4rem;
    color: #444;
}

/* Gallery Page Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-nav {
        margin-bottom: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-nav::-webkit-scrollbar {
        display: none;
    }

    .gallery-nav ul {
        gap: 1rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .gallery-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .gallery-main-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .gallery-subtitle {
        font-size: 1.5rem;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        letter-spacing: 1.5px;
    }

    .gallery-page-section {
        padding: 2rem 1rem;
    }

    #djVideoGrid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-page-section::before,
    .gallery-page-section::after {
        width: 60px;
    }

    .gallery-video-item {
        min-width: 220px;
        max-width: 220px;
        flex: 0 0 220px;
    }

    .video-caption {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-nav ul {
        gap: 0.5rem;
    }

    .gallery-nav a {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .gallery-main-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    .gallery-subtitle {
        font-size: 1.2rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }

    .gallery-subtitle::after {
        width: 60px;
        height: 2px;
    }

    .gallery-video-item {
        min-width: 200px;
        max-width: 200px;
        flex: 0 0 200px;
    }

    #djVideoGrid {
        gap: 1.5rem;
    }

    .video-caption {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        padding: 0.7rem 0.8rem;
    }
}