/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header and Hero sections */
header.hero, 
header.hero-about,
.header-hero {
    position: relative;
    background: url('../images/solar-panels.jpg') no-repeat center center/cover;
    height: 100vh;
    color: white;
    text-align: center;
    margin-top: -80px;
}

/* Overlay styles */
header .overlay, 
.about-hero .overlay,
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Logo styles */
.header-logo {
    position: relative;
    z-index: 1000;
}

.header-logo img {
    max-width: 300px;
    margin-top: 80px;
}

/* Desktop Navigation styles */
.header-nav ul,
nav ul {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    display: flex;
    gap: 10px;
}

.header-nav ul li,
nav ul li {
    display: inline;
}

.header-nav ul li a,
nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s;
}

.header-nav ul li a:hover,
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}



/* Pictures page styles */
.pictures-page {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/solar-panels.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding-bottom: 80px;
}

.carousel-container {
    max-width: 600px;
    margin: 60px auto 0;
    padding: 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.carousel-container h1 {
    color: white;
    margin-bottom: 40px;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel {
    position: relative;
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 3;
}

.carousel-track-container {
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-button {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 24px;
    padding: 15px 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    transition: background-color 0.3s, transform 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: -50px;
}

.next-button {
    right: -50px;
}

/* About page styles */
.about-page {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/solar-panels.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    padding-bottom: 80px;
    
}


.about-sections-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
    gap: 20px;
    margin-top: -180px;
}

.about-section {
    flex: 1;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

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

.about-section h2 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}


.about-section p {
    line-height: 1.6;
    margin: 0;
    font-size: 18px;
}

/* Services page styles */
.services-page {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/solar-panels.jpg') no-repeat center center/cover;
    padding-bottom: 80px;
}

.services-header-text {
    opacity: 0;
    animation: fadeIn 2s forwards;
    text-align: center;
    margin-top: 30px;
    padding: 0 20px;
    color: white;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 20px;
    margin: 20px;
    gap: 20px;
}

.services-list li {
    flex: 1 1 30%;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.services-list li:hover {
    transform: translateY(-5px);
}

/* Contact page styles */
.contact-page {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/solar-panels.jpg') no-repeat center center/cover;
    color: white;
    padding-bottom: 80px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
    max-width: 800px; /* Increased max-width for side-by-side layout */
    margin: 40px auto 20px;
    padding: 0 20px;
}

.contact-container,
.contact-info {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 10px;
    flex: 1; /* Allows containers to share available space */
    min-width: 300px; /* Ensures responsiveness on smaller screens */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    color: #FFD700;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5em;
    color: #FFD700;
    min-width: 30px;
    text-align: center;
}

/* New styles for links inside contact-item */
.contact-item a {
    color: #FFD700; /* Sets link color to yellow */
    text-decoration: none; /* Removes underline from links */
    font-size: 16px; /* Adjust font size if needed */
}

.contact-item a:hover {
    color: #FFC700; /* Slightly lighter yellow on hover */
    text-decoration: underline; /* Adds underline on hover */
}

/* Hide mobile contact info on desktop */
@media (min-width: 768px) {
    .mobile-contact-info {
        display: none;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.cta-button {
    background-color: #FFD700;
    color: black;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.cta-button:hover {
    background-color: #FFC700;
}

/* Footer styles */
footer {
    background: rgba(25, 42, 86, 0.9);
    color: white;
    padding: 15px 0;
    font-size: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    backdrop-filter: blur(5px);
    text-align: center;
    z-index: 1000;
}



/* Mobile styles */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .header-nav ul,
    nav ul {
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        right: auto;
        width: 90%;
        max-width: 400px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 25px;
        padding: 12px 15px;
        justify-content: space-around;
        gap: 5px;
        z-index: 1000;
    }

    .header-nav ul li a,
    nav ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Mobile Hero */
    header.hero, 
    header.hero-about,
    .header-hero {
        height: 90vh;
        margin-top: -60px;
    }

    .header-logo img {
        max-width: 200px;
        margin-top: 60px;
    }

    /* Mobile Pictures Page */
    .carousel {
        height: 300px;
    }

    .carousel-container {
        margin: 30px auto 60px;
        padding: 15px;
    }

    .carousel-button {
        bottom: -40px;
        top: auto;
        transform: none;
        
        &.prev-button { left: 25%; }
        &.next-button { right: 25%; }
    }

    /* Mobile About Page */
    .about-sections-container {
        flex-direction: column;
        margin-top: -30px;
        padding: 40px 15px 80px;
    }

    .about-section {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }


    
    /* Mobile Services Page */
    .services-list {
        margin-top:-20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px; /* Reduced gap to save space */
        padding: 10px;
    }

    .services-list li {
        margin-top:-20px;
        flex: none;
        width: 100%;
        margin: 0;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        box-sizing: border-box;
        overflow-wrap: break-word; /* Ensures long words wrap to next line */
    }

    .services-header-text h1 {
        
        
        font-size: 18px;
    }

    .services-header-text h2 {
    
        font-size: 14px;
        
    }
    
    

    /* Mobile Contact Page */
/* Hide desktop contact info on mobile */
@media (max-width: 767px) {
    .contact-info {
        display: none;
    }
}

/* Style for mobile contact info */
.mobile-contact-info {
    margin-bottom: 10px; /* Adjust the margin to move the info down */
    margin-top: -10px;
}

.mobile-contact-info h2 {
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px; /* Made the text smaller */
}

.mobile-contact-info p {
    color: #FFFFFF;
    margin-bottom: 8px;
    font-size: 12px; /* Made the text smaller */
    text-align: center;
    line-height: 1.4;
}

.mobile-contact-info a {
    color: #FFD700; /* Gold color for links */
    text-decoration: none;
}

.mobile-contact-info a:hover {
    text-decoration: underline;
}

.mobile-contact-info strong {
    font-size: 14px; /* Made the text smaller */
}

.contact-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 25px; /* Adjusted padding for a smaller container */
    border-radius: 10px;
    width: 80%; /* Adjusted width to fit the screen */
    max-width: 350px; /* Adjusted max-width to make the container smaller */
    /*max-height: 500px */
    margin-right:35px;
    box-sizing: border-box;
    position: relative;
    
}

    /* Form styles adjustments */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 20px;
    }

    /* Mobile Footer */
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
        z-index: 999;
    }

    /* Content Spacing */
    .main-content {
        padding: 15px;
        margin-bottom: 200px; /* To prevent overlap with fixed elements */
    }
}

/* Small screen optimization */
@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }

    .about-section h2 {
        font-size: 18px;
    }

    .about-section p,
    .services-list li {
        font-size: 12px;
    }

    /* Further adjustments for small screens */
    .contact-container::before {
        font-size: 14px;
    }

    .cta-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Mobile Navigation Styles */
.mobile-nav {
    display: none; /* Hidden by default */
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}

.dropdown-menu.active {
    right: 0;
}

.dropdown-menu nav ul {
    display: flex;
    flex-direction: column;
    padding: 80px 0 0 0;
    position: relative;
    top: 0;
    right: 0;
    background: none;
    backdrop-filter: none;
}

.dropdown-menu nav ul li {
    width: 100%;
    text-align: left;
}

.dropdown-menu nav ul li a {
    padding: 15px 25px;
    display: block;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .dropdown-menu {
        display: block;
    }
}