/* 
    Project: Nature Lanka - Eco Recycling 
    Author: Antigravity
    Description: Premium Eco-friendly Landing Page
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #70b100;
    --primary-dark: #5a8e00;
    --secondary-color: #ffffff;
    --bg-accent: #f4f8f1;
    --text-heading: #222222;
    --text-body: #666666;
    --footer-bg: #0a0e08;
    --transition: all 0.3s ease-in-out;
    --max-width: 1200px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
}

/* Header Styles */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

header.sticky {
    position: fixed;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    margin-right: 10px;
    transition: var(--transition);
}

header.sticky .logo img {
    height: 60px !important;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a i {
    color: var(--primary-color);
    transform: rotate(25deg);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section Updated */
.hero {
    height: 100vh;
    background: radial-gradient(circle at 70% 50%, #e8f5e9 0%, #ffffff 60%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.hero-content {
    color: var(--text-heading);
}

.hero-content h2 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background: #dcedc8;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.hero-plant-img {
    max-width: 90%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

/* Decorations */
.deco-leaf {
    position: absolute;
    z-index: 1;
}

.leaf-tl { top: -20px; left: -20px; width: 150px; transform: rotate(-15deg); opacity: 0.8; }
.leaf-br { bottom: -20px; right: -20px; width: 200px; transform: rotate(15deg); opacity: 0.8; }

.deco-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#70b100 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.2;
}

.dots-tr { top: 50px; right: 50px; }
.dots-bl { bottom: 50px; left: 150px; }

/* Slide Indicators */
.hero-indicators {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-indicators span {
    font-size: 18px;
    font-weight: 700;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicators span.active {
    color: var(--primary-color);
    font-size: 24px;
}

.hero-indicators .arrow {
    font-size: 20px;
    color: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Services Section */
.services {
    background-color: var(--bg-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(112, 177, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: #999;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-heading);
}

.mission-vision div {
    transition: var(--transition);
}

.mission-vision div:hover {
    background: white !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.philosophy-list li:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-info p {
    font-size: 15px;
    display: flex;
    align-items: center;
}

.footer-col ul li a:hover {
    padding-left: 5px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 48px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content p {
        margin: 0 auto 35px;
    }

    .hero-circle {
        width: 400px;
        height: 400px;
    }

    .about-grid, .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero {
        height: auto;
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .logo img {
        height: 60px !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .hero-indicators {
        display: none;
    }

    .services-grid, .gallery-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr !important;
    }

    .experience-badge {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 20px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title h2 {
        font-size: 28px;
    }
}
