* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Updated for fixed header */
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    color: #333;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-top: 80px; /* Added for fixed header */
}

body.dark {
    background: #121212;
    color: #eee;
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative;
}

/* Header - FIXED VERSION (Never hides) */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s, transform 0.3s ease;
    will-change: transform;
}

body.dark .header { 
    background: #1e1e1e; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo {
    font-family: 'League Spartan', sans-serif; /* Updated font */
    font-size: 2.8rem;
    font-weight: 800; /* Bold weight for League Spartan */
    color: #64b6d9;
    text-decoration: none;
    transition: transform 0.3s ease;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.05);
}

.desktop-nav a {
    margin-left: 25px;
    color: inherit;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    position: relative;
    padding: 5px 0;
}

.desktop-nav a:hover, body.dark .desktop-nav a:hover { 
    color: #64b6d9; 
    transform: translateY(-2px);
}

/* Active navigation link */
.desktop-nav a.active,
.mobile-menu a.active {
    color: #64b6d9 !important;
    font-weight: 600;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #64b6d9;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-right button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    color: inherit;
    transition: transform 0.3s;
}

.header-right button:hover {
    transform: scale(1.1);
}

.hamburger { display: none; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 700px;
    height: 100vh;
    background: white;
    padding: 120px 40px 40px;
    transition: right 0.4s ease;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark .mobile-menu { 
    background: rgba(30, 30, 30, 0.95); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.mobile-menu.active { right: 0; }

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-menu:hover {
    transform: scale(1.2);
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 1.4rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

body.dark .mobile-menu a {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #64b6d9;
    transform: translateX(10px);
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #64b6d9;
    transition: width 0.3s ease;
}

.mobile-menu a:hover::after,
.mobile-menu a.active::after {
    width: 100%;
}

/* Carousels */
.featured { 
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    position: relative;
    perspective: 1000px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel:active {
    cursor: grabbing;
}

/* 3D Card Effect */
.card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.03) rotateY(10deg) rotateX(5deg);
    z-index: 10;
}

.featured .card {
    flex: 0 0 calc(25% - 19px);
    max-width: 380px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    scroll-snap-align: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured .card:hover {
    transform: translateY(-15px) scale(1.05) rotateY(15deg) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.featured .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured .card:hover img { 
    transform: scale(1.15) rotate(2deg); 
}

.overlay {
    position: absolute;
    inset: 0 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 40px 20px 25px;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    transform: translateZ(20px);
}

.featured .card:hover .overlay {
    background: linear-gradient(transparent, rgba(100, 182, 217, 0.8));
}

/* Small carousels */
.small .card {
    flex: 0 0 calc(25% - 19px);
    max-width: 320px;
    height: 350px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark .small .card { 
    background: #1e1e1e; 
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.small .card:hover {
    transform: translateY(-12px) scale(1.04) rotateY(12deg) rotateX(5deg);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

body.dark .small .card:hover {
    box-shadow: 0 20px 45px rgba(100, 182, 217, 0.2);
}

.small .card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.small .card:hover img { 
    transform: scale(1.1) rotate(1deg); 
}

/* Card text styling */
.small p {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.4s ease;
    color: #333;
    font-size: 1.1rem;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    transform: translateZ(10px);
}

body.dark .small p { 
    background: #1e1e1e; 
    color: #eee;
}

/* Glass effect hover */
.card::after {
    content: 'View Album';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: bold;
    font-size: 1.8rem;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: translateZ(30px);
    pointer-events: none;
}

.card:hover::after { 
    opacity: 1;
    transform: translateZ(50px);
}

/* Banner */
.banner.btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #64b6d9, #3d8fb3);
    color: #000;
    font-size: 2.2rem;
    font-weight: bold;
    padding: 30px;
    margin: 60px auto 0;
    max-width: 900px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-primary 2s infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(100, 182, 217, 0.3);
}

.banner.btn:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 50px rgba(100, 182, 217, 0.5);
    color: #fff;
    background: linear-gradient(135deg, #3d8fb3, #64b6d9);
}

/* Primary pulse animation */
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(100, 182, 217, 0.4); }
    70% { box-shadow: 0 0 0 25px rgba(100, 182, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 182, 217, 0); }
}

/* === SIMPLIFIED SECTION TITLES === */
.section { 
    padding: 80px 0 60px;
    position: relative;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 auto 60px;
    color: #333;
    position: relative;
    padding-bottom: 20px;
    width: 100%;
    max-width: 1200px;
}

/* Simple underline */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #64b6d9;
    border-radius: 2px;
}

/* Dark mode */
body.dark .section-title {
    color: #fff;
}

/* Featured section title special styling */
#home .section-title {
    font-size: 4rem;
    margin-bottom: 80px;
}

/* === CLIENT LOGOS AUTO-MOVING CAROUSEL - TIGHTER SPACING === */
.client-logos-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    padding: 15px 0;
    background: rgba(100, 182, 217, 0.05);
    border-radius: 15px;
}

body.dark .client-logos-carousel {
    background: rgba(100, 182, 217, 0.08);
}

.logos-track {
    display: flex;
    width: 200%;
    animation: slideLogos 30s linear infinite;
    padding: 5px 0;
    gap: 5px;
}

/* Auto-sliding animation */
@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex: 0 0 calc(100% / 6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.logo-item img {
    width: 90%;
    max-width: 140px;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

body.dark .logo-item img {
    background: #2a2a2a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Remove carousel controls */
.carousel-controls {
    display: none !important;
}

/* === INSTAGRAM SECTION === */
.instagram-section {
    background: linear-gradient(135deg, rgba(100, 182, 217, 0.05) 0%, rgba(61, 143, 179, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

body.dark .instagram-section {
    background: linear-gradient(135deg, rgba(100, 182, 217, 0.08) 0%, rgba(61, 143, 179, 0.08) 100%);
}

.instagram-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 182, 217, 0.5), transparent);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.instagram-post {
    text-decoration: none !important;
    color: inherit;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.instagram-post:hover {
    transform: translateY(-10px);
}

.instagram-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.instagram-post:hover img {
    transform: scale(1.08);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 182, 217, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
    color: white;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.instagram-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.instagram-info {
    padding: 25px 20px;
    text-align: center;
    background: transparent;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.instagram-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #64b6d9;
    margin-bottom: 10px;
    font-weight: 700;
}

.instagram-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

body.dark .instagram-info p {
    color: #ccc;
}

/* Dark mode Instagram adjustments */
body.dark .instagram-post {
    background: transparent;
}

body.dark .instagram-post:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* === IMPROVED CAROUSEL BUTTONS === */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 182, 217, 0.9);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
    display: grid;
    place-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    touch-action: manipulation;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: #64b6d9;
    color: black;
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 10px 25px rgba(100, 182, 217, 0.5);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* === REORGANIZED FOOTER STYLES === */
.footer {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    color: #ddd;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #64b6d9, transparent);
}

body.dark .footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

/* Footer Top */
.footer-top {
    margin-bottom: 60px;
    text-align: center;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* === FOOTER LOGO IMAGE STYLES === */
.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo-image {
    max-width: 200px;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(100, 182, 217, 0.5));
}

.footer-logo-link:hover .footer-logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(100, 182, 217, 0.8));
}

/* Hide the text logo when image is displayed */
.footer-logo-text {
    display: none;
}

/* Dark mode adjustment for logo */
body.dark .footer-logo-image {
    filter: drop-shadow(0 0 20px rgba(100, 182, 217, 0.7));
}

.footer-tagline h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #64b6d9;
    margin-bottom: 10px;
}

.tagline-description {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer Middle */
.footer-middle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    padding: 20px;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #64b6d9;
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
    text-shadow: 0 0 10px rgba(100, 182, 217, 0.3);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #64b6d9;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(100, 182, 217, 0.5);
}

.footer-column h4 {
    font-size: 1.2rem;
    color: #fff;
    margin: 20px 0 15px;
    font-weight: 600;
}

/* Services Column */
.services-column ul {
    list-style: none;
}

.services-column li {
    margin-bottom: 12px;
}

.services-column a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.services-column a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #64b6d9;
    transition: transform 0.3s ease;
}

.services-column a:hover {
    color: #64b6d9;
    transform: translateX(5px);
}

.services-column a:hover::before {
    transform: translateX(5px);
}

/* About Column */
.about-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.platforms ul {
    list-style: none;
}

.platforms li {
    margin-bottom: 12px;
}

.platforms a {
    color: #64b6d9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.platforms a:hover {
    color: #fff;
    transform: translateX(5px);
}

.platforms i {
    font-size: 1.2rem;
    width: 24px;
}

/* Contact Column */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    color: #64b6d9;
    font-size: 1.2rem;
    margin-top: 4px;
    width: 24px;
}

.contact-item div {
    flex: 1;
}

.contact-item span {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a,
.contact-item p {
    color: #ddd;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #64b6d9;
}

/* Footer Newsletter */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.footer-newsletter h4 {
    margin-top: 0;
    color: #64b6d9;
}

.footer-newsletter p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(100, 182, 217, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-subscribe {
    background: #64b6d9;
    color: white;
    border: none;
    width: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-subscribe:hover {
    background: #3d8fb3;
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
}

.social-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #64b6d9;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-width: 100px;
}

.social-links a:hover {
    background: rgba(100, 182, 217, 0.2);
    transform: translateY(-5px);
    color: #64b6d9;
}

.social-links i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.social-links span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Copyright & Legal */
.copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.copyright p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #64b6d9;
}

/* === SIMPLIFIED LIGHTBOX STYLES === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lightbox-image-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-info {
    text-align: center;
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
    color: #64b6d9;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(100, 182, 217, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10001;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: #64b6d9;
    color: black;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(100, 182, 217, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 182, 217, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: #64b6d9;
    color: black;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(100, 182, 217, 0.5);
}

.lightbox-prev {
    left: -25px;
}

.lightbox-next {
    right: -25px;
}

/* Lightbox Image Loading Animation */
.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Caption */
.lightbox-caption {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 8px 8px;
}

.lightbox-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.lightbox-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

/* Lightbox Header */
.lightbox-header {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px 8px 0 0;
}

.lightbox-album-title {
    color: #64b6d9;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.lightbox-album-info {
    color: #aaa;
    font-size: 1rem;
}

/* Hide nav buttons on mobile */
@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-close {
        top: -40px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* When lightbox is open, disable body scroll */
body.lightbox-open {
    overflow: hidden;
}

/* Floating WhatsApp Button */
.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
    pointer-events: none;
}

.floating-contact-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-whatsapp 2s infinite, floatButton 3s ease-in-out infinite;
    text-decoration: none !important;
    touch-action: manipulation;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes floatButton {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white;
}

.floating-contact-btn i {
    font-size: 1.5rem;
}

/* WhatsApp pulse animation */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === BACK TO HOME BUTTON === */
.back-to-home {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-home.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-home-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #64b6d9, #3d8fb3);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(100, 182, 217, 0.4);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: floatHomeBtn 3s ease-in-out infinite;
    text-decoration: none !important;
    touch-action: manipulation;
}

@keyframes floatHomeBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.back-to-home-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(100, 182, 217, 0.6);
    background: linear-gradient(135deg, #3d8fb3, #64b6d9);
    color: white;
}

.back-to-home-btn i {
    font-size: 1.3rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .featured .card, .small .card { flex: 0 0 calc(33.33% - 17px); }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .instagram-image-wrapper { height: 280px; }
    .footer-middle { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-tagline h2 { font-size: 2rem; }
    .section-title { font-size: 3rem; }
    #home .section-title { font-size: 3.5rem; }
    
    /* Logo adjustments */
    .logo-item {
        flex: 0 0 calc(100% / 5);
        padding: 4px;
    }
    
    .logo-item img {
        width: 92%;
        max-width: 120px;
        padding: 6px;
    }
    
    .logos-track {
        gap: 4px;
        padding: 4px 0;
        animation: slideLogos 25s linear infinite;
    }
    
    .client-logos-carousel {
        margin: 30px 0;
        padding: 10px 0;
    }
    
    /* Footer logo responsive */
    .footer-logo-image {
        max-width: 180px;
    }
    
    /* Header adjustments */
    .logo {
        font-size: 2.5rem;
    }
    
    .desktop-nav a {
        margin-left: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .featured .card, .small .card { flex: 0 0 calc(50% - 12px); }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .instagram-image-wrapper { height: 260px; }
    .instagram-info h3 { font-size: 1.4rem; }
    .footer-middle { grid-template-columns: 1fr; gap: 40px; }
    .footer-tagline h2 { font-size: 1.8rem; }
    .footer h3 { font-size: 1.4rem; }
    .carousel-btn { display: none !important; }
    .section-title { font-size: 2.5rem; margin-bottom: 50px; }
    #home .section-title { font-size: 3rem; margin-bottom: 60px; }
    .section { padding: 80px 0 40px; scroll-margin-top: 80px; }
    .newsletter-form { flex-direction: column; }
    
    /* Logo adjustments */
    .logo-item {
        flex: 0 0 calc(100% / 4);
        padding: 3px;
    }
    
    .logo-item img {
        width: 95%;
        max-width: 110px;
        padding: 5px;
    }
    
    .logos-track {
        gap: 3px;
        padding: 3px 0;
        animation: slideLogos 20s linear infinite;
    }
    
    .client-logos-carousel {
        margin: 25px 0;
        padding: 8px 0;
        border-radius: 12px;
    }
    
    /* Footer logo responsive */
    .footer-logo-image {
        max-width: 160px;
    }
    
    /* Header adjustments */
    .logo {
        font-size: 2.3rem;
    }
    
    body {
        padding-top: 70px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    html {
        scroll-padding-top: 70px;
    }
    
    .section {
        scroll-margin-top: 70px;
        padding: 70px 0 40px;
    }
    
    /* Mobile floating buttons - positioned horizontally */
    .floating-contact {
        bottom: 25px;
        right: 20px;
        z-index: 1000;
    }
    
    .floating-contact-btn {
        padding: 12px 20px;
        gap: 8px;
        font-size: 0.9rem;
        animation: pulse-whatsapp 2s infinite, floatButtonMobile 3s ease-in-out infinite;
    }
    
    .floating-contact-btn i {
        font-size: 1.3rem;
    }
    
    .back-to-home {
        bottom: 25px;
        left: 20px;
        right: auto;
        transform: none;
    }
    
    .back-to-home.visible {
        transform: translateY(0);
    }
    
    .back-to-home-btn {
        padding: 10px 18px;
        gap: 6px;
        font-size: 0.85rem;
        animation: floatHomeBtnMobile 3s ease-in-out infinite;
    }
    
    .back-to-home-btn i {
        font-size: 1rem;
    }
    
    /* Update float animations for mobile */
    @keyframes floatButtonMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    
    @keyframes floatHomeBtnMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }
    
    /* Show swipe indicators on mobile */
    .carousel::before,
    .carousel::after {
        display: block !important;
    }
    
    /* Add fade effect at the edges */
    .carousel::before {
        background: linear-gradient(90deg, rgba(100, 182, 217, 0.2) 0%, transparent 100%);
        width: 40px;
        height: 100%;
        border-radius: 0;
        left: 0;
        animation: fadeEdge 3s infinite alternate;
    }
    
    .carousel::after {
        background: linear-gradient(270deg, rgba(100, 182, 217, 0.2) 0%, transparent 100%);
        width: 40px;
        height: 100%;
        border-radius: 0;
        right: 0;
        animation: fadeEdge 3s infinite alternate;
    }
    
    @keyframes fadeEdge {
        0% { opacity: 0.1; }
        100% { opacity: 0.3; }
    }
    
    /* Add instruction text for first-time users */
    .carousel-wrapper::before {
        content: "Swipe →";
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        color: #64b6d9;
        font-size: 0.9rem;
        font-weight: 600;
        opacity: 0.7;
        pointer-events: none;
        display: none;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        padding: 5px 15px;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    body.dark .carousel-wrapper::before {
        background: rgba(30, 30, 30, 0.9);
        color: #64b6d9;
    }
}

@media (max-width: 600px) {
    .logo { font-size: 2rem; }
    .featured .card, .small .card { flex: 0 0 calc(100% - 20px); }
    .instagram-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .instagram-image-wrapper { height: 300px; }
    .instagram-overlay i { font-size: 2.5rem; }
    .instagram-overlay span { font-size: 1.1rem; }
    .footer .social a { width: 50px; height: 50px; font-size: 1.5rem; }
    .footer .social { gap: 15px; }
    .footer-content { gap: 30px; }
    .footer .contact li { font-size: 0.95rem; }
    .footer-tagline h2 { font-size: 1.6rem; }
    .tagline-description { font-size: 1rem; }
    .section-title { font-size: 2rem; margin-bottom: 40px; padding-bottom: 15px; }
    #home .section-title { font-size: 2.5rem; margin-bottom: 50px; }
    .carousel-btn { display: none !important; }
    .section { padding: 60px 0 30px; scroll-margin-top: 60px; }
    .social-links { flex-direction: row; justify-content: space-around; }
    .social-links a { min-width: 70px; padding: 10px; }
    .legal-links { flex-direction: column; gap: 15px; align-items: center; }
    .footer-column { padding: 15px 0; }
    .footer-column h3 { font-size: 1.4rem; }
    .footer-top { margin-bottom: 40px; }
    
    /* Mobile logo adjustments */
    .client-logos-carousel {
        margin: 20px 0;
        padding: 10px 0;
        border-radius: 12px;
    }
    
    .logos-track {
        gap: 2px;
        padding: 5px 0;
        animation: slideLogos 18s linear infinite;
    }
    
    .logo-item {
        flex: 0 0 calc(100% / 3);
        padding: 2px;
    }
    
    .logo-item img {
        width: 98%;
        max-width: 100px;
        padding: 4px;
        border-radius: 4px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }
    
    body.dark .logo-item img {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    
    /* Footer logo responsive */
    .footer-logo-image {
        max-width: 140px;
    }
    
    /* Header adjustments for mobile */
    body {
        padding-top: 60px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    html {
        scroll-padding-top: 60px;
    }
    
    .mobile-menu {
        padding: 100px 30px 30px;
    }
    
    .section {
        scroll-margin-top: 60px;
    }
    
    /* Hide indicators on very small screens to avoid clutter */
    .carousel::before,
    .carousel::after {
        opacity: 0.2 !important;
        width: 20px !important;
    }
    
    .carousel-wrapper::before {
        bottom: -25px;
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

/* === EXTREME MOBILE FIX === */
@media (max-width: 480px) {
    .client-logos-carousel {
        margin: 15px 0;
        padding: 8px 0;
        border-radius: 10px;
    }
    
    .logos-track {
        gap: 1px;
        padding: 3px 0;
        animation: slideLogos 15s linear infinite;
    }
    
    .logo-item {
        flex: 0 0 calc(100% / 2.5);
        padding: 1px;
    }
    
    .logo-item img {
        max-width: 90px;
        padding: 3px;
        border-radius: 3px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    body.dark .logo-item img {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    /* Make the logos track wider to ensure proper spacing */
    .logos-track {
        width: 220%;
    }
    
    /* Footer logo responsive */
    .footer-logo-image {
        max-width: 120px;
    }
    
    /* Header extreme mobile */
    .logo {
        font-size: 1.8rem;
    }
    
    body {
        padding-top: 55px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    html {
        scroll-padding-top: 55px;
    }
    
    .mobile-menu {
        padding: 90px 20px 20px;
    }
    
    /* Extreme mobile floating buttons */
    .floating-contact {
        bottom: 20px;
        right: 15px;
    }
    
    .floating-contact-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .floating-contact-btn i {
        font-size: 1.2rem;
    }
    
    .back-to-home {
        bottom: 20px;
        left: 15px;
    }
    
    .back-to-home-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .back-to-home-btn i {
        font-size: 0.9rem;
    }
}