/* GLOBAL STYLES */

:root {
    --primary: #0B3D2E;
    /* Forest Green */
    --secondary: #2E8B57;
    /* Leaf Green */
    --accent: #E8C55A;
    /* Nature Gold */
    --bg-light: #F5F7F6;
    /* Soft White */
    --text-dark: #333333;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

section h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    color: var(--text-light);
    font-size: 26px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* 1. HERO SECTION */

.hero {
    height: 100vh;
    background: url("images/forest.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url("images/fog.png") repeat-x;
    opacity: 0.35;
    animation: fogmove 80s linear infinite;
}

@keyframes fogmove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    padding: 0 20px;
    margin-top: -30px;
}

.hero h1 {
    font-size: clamp(65px, 12vw, 110px);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.85;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero .hero-subtext {
    font-size: clamp(16px, 2vw, 22px);
    opacity: 1;
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary);
    padding: 18px 45px;
    border-radius: 60px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(11, 61, 46, 0.6);
}

.btn-secondary {
    background: var(--accent);
    padding: 18px 45px;
    border-radius: 60px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(232, 197, 90, 0.3);
}

.hero-phone-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    perspective: 1500px;
}

.hero-phone-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 44px;
    padding: 10px;
    border: 3px solid #333;
    animation: float 8s ease-in-out infinite;
    transform: rotateX(15deg) rotateY(-8deg) rotateZ(2deg);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Glass Shine Effect */
.hero-phone-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 55%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 15;
    pointer-events: none;
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        transform: translateY(-10%) translateX(-10%);
    }

    100% {
        transform: translateY(10%) translateX(10%);
    }
}

.hero-phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

.hero-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(15deg) rotateY(-8deg) rotateZ(2deg);
    }

    50% {
        transform: translateY(-25px) rotateX(18deg) rotateY(-3deg) rotateZ(0deg);
    }
}

.leaves img {
    position: absolute;
    width: 45px;
    animation: fall 15s linear infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    mix-blend-mode: multiply;
    /* Fixes white-box issue */
}

.leaves img:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
    width: 60px;
}

.leaves img:nth-child(2) {
    left: 40%;
    animation-delay: 5s;
    width: 35px;
}

.leaves img:nth-child(3) {
    left: 70%;
    animation-delay: 2s;
    width: 50px;
}

.leaves img:nth-child(4) {
    left: 85%;
    animation-delay: 8s;
    width: 40px;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: rotate(0deg) translateX(0);
    }

    100% {
        top: 110%;
        transform: rotate(360deg) translateX(100px);
    }
}

/* 2. ABOUT BIOLENS */
.about {
    background: white;
    text-align: center;
}

.about .lead-text {
    font-size: 24px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.about p:not(.lead-text) {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* 3. CORE FEATURES */
.features {
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--secondary);
}

.card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.card p {
    color: #666;
    font-size: 16px;
}

/* 4. HOW BIOLENS WORKS */
.how-it-works {
    background: white;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 20px;
}

.step-icon {
    font-size: 60px;
    margin-bottom: 20px;
    background: var(--bg-light);
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px;
    color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.step p {
    color: #555;
}

/* 5. APP INTERFACE SHOWCASE */
.app-showcase {
    padding: 120px 20px;
    background: white;
    text-align: center;
}

.showcase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.phone-frame {
    width: 280px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 8px solid #333;
    /* Adding a subtle border for frame look */
}

.phone-frame img {
    width: 100%;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.showcase-text {
    max-width: 400px;
    text-align: left;
}

.showcase-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary);
}

.showcase-text p {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

/* 6. PLANT DISCOVERY EXPERIENCE */
.discovery {
    background: var(--bg-light);
    text-align: center;
}

.discovery p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 50px;
}

.discovery-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: left;
    font-size: 18px;
}

/* 7. DOWNLOAD SECTION */
.download {
    background: var(--secondary);
    text-align: center;
    color: white;
    padding: 120px 20px;
}

.download h2 {
    color: white;
    font-size: 48px;
}

.download p {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download .btn-primary {
    background: white;
    color: var(--secondary);
}

.download .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 8. ABOUT JUNGLE TAK */
.about-company {
    background: white;
    text-align: center;
    padding: 80px 20px;
}

.about-company p {
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 9. FOOTER & CONTACT */
footer {
    background: #082d22;
    color: white;
    padding: 60px 20px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 5px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 50px;
    }

    .hero p {
        font-size: 20px;
    }

    .phone {
        width: 220px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    /* Simple responsive fix */
}