/* ==========================================================================
   HOSANNA DECORS & EVENTS - CSS DESIGN SYSTEM & PREMIUM STYLES
   ========================================================================== */

/* --- Fonts & Core Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #070709;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.18);
    
    --primary-pink: #ff5e8b;
    --primary-pink-glow: rgba(255, 94, 139, 0.3);
    --text-white: #f8f9fa;
    --text-muted: #a0a0a5;
    
    --glow-indigo: rgba(79, 70, 229, 0.25);
    --glow-pink: rgba(219, 39, 119, 0.25);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* --- Background Ambient Light & Liquid Globs --- */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #111115, var(--bg-dark));
    pointer-events: none;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


.liquid-glob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.glob-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--glow-indigo) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
    animation: floatGlob1 25s infinite alternate ease-in-out;
}

.glob-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--glow-pink) 0%, transparent 70%);
    bottom: -15vw;
    right: -10vw;
    animation: floatGlob2 30s infinite alternate ease-in-out;
}

.glob-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--primary-pink-glow) 0%, transparent 70%);
    top: 30vh;
    left: 50%;
    transform: translateX(-50%);
    animation: floatGlob3 20s infinite alternate ease-in-out;
}

@keyframes floatGlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vw, 12vh) scale(1.15); }
}

@keyframes floatGlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vw, -8vh) scale(0.9); }
}

@keyframes floatGlob3 {
    0% { transform: translate(-50%, 0) scale(0.9); }
    100% { transform: translate(-45%, 15vh) scale(1.1); }
}

/* --- Glassmorphism & Premium UI Elements --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 50px 0 rgba(255, 94, 139, 0.05);
}

.glass-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- Typography Utilities --- */
.title-pink {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #f3e5ab 0%, var(--primary-pink) 50%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Scroll Entrance Animations (Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.in-view {
    opacity: 1;
    transform: translate(0);
}

/* --- Buttons --- */
.btn-pink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff8da1 0%, var(--primary-pink) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-pink-glow);
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.btn-pink i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-pink:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 94, 139, 0.5);
}

.btn-pink:hover i {
    transform: translateX(4px);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 31px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

/* ==========================================================================
   SECTION SPECIFIC STYLES
   ========================================================================== */

/* --- Floating Glass Navbar --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-radius: 50px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-logo span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    display: block;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-pink);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-contact-btn {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header scrolled state */
header.scrolled {
    top: 10px;
    width: 95%;
}

header.scrolled .navbar {
    padding: 10px 30px;
    background: rgba(7, 7, 9, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --- Hero Section & Parallax --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 0 20px;
}

.hero-parallax-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    animation: heroCinematicDrift 28s ease-in-out infinite alternate;
}

.hero-parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(0);
    will-change: transform;
}

/* Dark Overlay on Hero to ensure text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(7, 7, 9, 0.4) 0%,
        rgba(7, 7, 9, 0.7) 60%,
        var(--bg-dark) 100%
    );
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-white);
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Hero Staggered Reveal Animations --- */
.hero-fade-down {
    opacity: 0;
    display: inline-block;
    transform: translateY(-20px);
    animation: heroFadeDownKey 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-fade-up-1 {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUpKey 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.hero-fade-up-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUpKey 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.hero-fade-up-3 {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUpKey 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes heroCinematicDrift {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1.5%, -0.8%);
    }
}

@keyframes heroFadeDownKey {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeUpKey {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.about-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vision-mission-card {
    padding: 25px;
}

.vision-mission-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-pink);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-mission-card p {
    font-style: italic;
    color: var(--text-white);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Metric Stats Counter Grid */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-pink);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- Services Grid & Hover Panels --- */
.services {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image-wrapper {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--primary-pink);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.service-features li {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 15px;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Interactive Gallery & Masonry --- */
.gallery {
    padding: 100px 0;
    position: relative;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-pink);
    color: #000;
    border-color: var(--primary-pink);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-pink-glow);
}

/* Masonry Columns */
.gallery-grid {
    columns: 4 250px;
    column-gap: 20px;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-pink);
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--text-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Gallery transitions */
.gallery-item.hidden {
    display: none;
}

/* --- Infrastructure & In-House Section --- */
.infrastructure {
    padding: 100px 0;
    position: relative;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.infra-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.infra-header {
    margin-bottom: 20px;
}

.infra-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-pink);
}

.infra-header span {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.infra-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.infra-highlights {
    list-style: none;
    margin-bottom: 30px;
}

.infra-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.infra-highlights li i {
    color: var(--primary-pink);
    font-size: 1rem;
}

.infra-location-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

/* --- Infinite Client Marquee --- */
.clients-marquee-section {
    padding: 35px 0; /* Reduced padding from 60px to keep container compact */
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 80px;
    animation: marqueeAnimation 45s linear infinite;
    align-items: center;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px; /* Increased height from 50px */
    padding: 0 10px;
    transition: var(--transition-fast);
    border-radius: 10px;
}

.marquee-item img {
    height: 55px; /* Increased logo height from 35px */
    width: auto;
    max-width: 200px; /* Increased max-width from 160px */
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.3s ease;
}

.marquee-item:hover img {
    filter: grayscale(0) opacity(1.0);
}

@keyframes marqueeAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Contact & Custom Booking Form --- */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-intro h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-intro p {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-pink);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-white);
}

.contact-text p, 
.contact-text a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--primary-pink);
}

/* Form Styles */
.contact-form-panel {
    padding: 40px;
}

.contact-form-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary-pink);
}

.form-label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Floating labels */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-input:-webkit-autofill ~ .form-label,
.form-input:autofill ~ .form-label {
    top: -16px;
    font-size: 0.75rem;
    color: var(--primary-pink);
    letter-spacing: 1px;
}

/* Chrome/Edge/Safari Autofill Style Overrides */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus, 
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #121217 inset !important;
    -webkit-text-fill-color: var(--text-white) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-glass) !important;
    box-shadow: 0 0 0px 1000px #121217 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}


textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

/* Custom dropdown styled glassmorphic select */
.form-select-wrapper {
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

.form-select {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.form-select:focus {
    outline: none;
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 10px;
}

.form-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* --- Footer --- */
footer {
    background: #040405;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary-pink);
    color: #000;
    border-color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-pink-glow);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-pink);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--text-white);
}

/* --- Fullscreen Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 5, 0.95);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: var(--text-white);
    margin-top: 20px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--text-white);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    background: var(--primary-pink);
    color: #000;
    border-color: var(--primary-pink);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* --- Preloader Overlay & Animations --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: logoEntrance 1.8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px var(--primary-pink-glow));
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--primary-pink);
    animation: loadingBar 1.5s infinite ease-in-out;
    box-shadow: 0 0 8px var(--primary-pink);
}

@keyframes logoEntrance {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 2px 10px rgba(255, 94, 139, 0.35)) brightness(0.95);
    }
    100% {
        transform: scale(1.03);
        filter: drop-shadow(0 4px 22px rgba(255, 94, 139, 0.55)) brightness(1.1);
    }
}

@keyframes loadingBar {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* --- Navigation & Footer Logo Enhancements --- */
.logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1, .logo-text h2 {
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.nav-logo:hover .logo-img {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(255, 94, 139, 0.45)) drop-shadow(0 2px 25px rgba(255, 215, 0, 0.25));
}

.nav-logo:hover .logo-text h1 {
    color: var(--text-white);
    text-shadow: 0 0 12px rgba(255, 94, 139, 0.4);
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-wrapper:hover .footer-logo {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(255, 94, 139, 0.45)) drop-shadow(0 2px 25px rgba(255, 215, 0, 0.25));
}

.footer-logo-wrapper:hover .logo-text h2 {
    color: var(--text-white);
    text-shadow: 0 0 12px rgba(255, 94, 139, 0.4);
}

.footer-logo-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
}

.footer-logo-wrapper span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 3.2rem;
    }
    
    .about-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .infra-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    header {
        top: 10px;
        width: 95%;
    }
    
    .navbar {
        padding: 15px 25px;
        border-radius: 30px;
    }
    
    .nav-links {
        display: none; /* Toggle handled in JS */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(7, 7, 9, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px;
        border-radius: 20px;
        border: 1px solid var(--border-glass);
        gap: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-contact-btn {
        display: none; /* Hide in header for mobile */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Responsive logo text to fit small screens */
    .nav-logo {
        gap: 8px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .logo-text h1 {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }
    
    .logo-text span {
        font-size: 0.6rem;
        letter-spacing: 1px;
        margin-top: -1px;
    }
    
    /* Reduced section spacing for compact mobile screens */
    .about, 
    .services, 
    .gallery, 
    .infrastructure, 
    .contact {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    /* Stack metrics counters vertically to avoid text compression */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .stat-item {
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        border: 1px solid var(--border-glass);
    }
    
    .stat-number {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce form padding for maximum width space */
    .contact-form-panel {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .lightbox-prev, 
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
