@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');

:root {
    --bg-main: #141414;
    --bg-secondary: #1f1f1f;
    --text-primary: #e5e5e5;
    --text-secondary: #808080;
    --accent: #e50914; /* Cinematic Red */
    --accent-hover: #f40612;
}

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

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader.hide {
    transform: translateY(-100%);
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader-sequence {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.p-word {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.p-word.show {
    opacity: 1;
    transform: scale(1);
}

#p-action {
    color: var(--accent);
}

.preloader-constant-text {
    position: absolute;
    bottom: 12vh; /* Use vertical height for responsive positioning */
    left: 0;
    width: 100%;
    color: var(--accent); /* Cinematic Red */
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .preloader-constant-text {
        bottom: 18vh; /* Position it higher on mobile to prevent overlapping/cutoff */
        font-size: 1rem;
        letter-spacing: 3px;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #fff;
}

.title-hero {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.title-section {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4vw;
}

.section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.7);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.4);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: background 0.3s;
}

header.scrolled {
    background: var(--bg-main);
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1; /* Establishes a stacking context so absolute negative z-index children render correctly above the body background */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('cinematic_hero_bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.6) 50%, transparent 100%),
                linear-gradient(0deg, #141414 0%, transparent 20%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-desc {
    font-size: 1.4rem;
    color: #fff;
    margin: 1.5rem 0 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Horizontal Scroll Row (Netflix style) */
.row-section {
    margin-bottom: 4rem;
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(229, 9, 20, 0.9);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.mobile-swipe-indicator {
    display: none;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.9rem;
    padding-top: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.mobile-swipe-indicator i {
    margin: 0 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
    
    .mobile-swipe-indicator {
        display: block;
    }
    
    .row-container {
        scroll-snap-type: x mandatory;
        padding: 1rem 5vw;
        gap: 1rem;
    }
    
    .row-item {
        flex: 0 0 90vw;
        width: 90vw;
        height: 400px;
        scroll-snap-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.row-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.row-container::-webkit-scrollbar {
    display: none;
}

.row-item {
    flex: 0 0 auto;
    height: 320px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #111;
}

.row-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

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

.row-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.row-item:hover .row-item-info {
    opacity: 1;
}

.row-item-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Two Column Layout for About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.stats-bar {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Media Marquee */
.media-marquee {
    display: flex;
    overflow: hidden;
    gap: 1.5rem;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.media-marquee-content {
    display: flex;
    gap: 1.5rem;
    animation: scroll-media 80s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
}

.media-marquee:hover .media-marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-media {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 1.5rem)); }
}

.media-marquee .media-card {
    flex: 0 0 320px;
}

.media-card {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 5;
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 4px;
    border-top: 4px solid var(--accent);
}

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

/* Contact Form */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details {
    margin-top: 1rem;
}

.contact-detail-item {
    margin-bottom: 1.5rem;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.contact-detail-item p {
    color: #aaa;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
}

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

.form-control {
    width: 100%;
    background: #333;
    border: none;
    padding: 1.2rem;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    background: #444;
}

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

/* Footer */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}



/* Faculties Grid */
.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faculty-card {
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.faculty-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
}

.faculty-info {
    padding: 2rem;
}

.faculty-info h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.faculty-info ul {
    list-style-type: none;
    padding: 0;
}

.faculty-info ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faculty-info ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.course-card {
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.course-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 2rem;
    flex-grow: 1;
}

.course-content h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.course-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.95);
        padding: 1rem 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: -1;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
        pointer-events: auto;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 0.8rem; }
    .btn { padding: 0.7rem 1.8rem; font-size: 1rem; }
    .contact-container { padding: 2rem; }
    .page-hero-bg { background-attachment: scroll; }
    
    .title-section { font-size: 2rem; }
    .faculties-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem; 
    }
    .faculty-card img { height: 180px; }
    .faculty-info { padding: 1rem; }
    .faculty-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .faculty-info ul li { font-size: 0.75rem; margin-bottom: 0.5rem; padding-left: 0.8rem; }
    .faculty-info ul li::before { font-size: 0.9rem; }
    
    .courses-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem; 
    }
    .course-content { padding: 1rem; }
    .course-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .course-content p { font-size: 0.75rem; }
    .course-img { height: 120px; }
    
    .media-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        mask-image: none;
        -webkit-mask-image: none;
        padding-bottom: 1.5rem;
    }
    
    .media-marquee-content {
        animation: none !important;
        min-width: auto;
    }
    
    .media-marquee .media-card {
        scroll-snap-align: start;
        flex: 0 0 280px;
    }
}

/* Brand Marquee for Commercial Work */
.brand-marquee {
    overflow: hidden;
    padding: 1rem 0;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.brand-marquee-content {
    display: inline-flex;
    gap: 3rem;
    animation: scrollBrands 40s linear infinite;
}

.brand-marquee-content:hover {
    animation-play-state: paused;
}

.brand-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    color: #fff;
    border-color: var(--primary-color);
    background: #1a1a1a;
    transform: translateY(-5px);
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* Gallery Styles */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 600px) {
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-preview-grid .gallery-item {
    aspect-ratio: 1;
    margin-bottom: 0;
}

/* Page Hero */
.page-hero {
    height: 40vh;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    z-index: 1; /* Establishes a stacking context so absolute negative z-index children render correctly above the body background */
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url('cinematic_hero_bg.png') center/cover;
    background-attachment: fixed;
    z-index: -2;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #141414 0%, rgba(20,20,20,0.8) 100%);
    z-index: -1;
}

/* Film Strip Theme Enhancements */
.film-grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.rec-indicator {
    position: absolute;
    top: 120px;
    left: 4vw;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
}

.rec-dot {
    width: 15px;
    height: 15px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: flash 1s infinite;
}

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

.timecode {
    position: absolute;
    bottom: 2rem;
    right: 4vw;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    z-index: 10;
    letter-spacing: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .rec-indicator {
        top: 85px;
        font-size: 1.2rem;
    }
    
    .timecode {
        font-size: 1rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .rec-indicator {
        top: 80px;
        font-size: 1rem;
    }
    
    .rec-dot {
        width: 10px;
        height: 10px;
    }
    
    .timecode {
        font-size: 0.85rem;
        bottom: 1rem;
    }
}

/* Redesign Gallery Item to Film Strip */
.gallery-item {
    position: relative;
    background-color: #050505;
    padding: 0 30px;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    border-radius: 2px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* Film Perforations */
.gallery-item::before, .gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background-image: linear-gradient(0deg, transparent 6px, var(--bg-main) 6px, var(--bg-main) 18px, transparent 18px);
    background-size: 100% 24px;
    background-repeat: repeat-y;
    z-index: 1;
}

.gallery-item::before {
    left: 10px;
}

.gallery-item::after {
    right: 10px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(120%) sepia(20%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

/* Hover effects */
.gallery-item:hover img {
    filter: grayscale(0%) contrast(100%) sepia(0%);
    transform: scale(1.05);
}

.gallery-preview-grid .gallery-item {
    padding: 0;
    border: none;
    border-radius: 4px;
}

.gallery-preview-grid .gallery-item::before,
.gallery-preview-grid .gallery-item::after {
    display: none;
}

/* WhatsApp Chat Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    transform: scale(1);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-bubble:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(20, 20, 20, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Adjust WhatsApp bubble position on smaller screens */
@media (max-width: 768px) {
    .whatsapp-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* Summer Classes Popup */
.summer-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000; /* Higher than navbar and preloader */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.summer-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.summer-popup-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(229, 9, 20, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.summer-popup-overlay.show .summer-popup-content {
    transform: scale(1);
}

.summer-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.summer-popup-close:hover {
    background: var(--accent);
    border-color: #fff;
    transform: rotate(90deg);
}

.summer-popup-link {
    display: block;
    text-decoration: none;
}

.summer-popup-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.summer-popup-link:hover .summer-popup-img {
    transform: scale(1.02);
}

.summer-popup-footer {
    padding: 1.2rem;
    background: #181818;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.summer-popup-footer .btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 6px;
}

.summer-popup-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #26e56e 0%, #149d8e 100%);
}

/* Summer Classes Floating Button */
.summer-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 120, 0, 0.4);
    z-index: 9999; /* Same level as WhatsApp button */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.summer-float-btn i {
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(8deg); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(4deg); }
    75% { transform: rotate(0deg); }
}

.summer-float-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #ff7700;
    opacity: 0;
    transform: scale(1);
    animation: summer-pulse 2s infinite;
}

@keyframes summer-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.summer-float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 120, 0, 0.6);
}

.summer-float-btn:hover .summer-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.summer-tooltip {
    position: absolute;
    left: 75px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.summer-tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(20, 20, 20, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Adjust Summer Classes Floating Button on smaller screens */
@media (max-width: 768px) {
    .summer-float-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .summer-tooltip {
        display: none;
    }
}
