/* PyGrow Custom Bootstrap Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties */
:root {
    --pygrow-green: #4CAF50;
    --pygrow-blue: #1E88E5;
    --pygrow-dark-green: #2E7D32;
}

/* Global Styles */
body {
    font-family: 'Raleway', sans-serif;
    color: #222;
    background-color: #F8F9FA;
}

/* Typography */

h1, h2, h3, h4 {
    font-weight: 300;
}

h1 {
    font-size: 2.5rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

p, li {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0.3rem; 
    margin-bottom: 0.3rem;
}

.display-4 {
    font-weight: 300;
}

.lead {
    font-weight: 400;
}

.section-title {
    font-weight: 600;
    margin-bottom: 40px;
}

/* Header & Navigation */
.navbar {
    background-color: #F8F9FA;
    border-bottom: 2px solid #E0E0E0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 2.2rem;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 400;
    color: #1C5FAA;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #3BA935;
}

/* Full-width Hero Section */
.hero-section-fullwidth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for text readability */
.hero-section-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* 4-image rotating background system */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-bg-1 {
    background-image: url('/images/wheat.jpg');
    animation: heroBg1 30s infinite ease-in-out;
    opacity: 1; /* Start visible */
}

.hero-bg-2 {
    background-image: url('/images/forest-field.jpg');
    animation: heroBg2 30s infinite ease-in-out;
    opacity: 0; /* Start hidden */
}

.hero-bg-3 {
    background-image: url('/images/tomatoes.jpg');
    animation: heroBg3 30s infinite ease-in-out;
    opacity: 0; /* Start hidden */
}

.hero-bg-4 {
    background-image: url('/images/grapes.jpg');
    animation: heroBg4 30s infinite ease-in-out;
    opacity: 0; /* Start hidden */
}

@keyframes heroBg1 {
    0%, 20% { opacity: 1; }
    25%, 98% { opacity: 0; }
    98%, 100% { opacity: 1; }
}

@keyframes heroBg2 {
    0%, 20% { opacity: 0; }
    25%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes heroBg3 {
    0%, 45% { opacity: 0; }
    50%, 70% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes heroBg4 {
    0%, 70% { opacity: 0; }
    75%, 98% { opacity: 1; }
    98%, 100% { opacity: 0; }
}

/* Text shadows for hero section readability */
.hero-section-fullwidth h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section-fullwidth p,
.hero-section-fullwidth .hero-subtitle {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Buttons */
.btn-primary {
    background-color: #1C5FAA;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #3BA935;
}

.btn-pygrow-primary {
    background-color: var(--pygrow-green);
    border-color: var(--pygrow-green);
    color: white;
}

.btn-pygrow-primary:hover {
    background-color: var(--pygrow-dark-green);
    border-color: var(--pygrow-dark-green);
    color: white;
}

.btn-pygrow-secondary {
    background-color: var(--pygrow-blue);
    border-color: var(--pygrow-blue);
    color: white;
}

/* Text Colors */
.text-pygrow-green {
    color: var(--pygrow-green) !important;
}

.text-pygrow-blue {
    color: var(--pygrow-blue) !important;
}

/* Layout */
.container {
    max-width: 1100px;
}

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

.section {
    padding: 60px 20px;
}

@media (min-width: 768px) {
    .row.align-items-center {
        display: flex;
        align-items: center;
    }
}

/* Components */
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--pygrow-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.research-highlight {
    background-color: #f8f9fa;
    border-left: 4px solid var(--pygrow-green);
    padding: 20px;
    margin: 20px 0;
}

/* Images */
.ratio-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.full-height-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Hero Image and Overlay */
.hero-container {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: rgba(255,255,255,0.7);
}

/* Footer */
.footer {
    background-color: #1C5FAA;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Alternative: Multiple background approach (commented out for reference) */
/*
.hero-section-fullwidth-multi {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    animation: heroMultiSlideshow 20s infinite;
}

@keyframes heroMultiSlideshow {
    0%, 20% { background-image: url('/images/wheatField.jpg'); }
    25%, 45% { background-image: url('/images/cornField.jpg'); }
    50%, 70% { background-image: url('/images/soybeanField.jpg'); }
    75%, 95% { background-image: url('/images/tomatoGarden.jpg'); }
    100% { background-image: url('/images/wheatField.jpg'); }
}
*/

/* Current 2-image rotating approach */

/* Alternative: 4+ images using additional HTML elements */
/*
To use 4+ rotating images, add these divs inside hero-section-fullwidth:
<div class="hero-bg hero-bg-1"></div>
<div class="hero-bg hero-bg-2"></div>  
<div class="hero-bg hero-bg-3"></div>
<div class="hero-bg hero-bg-4"></div>
*/
