@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
    max-width: 100%; 
    box-sizing: border-box; 
}

*, *:before, *:after {
  box-sizing: inherit; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter';
    background: #121212;
    color: white;
    overflow-x: hidden; 
    width: 100%;
    max-width: 100%; 
}

:root {
    --primary-color: #4caf50;
    --secondary-color: #1E90FF;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(255, 255, 255, 0.1);
    --section-padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #292929;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff6e;
}

main { 
    width: 100%;
    max-width: 100%;
    overflow: hidden; 
}

.logo-text {
    font-weight: bold;
    font-size: 1.5em;
}

.hero {
    position: relative;
    height: 100vh;
    background: url('../../Images/MainImages/Background.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 20px;
    width: 100%;
    max-width: 100%; 
    overflow: hidden; 
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 5px 1px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.212);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.navbar a.active {
    background-color: white;
    color: #000;
}

.animated-text {
    font-size: 5em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    max-width: 100%; 
}

.first-line,
.second-line {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 2s ease-out forwards;
}

.first-line {
    animation-delay: 0.2s;
}

.second-line {
    margin-left: 60px;
    animation-delay: 1s;
}

.smarter {
    font-weight: bold;
    color: #1E90FF;
}

.greener {
    font-weight: bold;
    color: #4caf50;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-navbar {
    display: none;
}

.content-section {
    padding: 50px;
    text-align: center;
    display: none;
}

.centered-text {
    display: none;
}

.widgets {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
    padding-left: 20px; 
    padding-right: 20px;
}

.widget {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px); 
    padding: 15px;
    border-radius: 12px; 
    cursor: pointer;
    transition: background 0.3s ease; 
    width: 300px;
    max-width: calc( (100% / 3) - 20px );
    height: 150px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    position: relative; 
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
    flex-shrink: 0;
    overflow: hidden; 
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget:nth-child(1) {
    animation-delay: 2s;
}

.widget:nth-child(2) {
    animation-delay: 2.3s;
}

.widget:nth-child(3) {
    animation-delay: 2.6s;
}

.widget:hover {
    background: rgba(255, 255, 255, 0.4);
}

.widget-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35%;
    flex-shrink: 0;
}

.widget-image img {
    height: 80px;
    object-fit: contain;
    max-width: 100%;
}

.widget-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 60%;
    height: 100%;
    overflow: hidden; 
    font-weight: 230;
}

.widget-title {
    display: flex;
    font-size: 1em;
    font-weight: normal;
    color: white;
    margin-bottom: 0;
}

.widget-text {
    font-size: 0.75em; 
    color: rgba(255, 255, 255, 0.9); 
    text-align: left;
    line-height: 1.4; 
    width: 100%; 
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 40px;
    font-size: 2rem;
    color: #27ae60;
    animation: bounce 2s infinite, fadeIn 1s ease-in-out forwards;
    animation-delay: 3s, 3s;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 0;
    z-index: 10;
}
.scroll-down:hover {
    color: #2ecc71;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.problems-we-solve,
.why-leafup,
.our-journey,
.mobile-products {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    padding: var(--section-padding);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden; 
    width: 100%; 
}

.meet-the-team {
    font-family: 'Inter';
    color: var(--text-color);
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden; 
    position: relative;
    max-width: 100%; 
}

.problems-we-solve h2,
.why-leafup h2,
.our-journey h2,
.meet-the-team h2,
.mobile-products h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
    width: 100%; 
}

.problems-we-solve h2::after,
.why-leafup h2::after,
.our-journey h2::after,
.meet-the-team h2::after,
.mobile-products h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.mobile-products{
    margin-bottom: 400px;
    display: none;
}

.problems-we-solve ul,
.why-leafup ul {
    list-style: none;
    padding-left: 0;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problems-we-solve li,
.why-leafup li {
    padding: 0.5rem 0;
    padding-left: 2.8rem;
    position: relative;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.problems-we-solve ul li:last-child,
.why-leafup ul li:last-child {
    border-bottom: none;
}

.problems-we-solve li::before,
.why-leafup li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.7rem;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    transition: transform 0.3s ease;
}

.problems-we-solve li:nth-child(1)::before { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C8.13 2 5 5.13 5 9c0 4.42 7 13 7 13s7-8.58 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>'); }
.problems-we-solve li:nth-child(2)::before { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/><path d="M14.78 9.22a.75.75 0 0 0-1.06-1.06L12 10.94l-1.72-1.78a.75.75 0 0 0-1.06 1.06L10.94 12l-1.78 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.78a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.78z"/></svg>'); }
.problems-we-solve li:nth-child(3)::before { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>'); }
.problems-we-solve li:nth-child(4)::before { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H9v-2h6v2zm3-4H6v-2h12v2zm0-4H6V8h12v2z"/></svg>'); }

.why-leafup li::before {
    background-color: var(--secondary-color);
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>');
}

.problems-we-solve li:hover::before,
.why-leafup li:hover::before {
    transform: scale(1.1);
}

.problems-we-solve li strong,
.why-leafup li strong {
    color: var(--heading-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.why-leafup > p {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #c0c0c0;
}

.our-journey .journey-step {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin-bottom: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 3vw, 2rem);
}

.our-journey .journey-step:nth-child(even) {
    transform: translateX(50px);
}

.our-journey .journey-step h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 4vw, 1.6rem);
}
.our-journey .journey-step p,
.our-journey .journey-step li {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.7;
}
.our-journey .journey-step ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.team-members-container {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 7%, rgba(0,0,0,1) 93%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 7%, rgba(0,0,0,1) 93%, rgba(0,0,0,0) 100%);
    cursor: grab;
}

.team-members {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
    transform: translateX(0);

    width: max-content; 
}

.member {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 320px);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-photo-placeholder {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.member:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover-bg);
}

.member h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.member p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-color);
}

.fade-in-visible {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 1200px) {
    .scroll-down {
        display: none;
    }
}

@media (max-width: 768px) {
    .problems-we-solve li,
    .why-leafup li {
        padding-left: 2.5rem;
        padding-bottom: 1.2rem;
    }
    .problems-we-solve li::before,
    .why-leafup li::before {
        left: 0.2rem;
        width: 18px;
        height: 18px;
        top: 0.8em;
    }

    .problems-we-solve li:nth-child(2)::before {
        top: 0.85em;
    }

     .our-journey .journey-step {
        transform: translateY(30px);
        opacity: 0;
    }
    .our-journey .journey-step:nth-child(even) {
        transform: translateY(30px);
    }

    .team-members-container {
         margin-top: 1.5rem;
    }
    .team-members {
        gap: 1rem;
        padding: 1rem 0;
    }
    .member {
        width: clamp(240px, 70vw, 280px);
        padding: 1.2rem;
    }
     .member-photo-placeholder {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    .member h3 {
        font-size: 1.1rem;
    }
     .member p {
        font-size: 0.8rem;
    }

    .fade-in-visible {
        opacity: 1 !important;
        transform: none !important;
    }

    .navbar { display: none; }

}

footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0a0a0a;
    padding: 25px 40px; /* Reduced height */
    margin-top: auto;
}

.footer-container {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.footer-left { display: flex; align-items: center; gap: 10px; opacity: 0.7; }
.footer-left img { height: 25px; }

.footer-center { color: #555; font-size: 0.9rem; }

.footer-right { display: flex; gap: 30px; }
.footer-right a { color: #888; text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-right a:hover { color: white; }