* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bg-color: white;
    --second--bg-color: #bbccb5;
    --text-color: black;
    --main-color: #0d534b;
    --second-color: #66a069;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    
}

body {
    width: 100%;
    height: fit-content;
    margin: 0;
    padding: 0 5%;
    text-align: center;
}

/* --------- HEADER --------- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem 5%;
    background: rgba(224, 224, 224, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

#menu-icon {
    display: none;
    font-size: 3.5rem;
    color: black;
    cursor: pointer;
}

#x-icon {
    display: none; /* Hidden by default for all screen sizes */
    font-size: 3.5rem;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 1002;
}
/* NAVIGATION */
.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1.5rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.navbar.active {
    left: 0;
}

/* BUTTON */
.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg, var(--main-color) 10%, var(--second-color) 100%);
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}

.gradient-btn:hover {
    transform: scale(1.05);

}

.gradient-btn a {
    color: white !important;
}


.gradient-btn a:visited {
    color: white !important;
}
/* --------- HERO SECTION --------- */
section {
    min-height: 100vh;
    padding: 5rem 10%;
    color: var(--text-color);
    text-align: center;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures content is split left & right */
    gap: 5rem;
    flex-wrap: wrap; /* Ensures responsiveness */
}

.home-content {
    flex: 1;
    max-width: 50%;
    text-align: left; /* Align text properly */
}

.home-content h1 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.2;
}

span {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background: linear-gradient(270deg, var(--main-color) 10%, var(--second-color) 100%);
    
    /* Standard property */
    background-clip: text;

    /* Vendor prefixes for compatibility */
    -webkit-background-clip: text; /* Safari, Chrome */
    -moz-background-clip: text;    /* Firefox (older versions, not widely supported) */
    -ms-background-clip: text;     /* Microsoft Edge (not needed for newer versions) */
    -o-background-clip: text;      /* Opera (older versions, not widely needed) */
    
    /* Ensures text color is transparent */
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cursor {
    font-weight: bold;
    color: var(--main-color);
    animation: blink 0.8s infinite;
}

.blink {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}



.home-content h3 {
    font-size: 3rem;
    font-weight: 600;
    margin-top: 1rem;
}

.home-content p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 700px;
    margin-top: 2rem;
}

/* HERO IMAGE */
.home-img {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Pushes image to the right */
    max-width: 50%;
}

.home-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
    /* Add aspect-ratio preservation */
    aspect-ratio: 1/1;
    object-fit: cover;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--second-color),
                0 0 50px var(--second-color),
                0 0 100px var(--main-color);
}

/* SOCIAL ICONS */
.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 1rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: white;
    background-color: var(--main-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

/* WHY ELEEYE SECTION */
.why {
    padding: 5rem 10%;
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Start position */
    animation: fadeIn 1s ease-in-out forwards; /* Animation for section fade-in */
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
}

/* Counter Container with More Spacing */
.counter-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 4rem; /* Increased space between cards */
    justify-content: center;
}

/* Card Styling */
.counter-box {
    background: #f7fcf9;;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out, background 0.5s ease-in-out;
    opacity: 0; /* Initially hidden */
    transform: translateY(30px); /* Start lower */
}

/* Card Hover Effect */
.counter-box:hover {
    background:#cfecd1;
    transform: scale(1.12); /* Slightly larger */
    box-shadow: 0 15px 40px rgba(0, 128, 0, 0.3); /* More lifted shadow */
}

/* Counter Number */
.counter {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--main-color);
}

/* Counter Text */
.counter-box p {
    font-size: 2rem;
    margin-top: 1rem;
}

/* Line-by-line appearance */
@keyframes fadeInCards {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation with delay */
.counter-box:nth-child(1) { animation: fadeInCards 0.8s ease-in-out forwards 0.2s; }
.counter-box:nth-child(2) { animation: fadeInCards 0.8s ease-in-out forwards 0.4s; }
.counter-box:nth-child(3) { animation: fadeInCards 0.8s ease-in-out forwards 0.6s; }
.counter-box:nth-child(4) { animation: fadeInCards 0.8s ease-in-out forwards 0.8s; }
.counter-box:nth-child(5) { animation: fadeInCards 0.8s ease-in-out forwards 1s; }
.counter-box:nth-child(6) { animation: fadeInCards 0.8s ease-in-out forwards 1.2s; }

.why > p {
    font-family: Verdana, Geneva, Tahoma, sans-serif ;
    font-size: 1.8rem;
    font-weight: 530;
    line-height: 1.8;
    margin-top: 10rem;
    text-align: center;
}

.stack-area {
    width: 100%;
    height: 300vh;
    position: relative;
    background: white;
    display: flex;
  }
  .left {
    height: 100vh;
    flex-basis: 50%;
    position: sticky;
    top: 0;
    left: 0;
  }
  .right {
    height: 100vh;
    flex-basis: 50%;
    position: sticky;
    top: 0;
  }
  /*Styling for the left elements content starts here...*/
  .left {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
  }
  .title {
    width: 420px;
    font-size: 84px;
    font-family: Arial, Helvetica, sans-serif ;
    font-weight: 700;
    line-height: 88px;
  }
  
  .sub-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif ;
    font-size: 1.8rem;
    font-weight: 530;
    line-height: 1.8;
    margin-top: 10rem;
    text-align: center;
  }
  /*Styling for the left elements content ends here...*/

  .card {
    width: 330px;
    height: 330px;
    border-radius: 25px;
    margin-bottom: 10px;
    position: absolute;
    top: calc(50% - 175px);
    left: calc(50% - 175px);
    transition: 0.5s ease-in-out;
  }
  .card:nth-child(1) {
    background: #297b61;
  }
  .card:nth-child(2) {
    background:#569e85;
  }
  .card:nth-child(3) {
    background: #5eb477;
  }
  .card:nth-child(4) {
    background: rgb(62, 221, 112);
  }
  .card:nth-child(5) {
    background: rgb(150, 245, 113);
  }
  .card:nth-child(6) {
    background: rgb(189, 250, 167);
  }

  /*Styling for the card content starts here...*/
  .card {
    box-sizing: border-box;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    transition: all 0.5s ease-in-out;
  }
  .sub {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 3rem;
    font-weight: 700;
  }
  .content {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 2rem;
    font-weight: 500;
  }
  /*Styling for the card content ends here...*/

  .away {
    transform-origin: bottom left;
  }

  .card.away {
    transform: translateY(-120vh) rotate(-48deg);
    transition: 0.5s ease-in-out;
    z-index: 1;
}

#about {
    padding: 5rem 10%;
    text-align: center;
    background: var(--bg-color);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease-in-out forwards;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCards 1s ease-in-out forwards;
}

.team-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 2rem;
    color: black;
    font-weight: 600;
}

.team-card p {
    font-size: 1.8rem;
    color: black;
}

.team-card:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCards {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    width: 100vw; /* Full width */
    background: rgb(0, 0, 0); 
    backdrop-filter: blur(10px); /* Glass effect */
    color: white;
    padding: 4rem 5%;
    text-align: center;
    border-radius: 40px 40px 0 0; /* Rounded top corners */
    box-shadow: 0px -10px 30px rgba(0, 0, 0, 0.2); /* Elevated look */
    position: relative;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.footer-info {
    text-align: left;
}

.footer-info h3 {
    font-size: 2.8rem;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

.footer-info p {
    font-size: 1.6rem;
    margin: 0.5rem 0;
}

.footer-info a {
    color: rgb(62, 221, 112);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.footer-info a:hover {
    color: rgb(62, 221, 112);
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease-in-out;
}

.footer-nav a:hover {
    color: rgb(62, 221, 112);
}

.footer-socials {
    margin-top: 1.5rem;
}

.footer-socials a {
    font-size: 2.5rem;
    margin: 0 0.5rem;
    color: white;
    transition: 0.3s ease-in-out;
}

.footer-socials a:hover {
    color: rgb(62, 221, 112);
    transform: scale(1.2);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    font-size: 1.3rem;
    opacity: 0.8;
}

/* --------- RESPONSIVE DESIGN --------- */
@media (max-width: 1250px) {
    html {
        font-size: 60%;
    }

    .home {
        margin-top: 10rem;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .home-content, .home-img {
        max-width: 100%;
    }

    .home-img {
        justify-content: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .counter-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .counter-box:hover {
        background: #cfecd1; /* Light green */
        transform: scale(1.12); /* Slightly larger */
        box-shadow: 0 15px 40px rgba(0, 128, 0, 0.3); /* More lifted shadow */
    }

    .team-container {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info,
    .footer-nav {
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-socials {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    /* Show Menu Icon & Hide Navbar */
    #menu-icon {
        display: block;
        z-index: 1001;
    }

    #x-icon {
        display: none; /* Initially hidden */
        font-size: 3.5rem;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 2rem;
        right: 3rem;
        z-index: 1002;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8); /* Dark overlay */
        backdrop-filter: blur(10px); /* Adds blur effect */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
        z-index: 1000;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        font-size: 2.5rem;
        padding: 1.5rem;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
        transition: 0.3s ease-in-out;
    }

    .navbar a:hover {
        color: #66a069;
    }

    #x-icon {
        display: none;
        position: absolute;
        top: 2rem;
        right: 3rem;
        font-size: 4rem;
        color: white;
        cursor: pointer;
    }

    .gradient-btn {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .home-img {
        max-width: 100%;
        margin-top: 3rem;
    }
    
    .home-img img {
        max-width: 70%;
        border-radius: 25px; /* Change from circle to square on mobile */
        aspect-ratio: 1/1; /* Maintain square aspect ratio */
        object-position: center top; /* Adjust cropping if needed */
    }

    .counter-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 2.5rem;
    }

    .counter-box {
        min-height: 140px;
    }

    .counter-box:hover {
        background: #cfecd1; /* Light green */
        transform: scale(1.12); /* Slightly larger */
        box-shadow: 0 15px 40px rgba(0, 128, 0, 0.3); /* More lifted shadow */
    }

    .stack-area {
        flex-direction: column;
        height: auto;
    }

    .left,
    .right {
        position: static;
        flex-basis: auto;
        width: 100%;
        height: auto;
        padding: 4rem 2rem;
    }

    .left {
        order: 1;
        text-align: center;
    }

    .right {
        order: 2;
        position: relative;
        height: auto;
        min-height: 100vh;
    }

    .title {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        font-size: 5rem;
        line-height: 1.2;
    }

    .sub-title {
        width: 100%;
        max-width: 90%;
        margin: 2rem auto 0;
    }

    .card {
        position: static !important;
        width: 90%;
        max-width: 400px;
        height: 300px;
        margin: 2rem auto;
        transform: none !important;
        left: auto !important;
        top: auto !important;
    }

    .card:nth-child(1) { transform: none !important; }
    .card:nth-child(2) { transform: none !important; }
    .card:nth-child(3) { transform: none !important; }
    .card:nth-child(4) { transform: none !important; }
    .card:nth-child(5) { transform: none !important; }
    .card:nth-child(6) { transform: none !important; }

    .team-container {
        grid-template-columns: repeat(1, 1fr); /* 1 per row */
    }

    .footer {
        padding: 3rem 5%;
        border-radius: 30px 30px 0 0;
    }

    .footer-info h3 {
        font-size: 2.4rem;
    }

    .footer-info p {
        font-size: 1.4rem;
    }

    .footer-nav a {
        font-size: 1.6rem;
    }

    .footer-socials a {
        font-size: 2rem;
    }

    .footer-bottom p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 45%;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .home-content h3 {
        font-size: 1.8rem;
    }

    .home-content p {
        font-size: 1.5rem;
    }

    .home-img img {
        max-width: 90%;
        border-radius: 15px;
    }

    .gradient-btn {
        font-size: 1.4rem;
        padding: 0.8rem 1.2rem;
    }

    .counter-box:hover {
        background: #cfecd1; /* Light green */
        transform: scale(1.12); /* Slightly larger */
        box-shadow: 0 15px 40px rgba(0, 128, 0, 0.3); /* More lifted shadow */
    }

    .title {
        font-size: 4rem;
        line-height: 1.1;
    }

    .card {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        min-height: 250px;
    }
    
    .sub {
        font-size: 2.4rem !important;
    }
    
    .content {
        font-size: 1.8rem !important;
    }
}