/* codemintz - Main CSS */

/* CSS Custom Properties */
:root {
    /* Nature Color Palette */
    --forest-green: #2d5016;
    --leaf-green: #4a7c59;
    --mint-green: #7fb069;
    --sage-green: #a7c957;
    --earth-brown: #8b4513;
    --bark-brown: #654321;
    --sky-blue: #87ceeb;
    --water-blue: #4682b4;
    --sun-yellow: #ffd700;
    --flower-pink: #ffb6c1;
    --cloud-white: #f8f8ff;
    --stone-gray: #708090;
    
    /* Semantic Colors */
    --primary-color: var(--forest-green);
    --secondary-color: var(--leaf-green);
    --accent-color: var(--mint-green);
    --highlight-color: var(--sun-yellow);
    --text-primary: var(--forest-green);
    --text-secondary: var(--leaf-green);
    --text-light: var(--sage-green);
    --bg-primary: #f0f8f0;
    --bg-secondary: #e8f5e8;
    --bg-accent: #ffffff;
    --border-color: var(--sage-green);
    
    /* Typography */
    --font-heading: 'Comfortaa', cursive;
    --font-body: 'Nunito', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --element-spacing: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(45, 80, 22, 0.1);
    --shadow-medium: 0 8px 30px rgba(45, 80, 22, 0.15);
    --shadow-strong: 0 12px 40px rgba(45, 80, 22, 0.2);
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 15px;
    --radius-large: 25px;
    --radius-round: 50%;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Nature Container */
.nature-container {
    position: relative;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Floating Leaves Background */
.floating-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-leaves::before,
.floating-leaves::after {
    content: '🍃';
    position: absolute;
    font-size: 2rem;
    color: var(--sage-green);
    opacity: 0.3;
    animation: float-leaf 20s infinite linear;
}

.floating-leaves::before {
    top: -10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-leaves::after {
    top: -10%;
    left: 80%;
    animation-delay: 10s;
}

/* Header */
.nature-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(240, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nature-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.5rem;
    animation: gentle-sway 3s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 3px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.menu-line {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Menu button active state */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
    transition: var(--transition-normal);
    position: relative;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(167, 201, 87, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Eco Status */
.eco-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(127, 176, 105, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-medium);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: var(--radius-round);
    animation: pulse-eco 2s ease-in-out infinite;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-text {
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0;
    animation: fade-in-up 0.8s ease 0.8s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fade-in-up 0.8s ease 1s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-medium);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: rgba(167, 201, 87, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nature-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.tree-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.tree {
    font-size: 4rem;
    animation: gentle-sway 4s ease-in-out infinite;
}

.tree-1 { animation-delay: 0s; }
.tree-2 { animation-delay: 1s; }
.tree-3 { animation-delay: 2s; }

.wildlife {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
}

.bird {
    position: absolute;
    font-size: 2rem;
    animation: fly-around 8s ease-in-out infinite;
}

.bird-1 {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.bird-2 {
    top: 20%;
    right: 30%;
    animation-delay: 3s;
}

.bird-3 {
    top: 40%;
    left: 60%;
    animation-delay: 6s;
}

.sun {
    position: absolute;
    top: 10%;
    right: 20%;
    font-size: 3rem;
    animation: sun-glow 3s ease-in-out infinite;
}

.clouds {
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
}

.cloud {
    position: absolute;
    font-size: 2.5rem;
    animation: cloud-drift 15s linear infinite;
}

.cloud-1 {
    top: 0;
    left: -10%;
}

.cloud-2 {
    top: 30%;
    left: -15%;
    animation-delay: 7s;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nature-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .eco-status {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(240, 248, 240, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: white;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nature-scene {
        height: 300px;
    }

    .tree {
        font-size: 3rem;
    }

    .sun {
        font-size: 2rem;
    }
}

/* Ultra Small Screens - iPhone SE and similar */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Extra Small Screens - Very small devices */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px; /* iOS touch target minimum */
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1.25rem;
    }

    .nature-scene {
        height: 250px;
    }

    .tree {
        font-size: 2.5rem;
    }

    .sun {
        font-size: 1.8rem;
    }
}
