/* ============================================
   AGRICROP LANDING PAGE - CUSTOM STYLES
   Modern Agricultural Corporate Design
   ============================================ */

/* CSS Variables - Color Theme */
:root {
    --primary-green: #2D5F3F;
    --light-green: #4CAF50;
    --accent-green: #8BC34A;
    --accent-yellow: #FFC107;
    --dark-green: #1B3A26;
    --beige: #F5F1E8;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
}

/* Google Font Import - Modern Sans */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* KG Fall For You Font Family */
@font-face {
    font-family: 'KG Fall For You';
    src: url('../fonts/KGFallForYou.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KG Fall For You';
    src: url('../fonts/KGFallForYouBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KG Fall For You';
    src: url('../fonts/KGFallForYouItalics.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Base Typography */
body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Handwritten Accent Text - KG Fall For You */
.handwritten {
    font-family: 'KG Fall For You', 'Brush Script MT', cursive;
    font-style: normal;
    color: var(--accent-yellow);
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    font-weight: normal;
    line-height: 1.4;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 50;
}

/* Torn/Ripped Paper Effect - Random Jagged Edge */
.navbar-custom::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.98);
    clip-path: polygon(
        0% 55%,
        0.8% 72%, 
        1.3% 48%, 
        2.1% 83%, 
        2.7% 59%, 
        3.4% 91%, 
        4.2% 46%, 
        5.1% 67%, 
        5.8% 52%, 
        6.5% 88%, 
        7.3% 61%, 
        8.2% 75%, 
        9.1% 43%, 
        9.7% 86%, 
        10.6% 58%, 
        11.4% 92%, 
        12.3% 49%, 
        13.1% 71%, 
        13.9% 56%, 
        14.8% 84%, 
        15.5% 62%, 
        16.4% 77%, 
        17.2% 51%, 
        18.1% 89%, 
        19.0% 64%, 
        19.8% 73%, 
        20.6% 47%, 
        21.5% 85%, 
        22.3% 60%, 
        23.2% 93%, 
        24.1% 54%, 
        25.0% 78%, 
        25.8% 63%, 
        26.7% 87%, 
        27.5% 57%, 
        28.4% 74%, 
        29.2% 50%, 
        30.1% 81%, 
        31.0% 66%, 
        31.8% 90%, 
        32.7% 53%, 
        33.5% 76%, 
        34.4% 61%, 
        35.2% 84%, 
        36.1% 58%, 
        37.0% 79%, 
        37.8% 52%, 
        38.7% 88%, 
        39.5% 65%, 
        40.4% 91%, 
        41.2% 56%, 
        42.1% 73%, 
        43.0% 49%, 
        43.8% 82%, 
        44.7% 63%, 
        45.5% 86%, 
        46.4% 59%, 
        47.2% 75%, 
        48.1% 51%, 
        49.0% 89%, 
        49.8% 67%, 
        50.7% 92%, 
        51.5% 54%, 
        52.4% 77%, 
        53.2% 62%, 
        54.1% 85%, 
        55.0% 58%, 
        55.8% 80%, 
        56.7% 53%, 
        57.5% 87%, 
        58.4% 64%, 
        59.2% 90%, 
        60.1% 57%, 
        61.0% 74%, 
        61.8% 50%, 
        62.7% 83%, 
        63.5% 61%, 
        64.4% 88%, 
        65.2% 55%, 
        66.1% 76%, 
        67.0% 52%, 
        67.8% 86%, 
        68.7% 65%, 
        69.5% 91%, 
        70.4% 59%, 
        71.2% 78%, 
        72.1% 54%, 
        73.0% 84%, 
        73.8% 63%, 
        74.7% 89%, 
        75.5% 56%, 
        76.4% 75%, 
        77.2% 51%, 
        78.1% 87%, 
        79.0% 66%, 
        79.8% 92%, 
        80.7% 58%, 
        81.5% 77%, 
        82.4% 53%, 
        83.2% 85%, 
        84.1% 62%, 
        85.0% 90%, 
        85.8% 57%, 
        86.7% 74%, 
        87.5% 50%, 
        88.4% 83%, 
        89.2% 64%, 
        90.1% 88%, 
        91.0% 55%, 
        91.8% 76%, 
        92.7% 52%, 
        93.5% 86%, 
        94.4% 61%, 
        95.2% 91%, 
        96.1% 59%, 
        97.0% 78%, 
        97.8% 54%, 
        98.7% 82%, 
        99.5% 67%, 
        100% 73%,
        100% 0%,
        0% 0%
    );
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 1);
}

.navbar-custom.scrolled::after {
    background: rgba(255, 255, 255, 1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--light-green);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotate icon animation */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* CTA Button in Navbar */
.btn-cta-nav {
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.85) 0%, rgba(27, 58, 38, 0.9) 100%);
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: zoomIn 5s ease-in-out infinite alternate;
}

.hero-bg-image.active {
    animation: zoomIn 5s ease-in-out;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    max-width: 600px;
}

/* Hero Buttons */
.btn-hero-primary {
    background: white;
    color: var(--primary-green);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: var(--accent-yellow);
    color: var(--dark-green);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

/* ============================================
   WAVE DIVIDER (AmberCrops Style)
   ============================================ */
.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: rotate(180deg);
}

/* ============================================
   COMPANY HIGHLIGHT SECTION (UPICrop Style)
   ============================================ */
.company-section {
    padding: 100px 0;
    background: var(--beige);
}

.circle-image {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    object-fit: cover;
}

.circle-image-wrapper {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
}

.circle-image-parallax {
    width: 150%;
    height: 150%;
    object-fit: cover;
    position: absolute;
    top: -30%;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.stats-badge {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stats-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-green);
    display: block;
}

.stats-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   PRODUCT CATEGORY CARDS (AmberCrops Style)
   ============================================ */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: block;
    height: 100%;
    min-height: 280px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: var(--light-green);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Swiper specific fixes for category cards */
.categoriesSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.categoriesSwiper .category-card {
    width: 100%;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.featured-products-section {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    overflow: hidden;
}

.silhouette-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.silhouette-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    filter: grayscale(100%) brightness(0.5);
    mix-blend-mode: multiply;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.silhouette-layer-1 {
    top: -30%;
}

.silhouette-layer-2 {
    top: 10%;
    opacity: 0.05;
}

.featured-products-section > .max-w-7xl {
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 1.5rem;
}

.product-image {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-yellow);
    color: var(--dark-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.product-content {
    padding: 1.8rem;
}

.product-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: var(--primary-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.product-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-product {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    color: white;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* ============================================
   NEWS / UPDATES SECTION
   ============================================ */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 1.8rem;
}

.news-date {
    color: var(--light-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.news-excerpt {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    padding: 100px 0;
}

.contact-image-wrapper {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image-parallax {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-yellow), #FFD54F);
    color: var(--dark-green);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-custom {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
    position: relative;
    margin-top: 20px;
}

/* Torn/Ripped Paper Effect - Top of Footer */
.footer-custom::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 10px;
    background: var(--dark-green);
    clip-path: polygon(
        0% 45%,
        0.9% 68%, 
        1.6% 52%, 
        2.4% 81%, 
        3.2% 57%, 
        4.1% 89%, 
        4.9% 48%, 
        5.6% 73%, 
        6.5% 55%, 
        7.3% 86%, 
        8.1% 62%, 
        8.9% 77%, 
        9.8% 51%, 
        10.5% 84%, 
        11.4% 59%, 
        12.2% 90%, 
        13.1% 53%, 
        13.8% 75%, 
        14.7% 58%, 
        15.5% 87%, 
        16.3% 64%, 
        17.2% 79%, 
        18.0% 54%, 
        18.9% 88%, 
        19.6% 66%, 
        20.5% 76%, 
        21.3% 50%, 
        22.1% 83%, 
        23.0% 61%, 
        23.7% 91%, 
        24.6% 56%, 
        25.4% 80%, 
        26.2% 65%, 
        27.1% 85%, 
        27.8% 59%, 
        28.7% 78%, 
        29.5% 52%, 
        30.3% 82%, 
        31.2% 67%, 
        32.0% 89%, 
        32.9% 55%, 
        33.6% 77%, 
        34.5% 63%, 
        35.3% 86%, 
        36.1% 60%, 
        37.0% 81%, 
        37.7% 54%, 
        38.6% 87%, 
        39.4% 66%, 
        40.2% 90%, 
        41.1% 58%, 
        41.8% 75%, 
        42.7% 51%, 
        43.5% 84%, 
        44.3% 64%, 
        45.2% 88%, 
        46.0% 61%, 
        46.9% 78%, 
        47.6% 53%, 
        48.5% 86%, 
        49.3% 68%, 
        50.1% 91%, 
        51.0% 56%, 
        51.7% 79%, 
        52.6% 63%, 
        53.4% 87%, 
        54.2% 60%, 
        55.1% 82%, 
        55.8% 55%, 
        56.7% 85%, 
        57.5% 66%, 
        58.3% 89%, 
        59.2% 59%, 
        60.0% 76%, 
        60.9% 52%, 
        61.6% 84%, 
        62.5% 63%, 
        63.3% 88%, 
        64.1% 57%, 
        65.0% 78%, 
        65.7% 54%, 
        66.6% 86%, 
        67.4% 67%, 
        68.2% 90%, 
        69.1% 61%, 
        69.8% 80%, 
        70.7% 56%, 
        71.5% 85%, 
        72.3% 65%, 
        73.2% 87%, 
        74.0% 59%, 
        74.9% 77%, 
        75.6% 53%, 
        76.5% 83%, 
        77.3% 68%, 
        78.1% 91%, 
        79.0% 60%, 
        79.7% 79%, 
        80.6% 55%, 
        81.4% 86%, 
        82.2% 64%, 
        83.1% 89%, 
        83.8% 59%, 
        84.7% 76%, 
        85.5% 52%, 
        86.3% 84%, 
        87.2% 66%, 
        88.0% 88%, 
        88.9% 58%, 
        89.6% 78%, 
        90.5% 54%, 
        91.3% 85%, 
        92.1% 63%, 
        93.0% 90%, 
        93.7% 61%, 
        94.6% 80%, 
        95.4% 56%, 
        96.2% 84%, 
        97.1% 69%, 
        97.8% 75%, 
        98.7% 58%, 
        99.5% 83%, 
        100% 65%,
        100% 100%,
        0% 100%
    );
    filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, 0.15));
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--accent-yellow);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-spacing {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-spacing {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .circle-image {
        max-width: 300px;
    }
}

/* ============================================
   SWIPER SLIDER CUSTOMIZATION
   ============================================ */

/* Swiper Styling */
.swiper {
    padding-bottom: 60px;
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    background: transparent;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
}

/* Hide default Swiper arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
    content: '' !important;
    display: none !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
}

.swiper-button-next:active,
.swiper-button-prev:active {
    transform: translateY(-50%) scale(0.95);
}

.swiper-button-next {
    right: 30px;
    left: auto;
}

.swiper-button-prev {
    left: 30px;
    right: auto;
}

/* Custom Arrow icons - Large and visible */
.swiper-button-next::before,
.swiper-button-prev::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.swiper-button-next::before {
    transform: rotate(45deg);
    margin-left: 3px;
}

.swiper-button-prev::before {
    transform: rotate(225deg);
    margin-right: 3px;
}

.swiper-button-next:hover::before,
.swiper-button-prev:hover::before {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.swiper-pagination {
    bottom: 0 !important;
    padding: 10px 0 0 0;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 0.5;
    margin: 0 8px;
    transition: all 0.3s ease;
    width: 10px;
    height: 10px;
    border: none;
}

.swiper-pagination-bullet:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-next::before,
    .swiper-button-prev::before {
        width: 10px;
        height: 10px;
    }
    
    .swiper-button-next {
        right: 20px;
    }
    
    .swiper-button-prev {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: flex;
        bottom: 50%;
        top: auto;
        transform: translateY(50%);
    }
    
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        transform: translateY(50%) scale(1.12);
    }
    
    .swiper-button-next::before,
    .swiper-button-prev::before {
        width: 9px;
        height: 9px;
        border-top: 2.5px solid white;
        border-right: 2.5px solid white;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
    
    .swiper {
        padding-bottom: 50px;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .swiper-pagination-bullet-active {
        width: 24px;
    }
}

@media (max-width: 640px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-next::before,
    .swiper-button-prev::before {
        width: 8px;
        height: 8px;
        border-top: 2px solid white;
        border-right: 2px solid white;
    }
    
    .swiper-button-next {
        right: 8px;
    }
    
    .swiper-button-prev {
        left: 8px;
    }
}

/* ============================================
   PAGE LOADING OVERLAY - ENHANCED
   ============================================ */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.97) 0%, rgba(27, 58, 38, 0.97) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo Image Animation - Float */
.loader-logo-img {
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Logo Image Animation - Blink (for logo/logo_text mode) */
.loader-logo-img-blink {
    animation: logoBlink 1.5s ease-in-out infinite;
}

@keyframes logoBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Hide spinner when using logo blink animation */
.spinner.hidden {
    display: none;
}

/* Enhanced Spinner Animation */
.spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top: 5px solid var(--accent-green);
    border-right: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse Animation for Logo/Text */
.loader-logo {
    font-size: 26px;
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Loading Text */
.loading-text {
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced Dots Animation */
.loading-dots {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
}

.loading-dots span {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, var(--accent-green), #10b981);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0) translateY(0);
        opacity: 0.3;
    }
    40% { 
        transform: scale(1.2) translateY(-5px);
        opacity: 1;
    }
}

/* ============================================
   ARTICLE CONTENT STYLES
   Rich Editor Table & HTML Elements Styling
   ============================================ */

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table thead {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
}

.article-content table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.article-content table tbody tr:hover {
    background-color: #f9fafb;
}

.article-content table tbody tr:last-child {
    border-bottom: none;
}

.article-content table tbody td {
    padding: 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.article-content table tbody td:first-child {
    font-weight: 500;
}

/* Striped table rows */
.article-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Responsive table */
@media (max-width: 768px) {
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content table thead th,
    .article-content table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* Other HTML elements in article content */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content ul li,
.article-content ol li {
    margin: 0.75rem 0;
    line-height: 1.8;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--light-green);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-dark);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.3;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-green);
    line-height: 1.4;
}

.article-content p {
    margin: 1.25rem 0;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content strong {
    font-weight: 600;
    color: var(--dark-green);
}

.article-content em {
    font-style: italic;
}

.article-content a {
    color: var(--light-green);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: var(--primary-green);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.article-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

