/* Filename: styles.css */
/**
 * Solar India 365 - Modern Vibrant UI/UX
 * Theme: Solar Tech Professional
 */

:root {
    --primary: #2563eb;      /* Vibrant Blue */
    --primary-dark: #1e40af;
    --secondary: #fbbf24;    /* Solar Amber */
    --accent: #10b981;       /* Energy Green */
    --dark: #0f172a;         /* Midnight Blue-Grey */
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--dark); 
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.site-header.scrolled { padding: 0.5rem 0; box-shadow: var(--shadow-xl); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.navbar { height: 80px; display: flex; justify-content: space-between; align-items: center; }
.nav-menu { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-link { 
    font-weight: 600; font-size: 0.95rem; color: var(--dark);
    text-decoration: none; transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem; border-radius: 12px; font-weight: 700;
    transition: var(--transition); display: inline-flex; align-items: center;
    gap: 10px; cursor: pointer; text-decoration: none; border: none;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-3px); background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--dark); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3); }

/* Hero Slider */
.hero-slider {
    position: relative; height: 100vh; width: 100%; overflow: hidden;
    background: var(--dark);
}
.slider-track {
    display: flex; height: 100%; width: 300%; /* Adjust based on slide count */
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}
.slide {
    width: 33.333%; height: 100%; position: relative;
    background-size: cover; background-position: center;
}
.slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), transparent);
}
.slide-content {
    position: relative; z-index: 10; height: 100%; display: flex;
    flex-direction: column; justify-content: center; color: white;
}
.slide-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.slide-text { font-size: 1.25rem; max-width: 600px; margin-bottom: 2.5rem; opacity: 0.9; }

/* Slider Controls */
.slider-nav {
    position: absolute; bottom: 40px; right: 40px; z-index: 20;
    display: flex; gap: 15px;
}
.slider-arrow {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* Calculator Section */
.section-padding { padding: 100px 0; }
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px; padding: 60px;
}
.colorful-card {
    background: white; border-radius: 24px; padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}
.colorful-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }

/* table */ 
table th {
    display: table-cell;
    vertical-align: inherit;
    font-weight: bold;
    text-align: left;
    unicode-bidi: isolate;
}


/* Footer */
.site-footer { background: var(--dark); color: white; padding: 80px 0 40px; }
.footer-heading { color: var(--secondary); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .slide-content { text-align: center; align-items: center; }
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figcaption {
  margin-top: .75rem;
  font-size: .95rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0B3C5D;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: .25rem .75rem;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ******************************************* */

/* ===== SIMPLE GALLERY ===== */

/* ================================================== */
/* FINAL GALLERY FIX — 2 CARDS PER ROW (DESKTOP)       */
/* ================================================== */

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Desktop: force exactly 2 columns */
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure gallery cards behave correctly */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Smooth zoom */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay visibility */
.gallery-item:hover .overlay {
    opacity: 1;
}

/* ================================================== */
/* FIX: FORCE GALLERY TEXT OVERLAY VISIBILITY          */
/* ================================================== */

/* Ensure card has predictable height */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Image must sit below overlay */
.gallery-item img {
    display: block;
    position: relative;
    z-index: 1;
}

/* Overlay layer */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.2)
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;

    transition: opacity 0.4s ease;
}

/* SHOW overlay on hover */
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Text clarity */
.gallery-item .overlay h3,
.gallery-item .overlay p {
    color: #ffffff;
    margin: 0;
}

.gallery-item .overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.gallery-item .overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Mobile: always visible (no hover) */
@media (max-width: 768px) {
    .gallery-item .overlay {
        opacity: 1;
    }
}

/* ===== WhatsApp Floating Button ===== */
/* ===== WhatsApp Floating Button (LIVE-SAFE) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999; /* higher than header */
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== Toast Notification (FIXED LIVE ISSUE) ===== */
.toast {
    display: none; /* IMPORTANT */
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: var(--dark);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 9998;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
