/* ==========================================================================
   Base styles and variables
   ========================================================================== */
/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --text-color: #ffffff;
    --dark-bg: #000000;
    --primary-color: #27A1CF;
    --primary-hover: #1B8AB5;
    --container-width: 1400px;
    --mobile-padding: 20px;
    --tablet-padding: 40px;
    --desktop-padding: 80px;
    --header-height: 80px;
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1400px;
    --accent-color: #1B8AB5;
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    visibility: hidden; /* Hide everything initially */
}

/* Common section styles */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
    padding-top: 80px;
}

.section-content {
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--mobile-padding);
    z-index: 1;
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
    .section-content {
        padding: 0 var(--tablet-padding);
    }
}

@media screen and (min-width: 1024px) {
    .section-content {
        padding: 0 var(--desktop-padding);
    }
}

/* Fix for mobile browsers' viewport height behavior */
@media screen and (max-width: 768px) {
    section {
        min-height: 100vh; /* Use fallback */
        min-height: -webkit-fill-available; /* For iOS */
        padding: calc(var(--header-height) + 20px) 0;
    }
}

/* ==========================================================================
   Navigation styles
   ========================================================================== */
/* Navigation Base */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1800px;
    margin: 0 auto;
    height: 100%;
}

/* Brand Logo */
.brand {
    position: fixed;
    top: 0;
    left: 2rem;
    z-index: 3001;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0;
}

.brand img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    right: 2rem;
    top: 28px;
    z-index: 3001;
    width: 30px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-left: auto;
    padding-right: 2rem;
}

.desktop-nav .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-hover);
    transition: width 0.3s ease;
}

.desktop-nav .nav-links a:hover::after,
.desktop-nav .nav-links a.active::after {
    width: 100%;
}

.desktop-nav .nav-links a:hover,
.desktop-nav .nav-links a.active {
    color: var(--primary-color);
}

/* Desktop Language Switcher */
.desktop-nav .language-switcher {
    gap: 0.75rem;
    margin-left: 1rem;
}

/* Mobile Language Switcher */
.mobile-nav .language-switcher {
    margin-top: 3rem;
    gap: 1rem;
}

.mobile-nav .language-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

.mobile-nav .language-btn:hover,
.mobile-nav .language-btn.active {
    background: rgba(39, 161, 207, 0.1);
    border-color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .mobile-nav .language-switcher {
        margin-top: 2rem;
    }

    .mobile-nav .language-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 1024px) {
    .desktop-nav .nav-links {
        gap: 2rem;
    }

    .desktop-nav .nav-links a {
        font-size: 0.85rem;
    }

    .desktop-nav .language-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
                visibility 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-nav.active .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav .nav-item a {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
}

.mobile-nav .nav-item a:hover,
.mobile-nav .nav-item a.active {
    color: var(--primary-color);
}

.mobile-nav .nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-nav .nav-item a:hover::after,
.mobile-nav .nav-item a.active::after {
    width: 100%;
}

.mobile-nav .language-switcher {
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition-delay: 0.6s;
}

.mobile-nav .language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 80px;
}

.mobile-nav .language-btn:hover,
.mobile-nav .language-btn.active {
    background: rgba(39, 161, 207, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-nav.active .language-switcher {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        top: 28px;
    }

    .desktop-nav {
        display: none;
    }
    
    .brand {
        left: 1.5rem;
    }
    
    .brand img {
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .mobile-nav {
        padding: 40px 0;
    }

    .mobile-nav .nav-item a {
        font-size: 1.5rem;
    }

    .mobile-nav .language-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Home Section
   ========================================================================== */
#home {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: url('assets/home-bg.jpg') no-repeat center center;
    background-size: cover;
    padding-right: 15%;
}

/* Dark overlay for home section */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure content stays above overlay */
.hero-text {
    position: absolute;
    top: 50%;
    left: 73%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-text h1 .first-line,
.hero-text h1 .second-line {
    display: inline;
    transform: translateY(0);
    opacity: 1;
}

.hero-text h1 .first-line {
    color: #ffffff;
}

.hero-text h1 .second-line {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile styles */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
}

/* Animation initial states */
[data-anime] .hero-text h1 .first-line,
[data-anime] .hero-text h1 .second-line,
[data-anime] .hero-text p {
    opacity: 0;
    transform: translateY(30px);
}

.learn-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.learn-more-btn:hover {
    background-color: var(--primary-hover);
}

/* Non-desktop screens */
@media screen and (max-width: 1280px) {
    #home {
        justify-content: center;
        padding-right: 0;
    }

    .hero-text {
        margin: 0 auto;
        padding: 0 20px;
        width: 90%;
        max-width: 600px;
    }

    .hero-text h1 {
        justify-content: center;
        font-size: calc(1.8rem + 2vw);
    }

    .hero-text p {
        justify-content: center;
        font-size: calc(0.8rem + 0.5vw);
    }

    .learn-more-btn {
        justify-content: center;
        padding: calc(10px + 0.5vw) calc(25px + 1vw);
        font-size: calc(0.8rem + 0.2vw);
    }
}

/* Nest Hub */
@media screen and (max-width: 1024px) and (max-height: 600px) {
    #home {
        padding-right: 0;
    }

    .hero-text {
        margin: 0 auto;
        padding: 0 8px;
        width: 28%;
        height: 16%;
        max-width: 200px;
    }

    .hero-text h1 {
        font-size: calc(0.4rem + 0.2vw);
        margin-bottom: 0.12rem;
    }

    .hero-text p {
        font-size: calc(0.28rem + 0.12vw);
        margin-bottom: 0.2rem;
    }

    .learn-more-btn {
        padding: calc(2px + 0.12vw) calc(6px + 0.2vw);
        font-size: calc(0.28rem + 0.04vw);
    }
}

/* Small tablets and large phones */
@media screen and (max-width: 768px) {
    .hero-text {
        width: 95%;
    }

    .hero-text h1 {
        font-size: calc(1.4rem + 2vw);
    }
}

@media screen and (max-width: 650px) {
    .hero-text h1 {
        font-size: calc(1.3rem + 2vw);
    }
}

/* Small phones */
@media screen and (max-width: 450px) {
    .hero-text {
        width: 60%;
        padding: 0;
    }

    .hero-text h1 {
        flex-direction: column;
        font-size: calc(1.5rem + 2vw);
    }

    .hero-text h1 .first-line,
    .hero-text h1 .second-line {
        margin: 0;
    }

    .hero-text h1 .second-line {
        color: #3498db;
    }

    .learn-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
#about {
    position: relative;
    padding: 100px 0;
    background: url('assets/about-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#about h2 {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-container {
    max-width: var(--container-width);
    margin: 0;
    margin-left: 5%;
    padding: 0 var(--desktop-padding);
    width: 100%;
}

.about-text {
    text-align: left;
    max-width: 600px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    #about {
        text-align: justify;
        padding: 60px 0;
    }

    #about h2 {
        text-align: center;
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .about-container {
        margin-left: 20px;
        padding: 0 20px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
#projects {
    padding: 100px 0;
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
    width: 100%;
    max-width: var(--container-width);
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0 0 0;
    padding: 0;
    background-color: var(--dark-bg);
}

.project-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
    background: var(--dark-bg);
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 1;
}

.project-content {
    transform: none;
}

.project-type {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.project-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    max-width: var(--container-width);
    padding: 0;
    width: 100%;
    text-align: center;
}

.filter-btn {
    background: rgba(0, 163, 255, 0.1);
    border: 1px solid rgba(0, 163, 255, 0.3);
    color: #00a3ff;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 163, 255, 0.1);
}

.filter-btn:hover {
    background: rgba(0, 163, 255, 0.15);
}

.filter-btn:active {
}

.filter-btn.active {
    background: #00a3ff;
    color: #fff;
    border-color: #00a3ff;
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.3);
}

.filter-btn.active:hover {
    background: #0090e6;
    border-color: #0090e6;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .project-overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }

    .project-content {
        transform: none;
    }

    .filter-buttons {
        margin: 2rem auto;
        padding: 0;
        gap: 0.5rem;
        width: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        margin: 1.5rem auto;
        gap: 0.35rem;
        padding: 0;
        width: auto;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        margin: 0;
    }
}

/* Projects Section Header */
.projects-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.projects-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.projects-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Contact Section styles
   ========================================================================== */
#contact {
    position: relative;
    min-height: 100vh;
    background: var(--dark-bg);
    padding: 120px 0;
    display: flex;
    align-items: center;
}

.contact-section {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--desktop-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Contact Info Styles */
.contact-info {
    color: var(--text-color);
}

.contact-info h2 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(39, 161, 207, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-text h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0;
}

.contact-text a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-block;
}

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

/* Contact Form Styles */
.contact-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: #aaa;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #3498db;
    outline: none;
}

.form-label {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input.has-value ~ .form-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0 0.5rem;
    color: #3498db;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
}

.submit-btn:disabled {
    background: rgba(39, 161, 207, 0.3);
    cursor: not-allowed;
}

/* Form animation classes - New additions */
.form-group.animate {
    animation: formPulse 0.5s ease-out;
}

@keyframes formPulse {
    0% { transform: scale(1) rotateX(0); }
    50% { transform: scale(1.02) rotateX(5deg); }
    100% { transform: scale(1) rotateX(0); }
}

/* Form Validation Styles */
.form-input {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #3498db;
    outline: none;
}

/* Invalid state */
.form-input:invalid {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.05);
}

.form-input:focus:invalid {
    border-color: rgb(231, 76, 60);
    background: rgba(231, 76, 60, 0.1);
}

/* Valid state */
.form-input.valid,
.form-input:valid:not(:placeholder-shown) {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.05);
}

.form-input.valid:focus,
.form-input:focus:valid:not(:placeholder-shown) {
    border-color: rgb(46, 204, 113);
    background: rgba(46, 204, 113, 0.1);
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.2);
}

/* Character counter styles */
.char-counter {
    position: absolute;
    right: 0.5rem;
    top: -1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.char-counter.warning {
    color: #e74c3c;
}

.char-counter.valid {
    color: #2ecc71;
}

/* Thank You Message */
.thank-you-message {
    display: none;
}

/* Form Response Message */
.response-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.response-message.active {
    display: flex;
}

.response-content {
    background: var(--dark-bg);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: none;
    transition: transform 0.3s ease;
}

.response-message.success .response-content {
    border: 1px solid rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.1);
}

.response-message.error .response-content {
    border: 1px solid rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.1);
}

.response-message.active .response-content {
    transform: none;
}

.response-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.response-message.success h3 {
    color: #2ecc71;
}

.response-message.error h3 {
    color: #e74c3c;
}

.response-message p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.response-message .close-btn {
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-primary);
    border: none;
}

.response-message.success .close-btn {
    background-color: #2ecc71;
    color: white;
}

.response-message.error .close-btn {
    background-color: #e74c3c;
    color: white;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .contact-section {
        gap: 60px;
    }

    .contact-info h2 {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 992px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-form {
        padding: 40px;
    }
}

@media screen and (max-width: 768px) {
    #contact {
        padding: 80px 0;
    }

    .contact-section {
        padding: 0 var(--mobile-padding);
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .contact-info p {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 30px 30px;
    }

    .form-input {
        font-size: 1rem;
        padding: 15px 0;
    }

    .form-label {
        font-size: 1rem;
    }

    .submit-btn {
        padding: 15px;
        font-size: 1rem;
    }

    .thank-you-message h3 {
        font-size: 1.75rem;
    }
    
    .thank-you-message p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .another-message-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
}

/* Add smooth scrolling to body */
html {
    scroll-behavior: smooth;
}

/* Add parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 768px) {
    #home,
    #about,
    #projects,
    #contact {
        background-attachment: scroll;
    }
}

.learn-more-btn {
    padding: 20px 45px;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-color);
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    font-family: var(--font-primary);
    border-radius: 8px;
}

.learn-more-btn:hover {
    background: var(--primary-hover);
}

@media screen and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 5.5rem;
    }
    
    .hero-text p {
        font-size: 1.8rem;
    }
    
    .learn-more-btn {
        padding: 22px 50px;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text p {
        font-size: 1.4rem;
    }
    
    .learn-more-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .learn-more-btn {
        padding: 15px 35px;
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

.footer {
    background: var(--dark-bg);
    padding: 40px 0 20px;
    color: var(--text-color);
    width: 100%;
}
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-brand img {
    height: 60px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.5rem;
}

@media screen and (max-width: 1024px) {
    .footer-brand {
        align-items: center;
    }
}

.footer-contact h3,
.footer-newsletter h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 0.9rem;
    border-radius: 4px;
}

.newsletter-message {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: none;
}

.newsletter-message.active {
    display: block;
}

.newsletter-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.newsletter-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.newsletter-form button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.legal-links {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.legal-links .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

@media screen and (max-width: 768px) {
    .legal-links {
        font-size: 0.8rem;
    }
}

/* Remove default focus styles */
*:focus {
    outline: none !important;
}

.contact-form,
.contact-form * {
    box-shadow: none !important;
}

/* Ensure form elements don't have default browser styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--dark-bg) inset;
    -webkit-text-fill-color: var(--text-color);
    transition: background-color 5000s ease-in-out 0s;
}

/* Add floating label animation */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    background: transparent;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--dark-bg);
    padding: 0 5px;
}

/* Update form input styles */
.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(39, 161, 207, 0.1);
    border: 1px solid rgba(39, 161, 207, 0.3);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(39, 161, 207, 0.15);
}

.form-input::placeholder {
    color: transparent; /* Hide placeholder when using floating labels */
}

/* Update icon background for Instagram */
.contact-icon .fab.fa-instagram {
    font-size: 1.3rem; /* Slightly smaller than other icons */
}

@media screen and (max-width: 1024px) {
    .section-content {
        padding: 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .hero-text {
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-text h1 {
        font-size: 5.5rem;
    }
    
    .hero-text p {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .section-content {
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
}

/* Tablet and iPad Pro sizes */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }

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

    .footer-social {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

.language-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.language-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
}

.language-btn.active {
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .menu-wrap {
        display: none;
    }
}

.menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
}

.menu-wrap .toggler {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 0;
    cursor: pointer;
    z-index: 1002;
}

.menu-wrap .hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* Hamburger Line */
.menu-wrap .hamburger > div {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Top and Bottom Lines */
.menu-wrap .hamburger > div:before,
.menu-wrap .hamburger > div:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -8px;
    width: 100%;
    height: 2px;
    background: inherit;
}

.menu-wrap .hamburger > div:after {
    top: 8px;
}

/* Toggler Animation */
.menu-wrap .toggler:checked + .hamburger > div {
    transform: rotate(135deg);
    background: #fff;
}

.menu-wrap .toggler:checked + .hamburger > div:before,
.menu-wrap .toggler:checked + .hamburger > div:after {
    top: 0;
    transform: rotate(90deg);
    background: #fff;
}

/* Menu Overlay */
.menu-wrap .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background: rgba(0, 0, 0, 0.95);
}

.menu-wrap .menu > div {
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0);
}

.menu-wrap .menu > div > div {
    text-align: center;
    max-width: 90vw;
    max-height: 100vh;
    opacity: 0;
}

/* Show Menu */
.menu-wrap .toggler:checked ~ .menu {
    visibility: visible;
}

.menu-wrap .toggler:checked ~ .menu > div {
    transform: scale(1);
}

.menu-wrap .toggler:checked ~ .menu > div > div {
    opacity: 1;
}

/* Hide on Desktop */
@media (min-width: 769px) {
    .menu-wrap {
        display: none;
    }
}

/* Mobile Menu Links */
.menu-wrap .menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-wrap .menu ul li {
    margin: 1rem;
}

.menu-wrap .menu ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5rem;
    padding: 1rem;
    display: inline-block;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: var(--dark-bg);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .project-overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }

    .project-content {
        transform: none;
    }

    .filter-buttons {
        margin: 2rem auto;
        padding: 0;
        gap: 0.5rem;
        width: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        margin: 1.5rem auto;
        gap: 0.35rem;
        padding: 0;
        width: auto;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        margin: 0;
    }
}

/* Animation for active state */
.filter-btn.active {
    animation: buttonPop 0.3s ease;
}

@keyframes buttonPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Newsletter Message Styles */
.newsletter-message {
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 1;
    transform: none;
    width: 100%;
}

.newsletter-message.active {
    opacity: 1;
    transform: none;
}

.newsletter-message.success {
    background-color: rgba(46, 204, 113, 0.95);
    color: white;
    border-left: 4px solid #27ae60;
}

.newsletter-message.error {
    background-color: rgba(231, 76, 60, 0.95);
    color: white;
    border-left: 4px solid #c0392b;
}

@media screen and (max-width: 768px) {
    .newsletter-message {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

/* Project Filters */
.project-filters {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Desktop Filter Buttons */
.desktop-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Mobile Filter */
.mobile-filter {
    display: none;
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.filter-btn {
    background: transparent;
    border: 1px solid #00a3ff;
    color: #00a3ff;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.filter-btn.active {
    background: #00a3ff;
    color: #fff;
}

.mobile-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 163, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    z-index: 100;
    transform: none;
    opacity: 1;
}

.mobile-filter-dropdown.show {
    display: block;
}

.mobile-filter-dropdown .filter-btn {
    background: transparent;
    border: none;
    color: #00a3ff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0.25rem 0;
}

.mobile-filter-dropdown .filter-btn:hover {
    background: rgba(0, 163, 255, 0.1);
    transform: translateX(4px);
}

.mobile-filter-dropdown .filter-btn.active {
    background: rgba(0, 163, 255, 0.15);
    color: #fff;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .desktop-filter {
        display: none;
    }
    
    .mobile-filter {
        display: block;
    }
    
    .project-filters {
        padding: 0 1rem;
    }
}

.filter-dropdown-btn {
    background: rgba(0, 163, 255, 0.1);
    border: 1px solid rgba(0, 163, 255, 0.3);
    color: #00a3ff;
    padding: 0.75rem 2rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 200px;
    margin-bottom: 1rem;
}

.filter-dropdown-btn i {
    font-size: 1rem;
}

.filter-dropdown-btn.active {
    background: #00a3ff;
    color: #fff;
    border-color: #00a3ff;
}

.filter-dropdown-btn.active i {
    transform: rotate(180deg);
}

/* Character Counter */
.char-counter {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #e74c3c;
}

.char-counter.valid {
    color: #2ecc71;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group textarea,
.form-group input {
    font-family: var(--font-primary);
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* Festival Section */
.festival-section {
    position: relative;
    background-color: var(--dark-bg);
    color: white;
    padding: 4rem 0;
    overflow: hidden;
    min-height: auto;
}

.festival-section .container {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    z-index: 2;
}

.festival-section .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.festival-section .section-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    letter-spacing: 0.3px;
    font-weight: 300;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0;
}

.countdown-item {
    background: rgba(39, 161, 207, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(39, 161, 207, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(39, 161, 207, 0.2);
}

.countdown-value {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.countdown-label {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: rgba(39, 161, 207, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(39, 161, 207, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(39, 161, 207, 0.1);
}

.highlight-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.highlight-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.festival-cta {
    text-align: center;
    margin-top: 3rem;
}

.festival-cta .btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0 0.75rem;
}

.festival-cta .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    text-decoration: none;
}

.festival-cta .btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.festival-cta .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
}

.festival-cta .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .festival-section {
        padding: 3rem 0;
    }

    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .festival-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-item {
        padding: 1.5rem;
    }

    .festival-cta .btn {
        display: block;
        margin: 1rem auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Partners Section */
.partners-section {
    background-color: var(--dark-bg);
    padding: 4rem 0;
    position: relative;
    border-top: 1px solid rgba(39, 161, 207, 0.2);
}

.partners-section .section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.partners-section .section-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    letter-spacing: 0.3px;
    font-weight: 300;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.partner-item {
    background: rgba(39, 161, 207, 0.05);
    border: 1px solid rgba(39, 161, 207, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(39, 161, 207, 0.1);
}

.partner-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: grayscale(100%) brightness(200%);
}

.partner-item:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

.partner-cta {
    text-align: center;
    margin-top: 2rem;
}

.partner-cta .btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
}

.partner-cta .btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Tablet and smaller desktop */
@media screen and (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .partner-logo {
        max-width: 120px;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .partner-logo {
        max-width: 100px;
    }

    .partner-cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .partners-grid {
        gap: 0.75rem;
    }

    .partner-item {
        padding: 1rem;
    }

    .partner-logo {
        max-width: 80px;
    }
}

.backtotop{
    text-decoration: none;
    color:var(--text-color);
    transition: all 0.3s ease;
}
.backtotop:hover{
    color:var(--primary-color);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.film-strip {
    display: flex;
    align-items: center;
    background: #111;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: filmMove 2s infinite;
}

.film-holes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
}

.film-holes.left {
    margin-right: 1rem;
}

.film-holes.right {
    margin-left: 1rem;
}

.hole {
    width: 12px;
    height: 12px;
    background: var(--dark-bg);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.film-content {
    background: #000;
    padding: 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.loading-logo {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoRotate 4s infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-text {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.dots span {
    opacity: 0;
    animation: dotFade 1.4s infinite;
    animation-fill-mode: forwards;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes filmMove {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoRotate {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(0.9) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes dotFade {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .loading-logo {
        width: 80px;
        height: 80px;
    }

    .hole {
        width: 8px;
        height: 8px;
    }

    .film-holes {
        gap: 1rem;
    }

    .film-content {
        padding: 1.5rem;
    }
}