/* =========================================
   UB'CAL INDIA - MASTER CSS
   ========================================= */

:root {
    --primary: #0A2540;       
    --accent: #00B4D8;        
    --accent-hover: #90E0EF;  
    --light-bg: #F0F8FF;      
    --text-main: #334155;     
    --font-heading: 'Montserrat', sans-serif; 
    --font-body: 'Inter', sans-serif;         
    --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
    --slider-width: 100%; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* --- FLOATING BUTTONS (WhatsApp & Scroll to Top on Right) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px; /* Moved to Right */
    background-color: #25d366; 
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-wa 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none; 
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.scroll-to-top {
    position: fixed;
    bottom: 100px; /* Lifted up to sit above WhatsApp */
    right: 35px;   /* Centered perfectly above the WhatsApp icon */
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9989; /* Just below WhatsApp z-index */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float { 
        width: 55px; 
        height: 55px; 
        bottom: 20px; 
        right: 20px; 
    }
    .scroll-to-top { 
        width: 45px; 
        height: 45px; 
        bottom: 85px; /* Sits nicely above mobile WhatsApp */
        right: 25px; 
        font-size: 1.2rem; 
    }
}
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #FFFFFF;
    line-height: 1.7;
    overflow-x: hidden; 
    width: 100%;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: var(--accent); z-index: 10000;
    transition: width 0.1s ease-out;
}

/* --- Fluid Typography & Layout --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); font-weight: 900; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; color: #fff; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; text-transform: uppercase; }
.kicker { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.text-center { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.text-light { color: #fff !important; }
.bg-dark { background-color: var(--primary); }
.bg-light { background-color: var(--light-bg); }
.max-w-margin { max-width: 600px; margin: 0 auto; }

.section { padding: clamp(4rem, 10vw, 8rem) 1.5rem; }
.container { max-width: 1280px; margin: 0 auto; width: 100%; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

/* --- DESKTOP NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 9999;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem); 
    background: rgba(10, 37, 64, 0.0);
    transition: var(--transition-slow);
}

.navbar.scrolled, .navbar.menu-open {
    background: rgba(10, 37, 64, 0.98); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 1rem clamp(1.5rem, 5vw, 4rem); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-family: var(--font-heading); font-size: 2rem; color: #fff; font-weight: 900; letter-spacing: -1px; position: relative; z-index: 10002;}
.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    flex-direction: row; 
    list-style: none; 
    gap: 1.5rem; 
    margin: 0; 
    padding: 0; 
}

/* Nav Links & Active State */
.nav-links a { 
    color: #fff; 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-fast); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--accent) !important; 
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%; 
}

.burger { display: none; cursor: pointer; z-index: 10002; }
.burger div { width: 25px; height: 3px; background: #fff; margin: 5px; transition: var(--transition-fast); }

/* --- Immersive Hero --- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 1.5rem; overflow: hidden;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #031526; z-index: -2; }
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(3,21,38,0.7), rgba(10,37,64,0.9)); z-index: -1;
}
.hero p { color: #e0f2fe; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 600px; margin: 0 auto 2rem; }

.magnetic-wrap { display: inline-block; padding: 10px; }
.btn-accent {
    display: inline-block; padding: 1rem 2rem;
    background: var(--accent); color: #000;
    text-decoration: none; font-family: var(--font-heading); font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    border-radius: 4px; transition: background 0.3s ease, transform 0.1s ease-out;
}
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3); }

/* --- INTERACTIVE: Before & After Slider --- */
.comparison-slider {
    position: relative; width: 100%; max-width: 900px; margin: 0 auto;
    height: clamp(300px, 50vw, 500px); overflow: hidden; border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    touch-action: none;
}
.comparison-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.comparison-image.after { width: 50%; z-index: 10; border-right: 4px solid var(--accent); overflow: hidden; }

/* Slider Real Images */
.slider-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.comparison-image.after .slider-img { 
    width: var(--slider-width); max-width: none; position: absolute; left: 0; top: 0; 
}

/* Floating Labels */
.label {
    position: absolute; bottom: 15px; padding: 6px 12px;
    background: rgba(10,37,64,0.85); color: white; font-weight: 600; border-radius: 4px; 
    font-family: var(--font-heading); font-size: 0.85rem;
    z-index: 30; pointer-events: none;
}
.label-before { right: 15px; }
.label-after { left: 15px; }

/* Slider Handle */
.slider-handle {
    position: absolute; top: 0; left: 50%; width: 40px; height: 40px;
    background: var(--accent); border-radius: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 20; cursor: ew-resize; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0,180,216,0.5); border: 3px solid #fff; transition: transform 0.1s;
}
.slider-handle:active { transform: translate(-50%, -50%) scale(1.1); }
.slider-arrows { color: #fff; font-weight: bold; font-size: 1rem; }

/* --- 3D Tilt Cards --- */
.tilt-card-wrap { perspective: 1000px; }
.premium-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(10,37,64,0.05);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    transform-style: preserve-3d; border: 1px solid rgba(0,180,216,0.1);
    cursor: pointer; height: 100%;
}
.card-content { padding: 2rem; transform: translateZ(30px); }
.card-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.link-arrow { color: var(--accent); font-weight: 700; display: inline-block; margin-top: 1.5rem; font-family: var(--font-heading); transition: var(--transition-fast);}
.premium-card:hover .link-arrow { color: var(--primary); transform: translateX(5px); }

img.card-img {
    width: 100%; height: 200px; object-fit: cover; display: block;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

/* --- Gallery Mosaic --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-rows: 250px; gap: 1rem; }
.gallery-item { border-radius: 4px; overflow: hidden; position: relative; cursor: pointer; background: #cbd5e1; display: flex; align-items: center; justify-content: center;}

.gallery-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,37,64,0.85); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition-fast); color: var(--accent); font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; z-index: 2;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-item.large { grid-column: span 2; grid-row: span 2; }
    .gallery-item.wide { grid-column: span 2; }
}

/* --- Forms (From Contact Page) --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.form-control {
    width: 100%; padding: 1rem; border: 1px solid #cbd5e1; border-radius: 4px;
    font-family: var(--font-body); font-size: 1rem; color: var(--text-main);
    background-color: #f8fafc; transition: var(--transition-fast);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1); background-color: #ffffff; }
textarea.form-control { resize: vertical; }

/* --- Footer --- */
footer { background: var(--primary); color: #fff; padding: 4rem 1.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3rem; margin-bottom: 2rem; }
.footer-brand h2 span { color: var(--accent); }
.footer-brand p { color: #94a3b8; font-size: 0.95rem; margin-top: 1rem;}
footer h4 { margin-bottom: 1.5rem; color: #fff; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: inline-block; color: #94a3b8; text-decoration: none; margin-bottom: 1rem; font-size: 1rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.footer-contact p { color: #94a3b8; margin-bottom: 0.8rem; }
.footer-bottom { text-align: center; color: #64748b; font-size: 0.85rem;}

/* --- Scroll Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* =========================================
   MOBILE RESPONSIVENESS (BREAKPOINT: 992px)
   ========================================= */
@media (max-width: 992px) {
    
    .nav-links {
        position: fixed; right: -100%; top: 0; height: 100vh; width: 100%;
        background: var(--primary); display: flex; flex-direction: column; 
        justify-content: center; align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        gap: 1.5rem; z-index: 10001;
        list-style: none !important; padding: 0; margin: 0;
    }
    
    .nav-links.active { right: 0; }
    .nav-links li { list-style: none !important; }
    
    .nav-links a { 
        color: #ffffff !important; text-decoration: none !important; 
        font-size: 1.2rem; letter-spacing: 1.5px; font-weight: 700;
        text-transform: uppercase; transition: var(--transition-fast);
    }
    
    .nav-links a:hover, .nav-links a.active { color: var(--accent) !important; }

    .burger { display: block; } 
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .premium-card { transform: none !important; transition: none; } 
    .form-wrapper { padding: 2rem !important; }
}