:root {
    /* These are default fallback values - will be overridden by dynamic settings from database */
    --primary-color: #2c7a3e;
    --secondary-color: #f39c12;
    --solar-yellow: #FFD700;
    --solar-orange: #FF8C00;
    --solar-sky: #87CEEB;
    --solar-green: #32CD32;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
    /* Gradients will be dynamically generated based on theme colors */
    --gradient-solar: linear-gradient(135deg, var(--solar-yellow) 0%, var(--solar-orange) 50%, var(--solar-orange) 100%);
    --gradient-green: linear-gradient(135deg, var(--primary-color) 0%, var(--solar-green) 100%);
    --gradient-sky: linear-gradient(135deg, var(--solar-sky) 0%, #4682B4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font import removed - fonts are now loaded dynamically from database via index.php */

body {
    /* Font family will be set dynamically from database via inline styles in index.php */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

html {
    scroll-behavior: smooth;
}

.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7) !important;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-solar);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 15px !important;
    border-radius: 25px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-solar);
    border-radius: 25px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--solar-yellow);
    transition: var(--transition);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--solar-yellow);
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 60%;
}

.hero-section {
    margin-top: 0px;
  
    height: calc(100vh - 70px); /* 70px is navbar height */
}

#home.hero-section {
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh; 
}

/* Remove duplicate navbar styles */


.carousel {
    
    height: 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.5);
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(44, 122, 62, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-caption h1 {
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    background: var(--gradient-solar);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease;
    color: #fff;
    font-weight: 300;
}

.carousel-caption .btn {
    animation: fadeInUp 1.4s ease;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    background: var(--gradient-solar);
    border: none;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.carousel-caption .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.carousel-caption .btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-green);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(44, 122, 62, 0.5);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(44, 122, 62, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

.display-5 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.text-center .display-5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-solar);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--solar-yellow);
    animation: pulse 2s infinite;
}

.text-center .display-5::before {
    content: '☀';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: rotate 10s linear infinite;
    opacity: 0.7;
}

.text-center .display-5 {
    position: relative;
    padding-left: 50px;
}

.service-card {
    transition: var(--transition);
    border-radius: 20px;
    overflow: hidden;
    background: white;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-solar);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
    border-color: var(--solar-yellow);
}

.service-card .card-body {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: var(--gradient-solar);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-solar);
    opacity: 0;
    animation: pulse 2s infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.project-card {
    transition: var(--transition);
    border-radius: 20px;
    overflow: hidden;
    background: white;
    border: 2px solid transparent;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-green);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(44, 122, 62, 0.3);
    border-color: var(--primary-color);
}

.project-card img {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}

.project-card:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

.project-card .card-body {
    position: relative;
    z-index: 2;
    background: white;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.benefit-card:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.benefit-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.3);
    border-color: var(--solar-orange);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-solar);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
    transition: var(--transition);
    position: relative;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.6);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.system-comparison {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.system-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-solar);
    animation: shimmer 3s infinite;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-control,
.form-select {
    border-radius: 15px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--solar-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25), 0 5px 20px rgba(255, 215, 0, 0.2);
    background: white;
    transform: translateY(-2px);
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--solar-yellow);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Tablet and below (768px and below) */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.75rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-caption .btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    .hero-section {
        height: 50vh;
    }

    #home.hero-section {
        height: 50vh;
    }

    .display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .service-icon,
    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i,
    .benefit-icon i {
        font-size: 2rem;
    }

    .project-card img {
        height: 200px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    .carousel-caption {
        width: 95%;
        padding: 10px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .carousel-caption .btn {
        padding: 6px 20px;
        font-size: 0.85rem;
    }

    section {
        padding: 30px 0;
    }

    .hero-section {
        height: 40vh;
    }

    #home.hero-section {
        height: 40vh;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    .service-card,
    .project-card,
    .benefit-card {
        margin-bottom: 20px;
    }

    .service-icon,
    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon i,
    .benefit-icon i {
        font-size: 1.5rem;
    }

    .project-card img {
        height: 180px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .form-control,
    .form-select {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .system-comparison .card-body {
        padding: 1.5rem;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Extra small devices (400px and below) */
@media (max-width: 400px) {
    .carousel-caption h1 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Tablet landscape (992px and above) */
@media (min-width: 992px) {
    .navbar-nav {
        margin-left: auto;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 10px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.carousel-indicators button.active {
    background-color: var(--solar-yellow);
    border-color: var(--solar-yellow);
    box-shadow: 0 0 15px var(--solar-yellow);
    transform: scale(1.3);
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
}

h4, h5 {
    color: #2c3e50;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(44, 122, 62, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-light > .container {
    position: relative;
    z-index: 1;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card {
    border: none;
}

.list-unstyled li {
    padding-left: 0;
}

.text-success {
    color: var(--primary-color);
}

.border-0 {
    border: 0;
}

.rounded {
    border-radius: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Additional beautiful effects */
.card {
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

/* Animated background particles effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scale(1);
    }
}

/* Enhanced text effects */
.lead {
    position: relative;
}

/* Glow effect for important elements */
.glow-effect {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                 0 0 20px rgba(255, 215, 0, 0.3),
                 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Smooth transitions for all interactive elements */
a, button, .card, .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced shadow effects */
.shadow-enhanced {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(255, 215, 0, 0.1);
}

/* Gradient text effect */
.gradient-text {
    background: var(--gradient-solar);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Enhanced badge styles */
.badge {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Beautiful scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-solar);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-green);
}
