/* ================================================= */
/* === 1. GLOBAL SETTINGS & RESET === */
/* ================================================= */
:root { 
    --primary: #FFD54F; /* Bright, Metallic Gold */
    --accent: #4CAF50;  /* Vivid Green */
    --text-head: #FFFFFF; 
    --text-body: #E0E0E0; 
    --overlay-dark: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));
    --footer-bg: #06180e; 
    --brand-font: "Bahnschrift", "Bahnschrift SemiCondensed", "Inter Tight", "Roboto Condensed", "Archivo Narrow", "Segoe UI", sans-serif;
    --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Footer Glow variables */
    --glow-x: 0px;
    --glow-y: 0px;
    --scroll-glow: 0.15;
    --text-reveal: 0;

    /* LAYOUT VARIABLES */
    --section-pad-y: 86px;
    --section-pad-x: 5vw;

    /* PAGE 2 (STORY) */
    --p2-x: 0px; --p2-y: 37px; --p2-scale: 0.9; --p2-img-h: 476px;

    /* PAGE 3 (HARVEST) */
    --p3-x: -2px; --p3-y: 60px; --p3-scale: 0.8; --p3-img-h: 250px; --p3-gap: 30px;

    /* PAGE 4 (JOURNEY) */
    --p4-x: 0px; --p4-y: -10px; --p4-scale: 1.1; --p4-gap: 36px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-padding-top: 80px; 
}

body {
    margin: 0; padding: 0; width: 100%; min-height: 100vh;
    background-color: #0b0b0b;
    font-family: 'Segoe UI', sans-serif; 
    color: var(--text-body);
    overflow-x: hidden; 
}

h1, h2, h3, h4 {
    color: var(--text-head);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* ================================================= */
/* === 2. NAVIGATION BAR === */
/* ================================================= */
.glass-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 50px; z-index: 999;
    background: rgba(14, 27, 19, 0.9); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all 0.5s var(--anim-ease);
}
.glass-nav.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-logo, .nav-links a { perspective: 1000px; display: inline-block; }
.nav-flip {
    display: inline-block; opacity: 0;
    transform: rotateX(-90deg); transform-origin: center top; 
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-nav.active .nav-flip { opacity: 1; transform: rotateX(0deg); }
.nav-logo .nav-flip { transition-delay: 0.1s; }
.nav-links li:nth-child(1) .nav-flip { transition-delay: 0.2s; }
.nav-links li:nth-child(2) .nav-flip { transition-delay: 0.3s; }
.nav-links li:nth-child(3) .nav-flip { transition-delay: 0.4s; }
.nav-links li:nth-child(4) .nav-flip { transition-delay: 0.5s; }
.nav-logo { cursor: pointer; }
.nav-logo img { height: 50px; width: auto; vertical-align: middle; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0;}
.nav-links a { text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a .nav-flip { color: #fff; transition: color 0.3s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s; }
.nav-links a:hover .nav-flip { color: var(--primary); }
@media (max-width: 768px) { .glass-nav { padding: 0 20px; height: 60px; } .nav-links { display: none; } }

/* ================================================= */
/* === 3. PARALLAX HERO & UTILS === */
/* ================================================= */
#page1-spacer { height: 100vh; width: 100%; position: relative; z-index: 1; scroll-snap-align: start; }
#stage { position: fixed; top: 50%; left: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%); transform-origin: center center; pointer-events: none; z-index: 0; }
.layer { position: absolute; left: 50%; top: 0; transform-origin: center top; will-change: transform; }
.vignette-overlay { position: fixed; bottom: 0; left: 0; width: 100%; height: 300px; background: linear-gradient(to bottom, transparent, #0b0b0b); z-index: 2; pointer-events: none; }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; font-size: 0.9rem; opacity: 0.8; letter-spacing: 2px; animation: bounce 2s infinite; z-index: 5; pointer-events: none; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }

.anim-trigger { opacity: 0; transition: opacity 0.8s var(--anim-ease), transform 0.8s var(--anim-ease); will-change: opacity, transform; }
.anim-slide-up { transform: translateY(80px) scale(0.95); }
.anim-trigger.active.anim-slide-up { opacity: 1; transform: translateY(0) scale(1); }
.anim-scale-up { transform: scale(0.9); }
.anim-trigger.active.anim-scale-up { opacity: 1; transform: scale(1); }
.delay-0 { transition-delay: 0ms; }
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }

/* ================================================= */
/* === 4. CONTENT SECTIONS === */
/* ================================================= */
#main-content { position: relative; z-index: 10; width: 100%; background-color: #0b0b0b; box-shadow: 0 50px 100px rgba(0,0,0,1); margin-bottom: 0; }
section { padding: var(--section-pad-y) var(--section-pad-x); position: relative; width: 100%; background-color: #0b0b0b; z-index: 20; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 2; transition: transform 0.1s linear; transform-origin: center top; }
.info-bar { background-color: #1A2820; width: 100%; padding: 80px 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; z-index: 20; line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.info-bar h3 { color: var(--primary); font-size: 2rem; margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 2px; text-shadow: none; }
.info-bar p { color: var(--text-body); font-size: 1.1rem; max-width: 800px; margin: 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.subtitle { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.title { font-size: 3rem; color: white; margin: 0 0 20px 0; }

/* --- SECTION 2: STORY --- */
.story-section { min-height: 100vh; position: sticky; top: 0; z-index: 5; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background-image: url('images/Page2.png'); background-size: cover; background-position: center; display: flex; align-items: center; }
#our-story .container { transform: translate(var(--p2-x), var(--p2-y)) scale(var(--p2-scale)); }
.story-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%); z-index: 1; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
@media (max-width: 968px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.story-tag { color: var(--primary); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.story-heading { font-size: 2.6rem; line-height: 1.1; margin-bottom: 20px; font-family: 'Times New Roman', serif; color: white; }
.story-heading em { font-style: italic; color: var(--primary); text-shadow: 0 0 20px rgba(255, 213, 79, 0.3); }
.story-desc { color: #eeeeee; font-size: 1rem; line-height: 1.7; margin-bottom: 15px; max-width: 90%; text-shadow: 0 2px 5px rgba(0,0,0,0.9); }
.stats-row { display: flex; gap: 15px; margin-bottom: 30px; margin-top: 20px; }
.stat-box { background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); padding: 20px 15px; border-radius: 24px; flex: 1; transition: transform 0.4s var(--anim-ease), background 0.3s; cursor: default; backdrop-filter: blur(5px); }
.stat-box:hover { transform: translateY(-5px) scale(1.02); background: rgba(0,0,0,0.8); border-color: var(--primary); }
.stat-icon { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary); display: inline-block; }
.stat-number { font-size: 1.6rem; font-weight: 700; color: #fff; display: block; margin-bottom: 6px; line-height: 1; }
.stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #ccc; line-height: 1.3; display: block; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #fff; font-weight: 500; font-size: 0.9rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.check-icon { width: 20px; height: 20px; background: rgba(76, 175, 80, 0.2); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; border: 1px solid var(--accent); }
.visual-wrapper { position: relative; padding: 40px; min-height: 500px; display: flex; align-items: center; }
.moving-frame { position: absolute; top: 0; right: 0; bottom: 40px; left: 40px; border: 1px solid #a09187; border-radius: 30px; z-index: 0; animation: frameFloat 8s ease-in-out infinite; }
@keyframes frameFloat { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-15px, 15px) rotate(-1deg); } }
.main-img-box { position: relative; z-index: 1; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); background-color: #000; width: 100%; height: var(--p2-img-h); }
.main-img-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }
.floating-card { position: absolute; bottom: -30px; left: 0px; background: #fff; color: #000; padding: 25px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); z-index: 2; display: flex; align-items: center; gap: 20px; max-width: 300px; animation: cardBob 4s ease-in-out infinite; }
@keyframes cardBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.float-icon { width: 50px; height: 50px; background: #FFF3E0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #FF6F00; }
.float-text h4 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #1a1a1a; text-shadow: none; }
.float-text span { font-size: 0.8rem; color: #666; }
.float-quote { font-size: 0.85rem; font-style: italic; color: var(--accent); margin-top: 5px; display: block; line-height: 1.4; }

/* --- SECTION 3: HARVEST --- */
#harvest { min-height: 100vh; background-image: url('images/Page3.png'); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; position: relative; padding: var(--section-pad-y) var(--section-pad-x); display: flex; align-items: center; z-index: 20; }
#harvest .container { transform: translate(var(--p3-x), var(--p3-y)) scale(var(--p3-scale)); z-index: 2; }
#harvest::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); z-index: 1; }
.marquee-badge { display: inline-flex; overflow: hidden; white-space: nowrap; background: rgba(0,0,0,0.5); border: 1px solid var(--primary); border-radius: 20px; padding: 8px 15px; max-width: 250px; margin: 0 auto 15px auto; position: relative; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; box-shadow: 0 0 15px rgba(255, 213, 79, 0.1); }
.marquee-content { display: inline-block; padding-left: 100%; animation: marqueeScroll 10s linear infinite; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--p3-gap); }
.harvest-card { background-color: #131313; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.5); cursor: pointer; transition: transform 0.4s var(--anim-ease), box-shadow 0.4s var(--anim-ease), border-color 0.3s; }
.harvest-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.8); border-color: var(--primary); }
.harvest-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: #000; font-size: 0.75rem; font-weight: 800; padding: 6px 14px; border-radius: 30px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.3); letter-spacing: 1px; }
.harvest-img-box { width: 100%; height: var(--p3-img-h); overflow: hidden; }
.harvest-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--anim-ease); }
@media (min-width: 1024px) { .harvest-card:hover .harvest-img-box img { transform: translateY(-6px) scale(1.05); } }
.harvest-content { padding: 30px; }
.harvest-cat { color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.harvest-content h3 { color: #fff; font-family: 'Times New Roman', serif; font-size: 1.8rem; margin: 0 0 10px 0; }
.harvest-content p { color: #ccc; font-size: 0.95rem; line-height: 1.6; margin: 0 0 20px 0; }
.card-cta { font-size: 0.9rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; transition: opacity 0.3s ease, transform 0.3s ease; display: flex; align-items: center; gap: 5px; }
.harvest-card:hover .card-cta { opacity: 1; transform: translateX(5px); }
@media (max-width: 768px) { .card-cta { opacity: 1; font-size: 0.8rem; } .card-cta::after { content: " 👆"; font-size: 1rem; } }

/* --- SECTION 4: JOURNEY --- */
#journey-process { min-height: 100vh; background-image: url('images/Page4.png'); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; position: relative; padding: var(--section-pad-y) var(--section-pad-x); display: flex; align-items: center; z-index: 20; }
#journey-process .container { transform: translate(var(--p4-x), var(--p4-y)) scale(var(--p4-scale)); z-index: 2; }
#journey-process::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); z-index: 1; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--p4-gap); margin-top: 50px; position: relative; }
.process-card { background: rgba(10, 20, 15, 0.85); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 30px; position: relative; transition: transform 0.3s, background 0.3s, box-shadow 0.3s; overflow: visible; box-shadow: 0 10px 30px rgba(0,0,0,0.5); height: 100%; display: flex; flex-direction: column; }
.process-card:hover { background: rgba(10, 20, 15, 0.95); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
@media (min-width: 992px) { .process-card:not(:last-child)::after { content: '→'; position: absolute; right: -25px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.2); font-size: 1.5rem; font-family: monospace; font-weight: bold; pointer-events: none; transition: transform 0.3s ease; } .process-card:hover::after { transform: translateY(-50%) translateX(5px); } }
.process-num { position: absolute; top: 0; left: 0; background: #000; color: var(--primary); font-size: 0.9rem; font-weight: bold; padding: 8px 18px; border-radius: 24px 8px 24px 8px; transition: background 0.3s, color 0.3s; }
.process-card:hover .process-num { background: var(--primary); color: #000; }
.process-icon { font-size: 2.5rem; color: var(--primary); margin: 20px 0 15px 0; display: inline-block; transition: color 0.3s, transform 0.3s; }
.process-card:hover .process-icon { color: #fff; transform: scale(1.1) translateY(-5px); text-shadow: 0 0 15px rgba(255, 213, 79, 0.4); }
.process-card h3 { font-family: 'Times New Roman', serif; font-size: 1.5rem; margin-bottom: 15px; color: #fff; text-shadow: none; margin-top: auto;}
.process-card p { font-size: 0.9rem; color: #e0e0e0; line-height: 1.6; margin-bottom: 0; }

/* --- LOGO BAR --- */
.logo-bar-container { background-color: #1A2820; padding: 70px 0; overflow: hidden; width: 100%; position: relative; z-index: 20; }
.logo-bar-container::before, .logo-bar-container::after { content: ""; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2; pointer-events: none; }
.logo-bar-container::before { left: 0; background: linear-gradient(to right, #1A2820, transparent); }
.logo-bar-container::after { right: 0; background: linear-gradient(to left, #1A2820, transparent); }
.logo-slider { display: flex; width: 100%; position: relative; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }
.logo-track { display: flex; align-items: center; width: max-content; animation: scroll-logos 25s linear infinite; }
.logo-track:hover, .logo-track:hover .cert-logo { animation-play-state: paused; }
.cert-logo { height: 120px; width: auto; margin: 0 50px; filter: grayscale(100%) brightness(0.85) contrast(0.9); opacity: 0.8; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); animation: floatingLogo 6s ease-in-out infinite; will-change: transform, filter; }
.cert-logo:nth-child(odd) { animation-delay: 0s; }
.cert-logo:nth-child(even) { animation-delay: -3s; }
.cert-logo:hover { filter: grayscale(0%) brightness(1.1) contrast(1) drop-shadow(0 0 15px rgba(255, 213, 79, 0.3)); opacity: 1; transform: scale(1.15) translateY(0) rotate(0deg) !important; cursor: pointer; z-index: 10; }
@keyframes scroll-logos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes floatingLogo { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-8px) rotate(2deg); } 75% { transform: translateY(4px) rotate(-2deg); } }

/* --- FOOTER --- */
.portport-footer {
    --text-size: 16vw; --text-1-top: 21%; --text-1-left: 37%; --text-2-top: 90%; --text-2-left: 63%;    
    --footer-pad-top: 100px; --footer-pad-bottom: 29px;
    position: relative; width: 100%; height: auto; background-color: var(--footer-bg); 
    color: var(--text-body); display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; z-index: 100; padding: var(--footer-pad-top) 0 var(--footer-pad-bottom);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.footer-vignette { position: absolute; top: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, #0b0b0b, transparent); z-index: 5; pointer-events: none; }
.portport-footer::before, .portport-footer::after {
    content: 'AGROXGROUP'; position: absolute; font-family: var(--brand-font); font-size: var(--text-size);
    font-weight: 800; font-stretch: condensed; letter-spacing: -5px; color: rgba(255, 255, 255, 0.08); 
    text-shadow: var(--glow-x) var(--glow-y) 35px rgba(76,175,80,var(--scroll-glow)), 0 0 120px rgba(76,175,80,0.25);
    filter: url(#noiseGlow); white-space: nowrap; pointer-events: none; z-index: 0; line-height: 1;
    transition: opacity 0.1s linear; opacity: var(--text-reveal); 
}
.portport-footer::before { top: var(--text-1-top); left: var(--text-1-left); transform: translate(calc(-50% - (80vw * (1 - var(--text-reveal)))), -50%); }
.portport-footer::after { top: var(--text-2-top); left: var(--text-2-left); transform: translate(calc(-50% + (80vw * (1 - var(--text-reveal)))), -50%); }
.footer-content-wrapper { position: relative; z-index: 10; width: 100%; max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; justify-content: space-between; padding: 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; flex-wrap: wrap; gap: 20px; }
.footer-col { flex: 1; min-width: 250px; padding: 0 20px; }
.footer-logo img { max-width: 180px; height: auto; margin-bottom: 20px; display: block; }
.footer-description { color: #ddd; line-height: 1.6; font-size: 0.9rem; max-width: 350px; }
.footer-col h3 { color: #fff; margin: 0 0 25px 0; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-left: 4px solid var(--primary); padding-left: 15px; line-height: 1.2; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--primary); text-decoration: none; font-size: 1rem; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.contact-info p { margin-bottom: 15px; color: #ddd; line-height: 1.6; font-size: 0.95rem; }
.contact-info a { color: #fff; text-decoration: none; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; color: #fff; font-size: 0.8rem; margin-top: 80px; position: relative; z-index: 1; }
@media (max-width: 768px) { .footer-top { flex-direction: column; text-align: left; } .footer-col { padding: 0; margin-bottom: 40px; } .portport-footer { --text-size: 35vw; } }