/* GFB Global Premium Theme - Modern Nature & Technology */
/* Updated with even more premium effects */

/* 1. Variables & Setup */
:root {
    /* Palette */
    --primary-dark: #064e3b;
    /* Deep Emerald */
    --primary: #059669;
    /* Rich Green */
    --primary-light: #34d399;
    /* Vibrant Mint */
    --accent: #d97706;
    /* Golden Amber - for CTAs/Highlights */

    --bg-body: #f8fafc;
    /* Cool Gray - cleaner than before */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    /* More transparent for blur effect */

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */

    /* Spacing & Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy lively transition */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    /* Subtle background grid pattern */
    background-image:
        radial-gradient(at 0% 0%, rgba(5, 150, 105, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 78, 59, 0.05) 0px, transparent 50%);
    color: var(--text-muted);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 3. Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* 4. Header & Navigation */
header {
    height: 100px;
    /* Increased from var(--nav-height) */
    background: transparent;
    /* Seamless initial state */
    backdrop-filter: none;
    border-bottom: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

header.scrolled .nav-link {
    color: var(--text-main);
}

header.scrolled .logo img {
    height: 60px;
    /* Scale down on scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 85px;
    /* Enlarged logo */
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: #fff;
    /* White text for transparent header */
    font-size: 1.05rem;
    /* Slightly larger */
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    /* Updated from -5px */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-white);
    min-width: 260px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
    /* Closer alignment */
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.dropdown-item:hover {
    background: #f0fdf4;
    /* Very light green */
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

/* 5. Hero Section */
.hero {
    height: 90vh;
    /* Not full 100 to show peek of next section */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    position: relative;
    margin-top: 0;
    /* Override previous */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.3), rgba(5, 150, 105, 0.25), rgba(0, 0, 0, 0.2));
}

.home-hero::after {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.2), rgba(5, 150, 105, 0.15), rgba(0, 0, 0, 0.2)) !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

/* 6. Sections & Cards */
section {
    padding: 6rem 0;
    position: relative;
}

/* Product/Features Grid */
.product-grid,
.features-grid,
.labels-grid,
.sectors-grid,
.closure-types,
.fruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card,
.feature-item,
.label-card,
.sector-card,
.closure-card,
.pack-item,
.fruit-card,
.vm-card,
.area-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Gradient Top Border Effect */
.product-card::before,
.label-card::before,
.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    opacity: 0.7;
}

.product-card:hover,
.sector-card:hover,
.label-card:hover,
.pack-item:hover,
.fruit-card:hover,
.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(5, 150, 105, 0.2);
}

.product-card h3,
.sector-card h3,
.label-card h3,
.pack-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Specific Page Styles fixed up */
.page-header {
    background: linear-gradient(135deg, #0b3d2e, #10b981);
    color: var(--bg-white);
    padding: 180px 0 100px;
    /* More top padding for glass nav */
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    /* Sharper modern angle */
    margin-bottom: 5rem;
    position: relative;
}

/* Background pattern for page header */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
}

.page-header h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Tags/Chips */
.fruit-tags,
.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.fruit-tag,
.area-tag {
    background: var(--bg-white);
    color: var(--primary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.fruit-tag:hover,
.area-tag:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Tables */
.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
    margin-top: 2rem;
}

.specs-table th {
    background: var(--primary-dark);
    color: white;
    padding: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.specs-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-muted);
}

.specs-table tr:hover td {
    background: #f8fafc;
}

/* Contact Form */
.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9fafb;
    margin-bottom: 1px;
    /* fix */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-dark);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 7. Footer */
/* 7. Mega Footer (Premium) */
footer {
    background: linear-gradient(to bottom, #022c22, #064e3b);
    /* Deep dark green gradient */
    color: #cbd5e1;
    padding: 6rem 0 0;
    margin-top: 8rem;
    position: relative;
    overflow: hidden;
}

/* Footer Background Pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
}

.newsletter-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--primary-light);
}

.copyright {
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 8. Animations */


.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 8. Animations */
.reveal {
    opacity: 1;
    /* Fixed visibility */
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: pageFadeIn 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 85%;
        height: 100vh;
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-link {
        font-size: 1.3rem;
        margin: 10px 0;
        color: var(--text-main);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f1f5f9;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        text-align: center;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        /* JS would be needed for click toggle on mobile, but CSS hover works for now on most hybrids */
        max-height: 500px;
    }

    .page-header {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
}

/* Fruit Floating Animation */
.fruit-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind hero content (2) */
    pointer-events: none;
    overflow: hidden;
}

.anim-fruit {
    position: absolute;
    opacity: 0.9;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    animation: floatFruit 6s ease-in-out infinite;
    mix-blend-mode: normal;
    /* Adjust if needed */
}

@keyframes floatFruit {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

.fruit-1 {
    top: 12%;
    left: 8%;
    width: 140px;
    animation-delay: 0s;
}

.fruit-2 {
    top: 18%;
    right: 12%;
    width: 110px;
    animation-delay: 1.2s;
}

.fruit-3 {
    bottom: 20%;
    left: 15%;
    width: 90px;
    animation-delay: 2.5s;
}

.fruit-4 {
    bottom: 30%;
    right: 8%;
    width: 130px;
    animation-delay: 1.8s;
}

.fruit-5 {
    top: 55%;
    left: 5%;
    width: 100px;
    animation-delay: 0.6s;
}


/* Gallery Card Styles */
.gallery-card {
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
}

.gallery-card .card-img {
    height: 250px;
    overflow: hidden;
}

.gallery-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-card:hover .card-img img {
    transform: scale(1.08);
}

/* Fruit Grid Styles */
.fruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fruit-item {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.fruit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fruit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.fruit-item:hover::before {
    opacity: 1;
}

.fruit-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.fruit-item:hover img {
    transform: scale(1.1);
}

.fruit-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}