/* Global Styles */
:root {
    --deep-blue: #0A2472;
    --electric-green: #2E7D32;
    --solar-yellow: #FFB300;
    --dark-text: #1A2A3A;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray-light: #E9ECEF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--deep-blue);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 70px;
}

.gif-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-right: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 179, 0, 0.6));
    cursor: pointer;
    animation: slideStraight 2.5s ease-out forwards;
}

@keyframes slideStraight {
    0% {
        transform: translateX(-500px) scale(0.7);
        opacity: 0;
    }

    30% {
        transform: translateX(-250px) scale(0.9);
        opacity: 0.6;
    }

    60% {
        transform: translateX(-80px) scale(1.1);
        opacity: 0.9;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.text-container {
    pointer-events: none;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    animation: textReveal 2s ease-out forwards;
    opacity: 0;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.jas-part {
    color: var(--solar-yellow);
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    margin-right: 5px;
}

.energies-part {
    color: var(--white);
    font-size: clamp(1.1rem, 3.5vw, 1.8rem);
}

.ltd-part {
    color: var(--white);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-left: 5px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    animation: menuFade 1.8s ease-out forwards;
    opacity: 0;
}

@keyframes menuFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--solar-yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--solar-yellow);
}

.nav-menu a.active {
    color: var(--solar-yellow);
}

.nav-menu a.active::after {
    width: 100%;
}

.cta-button {
    background: var(--solar-yellow);
    color: var(--deep-blue) !important;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.cta-button:hover {
    background: var(--electric-green);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 36, 114, 0.75);
    z-index: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--solar-yellow);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 20px;
}

.carousel-arrow:hover {
    background: var(--solar-yellow);
    color: var(--deep-blue);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    grid-column: 1 / 2;
}

.hero-right {
    grid-column: 2 / 3;
    text-align: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 span {
    color: var(--solar-yellow);
    display: block;
}

.swahili {
    color: var(--solar-yellow);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    padding: 15px 30px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--solar-yellow);
    color: var(--deep-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--electric-green);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--electric-green);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--electric-green);
}

.hero-jpg {
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: transform 0.5s ease;
    animation: gentleFloat 4s ease-in-out infinite;
}

.hero-jpg:hover {
    transform: scale(1.05);
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Services Preview Section */
.services-preview {
    padding: 80px 0;
    background: var(--electric-green);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--deep-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--solar-yellow);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.service-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--electric-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--solar-yellow);
    gap: 12px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: var(--deep-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--solar-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--deep-blue);
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: var(--deep-blue);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Services Detail */
.services-detail {
    padding: 80px 0;
    background: var(--light-bg);
}

.service-detail-item {
    margin-bottom: 60px;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse .service-detail-text {
    direction: ltr;
}

.service-tag {
    display: inline-block;
    background: var(--solar-yellow);
    color: var(--deep-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-detail-text h2 {
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.service-detail-text h3 {
    margin: 20px 0 15px;
    color: var(--deep-blue);
}

.service-detail-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-detail-text ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-detail-text ul li i {
    color: var(--electric-green);
    font-size: 18px;
}

.service-detail-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Service Detail Full Page */
.service-detail-full {
    padding: 80px 0;
    background: var(--light-bg);
}

.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.service-intro h2 {
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-block {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-block h3 {
    color: var(--deep-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-block h3 i {
    color: var(--solar-yellow);
    font-size: 1.5rem;
}

.feature-block p {
    color: #555;
    line-height: 1.7;
}

.service-benefits {
    background: var(--deep-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
}

.service-benefits h3 {
    color: var(--solar-yellow);
    margin-bottom: 25px;
}

.service-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-benefits ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.service-benefits ul li i {
    color: var(--solar-yellow);
}

.cta-section {
    text-align: center;
    background: var(--electric-green);
    padding: 50px;
    border-radius: var(--border-radius);
}

.cta-section h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--white);
    margin-bottom: 25px;
    opacity: 0.9;
}

/* About Detail */
.about-detail {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-story {
    margin-bottom: 50px;
}

.about-story h2 {
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.mission-card,
.vision-card {
    background: var(--deep-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.mission-card i,
.vision-card i {
    font-size: 48px;
    color: var(--solar-yellow);
    margin-bottom: 20px;
}

.mission-card h3,
.vision-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.mission-card p,
.vision-card p {
    color: var(--white);
}

.core-values {
    margin-bottom: 50px;
}

.core-values h2 {
    color: var(--deep-blue);
    text-align: center;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background: var(--deep-blue);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-item i {
    font-size: 40px;
    color: var(--solar-yellow);
    margin-bottom: 15px;
}

.value-item h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.value-item p {
    color: var(--white);
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--deep-blue);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--solar-yellow);
    margin-bottom: 10px;
}

.stat-card .stat-label {
    color: var(--white);
    font-weight: 500;
}

/* Map Section */
.map-section {
    height: 400px;
    width: 100%;
    background: #ddd;
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Tanzania_in_Africa_%28-mini_map_-rivers%29.svg/1024px-Tanzania_in_Africa_%28-mini_map_-rivers%29.svg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 36, 114, 0.5);
}

.map-pin {
    width: 50px;
    height: 50px;
    background: var(--solar-yellow);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    animation: pinPulse 2s infinite;
    z-index: 2;
}

.map-pin::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: 15px;
    left: 15px;
}

@keyframes pinPulse {

    0%,
    100% {
        transform: rotate(-45deg) scale(1);
    }

    50% {
        transform: rotate(-45deg) scale(1.2);
    }
}

/* Footer */
.footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--solar-yellow);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-section p:hover {
    transform: translateX(5px);
}

.footer-section i {
    color: var(--solar-yellow);
    width: 20px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--solar-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--solar-yellow);
    color: var(--deep-blue);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {

    .services-grid,
    .features-grid,
    .service-features,
    .service-benefits ul,
    .mission-vision,
    .values-grid,
    .team-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .hero-content,
    .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-detail-content.reverse {
        direction: ltr;
    }

    .hero-right {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--deep-blue);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        transition: right 0.3s ease;
        z-index: 1000;
        opacity: 1;
        animation: none;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    .gif-container {
        width: 80px;
        height: 80px;
        margin-right: -15px;
    }

    .sun-gif {
        width: 100px;
        height: 100px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .service-card,
    .feature-card,
    .value-item,
    .stat-card {
        padding: 20px;
    }
}

/* Energy Particles */
.energy-particle {
    position: fixed;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #FFB300, #FF8C00);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    filter: blur(1px);
    animation: particleFly 3s ease-out forwards;
    box-shadow: 0 0 20px #FFB300;
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--deep-blue);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--solar-yellow);
}