/* === GLOBAL VARIABLES === */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #ffc107;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* === NAVBAR === */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Navbar underline for active links */
.navbar-nav .nav-link {
    padding-bottom: 5px;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    height: 3px;
    border-radius: 2px;
}

/* Dropdown menu styles */
.dropdown-menu {
    display: none; /* default hidden for mobile */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Desktop hover dropdown */
@media (min-width: 768px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0;
    }

    .dropdown-toggle::after {
        content: "▼";
        font-size: 0.6rem;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(13,110,253,0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 0 1rem;
}

.hero-title {
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1.2s ease;
    font-size: 1.2rem;
}

/* === CTA BUTTONS === */
.cta-button,
.cta-button-secondary {
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 0.8rem 2rem;
}

.cta-button {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.5);
}

.cta-button-secondary {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.cta-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.5);
    background-color: #e9ecef !important;
    color: #000;
}

/* === THEMES === */
.light-theme {
    background-color: #fff;
    color: #222;
}

.light-theme section { background-color: #f9f9f9; color: #222; }

.light-theme h1, h2, h3 { color: #111; }

.dark-theme {
    background-color: #0b0b0b;
    color: #eee;
}

.dark-theme section { background-color: #141414; color: #eee; }

.dark-theme h1, h2, h3 { color: #f5c542; }

/* === ANIMATIONS === */
@keyframes fadeInLeft { from {opacity:0; transform:translateX(-50px);} to {opacity:1; transform:translateX(0);} }
@keyframes fadeInUp { from {opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }
@keyframes fadeInRight { from {opacity:0; transform:translateX(50px);} to {opacity:1; transform:translateX(0);} }

/* === SECTIONS === */
/*.solar-gradient-section {*/
/*    background: linear-gradient(135deg,#004e92,#fdbb2d);*/
/*    color: #fff;*/
/*    padding: 100px 0;*/
/*}*/

/*.solar-gradient-section h2 { font-weight:700; text-shadow:1px 1px 3px rgba(0,0,0,0.2); }*/
/*.solar-gradient-section p { font-size:1.25rem; opacity:0.9; }*/

.solar-gradient-section {
  background: linear-gradient(135deg, #004e92, #fdbb2d);
  color: white;
  padding: 100px 0;
}

.solar-gradient-section h2 {
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.solar-gradient-section p {
  font-size: 1.25rem;
  opacity: 0.9;
}


.benefits-section { background-color:#f9fafc; }
.benefit-box { background:#fff; border:1px solid #eee; transition:transform 0.3s ease, box-shadow 0.3s ease; }
.benefit-box:hover { transform:translateY(-8px); box-shadow:0 6px 18px rgba(0,0,0,0.1); }
.benefit-icon { width:60px; height:60px; }
.benefit-box h5 { color:#1d3557; font-weight:600; margin-top:10px; }

.dark-section { background-color:#1a1a1a; padding:80px 0; color:#eee; }
.dark-section h2,h5 { font-weight:700; color:#f5c542; }
.dark-section p { color:#ccc; }

.service-card { background:#fff; border:1px solid #e0e0e0; border-radius:10px; padding:30px; box-shadow:0 4px 10px rgba(0,0,0,0.05); transition:transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform:translateY(-6px); box-shadow:0 6px 18px rgba(0,0,0,0.1); }
.service-card .icon { font-size:40px; color:#f7c32e; margin-bottom:15px; }

.benefit-card { background:#fff; color:#000; border-radius:12px; box-shadow:0 5px 15px rgba(255,255,255,0.1); transition:transform 0.3s ease, box-shadow 0.3s ease; height:100%; }
.benefit-card:hover { transform:translateY(-8px); box-shadow:0 8px 25px rgba(255,215,0,0.3); }
.benefit-card .icon { font-size:40px; color:#FFD700; margin-bottom:15px; }

/* === COMPONENTS === */
.glass-card { background:rgba(255,255,255,0.1); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,0.2); animation:fadeInRight 1.5s ease; }
.partner-logo { transition:transform 0.3s ease; }
.partner-logo:hover { transform:translateY(-10px); }
.partner-card { transition:all 0.3s ease; display:flex; flex-direction:column; align-items:center; }
.partner-card:hover { transform:translateY(-8px); box-shadow:0 15px 30px rgba(0,0,0,0.15) !important; }
.partner-img { max-height:80px; width:auto; object-fit:contain; }

/* === GALLERY === */
.gallery-item { position:relative; overflow:hidden; border-radius:10px; cursor:pointer; }
.gallery-item img { width:100%; height:300px; object-fit:cover; transition:transform 0.5s ease; }
.gallery-item:hover img { transform:scale(1.1); }
.gallery-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top,rgba(0,0,0,0.8),transparent); color:#fff; padding:20px; transform:translateY(100%); transition:transform 0.3s ease; }
.gallery-item:hover .gallery-overlay { transform:translateY(0); }

/* === CONTACT === */
.contact-info .info-item { padding:20px; background:#fff; border-radius:10px; box-shadow:0 2px 10px rgba(0,0,0,0.1); }
.form-control:focus { border-color:var(--secondary-color); box-shadow:0 0 0 0.2rem rgba(255,193,7,0.25); }

/* === FOOTER === */
.footer-section { margin-top:auto; border-top:3px solid var(--secondary-color); background:#212529; color:#fff; text-align:center; padding:1.5rem 0; }
.footer-section p { margin:0; color:rgba(255,255,255,0.7); }

/* === WHATSAPP FLOAT === */
.whatsapp-float { position:fixed; width:60px; height:60px; bottom:30px; right:30px; background:#25d366; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:30px; box-shadow:0 4px 15px rgba(37,211,102,0.4); z-index:9999; transition:all 0.3s ease; animation:pulse-whatsapp 2s infinite; }
.whatsapp-float:hover { background:#20ba5a; transform:scale(1.1) translateY(-5px); box-shadow:0 6px 20px rgba(37,211,102,0.6); }

/* Pulse animation */
@keyframes pulse-whatsapp {
    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); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section { height:90vh; }
    .hero-title { font-size:2rem; }
    .hero-subtitle { font-size:1rem; }
    .nav-link { margin:5px 0; }
    .gallery-item img { height:250px; }
    .glass-card { margin-top:3rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size:1.5rem; }
    .hero-subtitle { font-size:0.95rem; }
    .cta-button,
    .cta-button-secondary { width:100%; margin-bottom:0.5rem; }
    .whatsapp-float { width:50px; height:50px; bottom:20px; right:20px; font-size:25px; }
}
