/* ========================================
   GLOBAL STYLES - RK AGRO
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #1e431f;
    --secondary-color: #97bf0d;
    --dark-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #0e2e05;
    position: relative;
}

/* Parallax Background Illustration */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
    will-change: transform;
    pointer-events: none;
}

/* Remove duplicate html rule */

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ========================================
   CONTAINERS & LAYOUT
   ======================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: left;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: #d1d5db;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(151, 191, 13, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 45, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn i {
    margin-left: 8px;
    transition: var(--transition-smooth);
}

.btn:hover i {
    transform: translateX(5px);
}

/* ========================================
   NAVBAR (STICKY)
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.navbar-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000 !important;
    margin-left: 10px;
}

.navbar-logo span {
    color: var(--secondary-color) !important;
    color: #000000;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.navbar-menu li a {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: var(--primary-color);
}

.navbar-menu li a:hover::after,
.navbar-menu li a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

/* ========================================
   HERO SECTION (VIDEO BACKGROUND)
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: -1;
}

.hero-content {
    text-align: left;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    margin-left: 80px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content .welcome-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.2;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-content .btn {
    margin-top: 20px;
    animation: slideInLeft 1s ease-out 0.6s both;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: #0e2e05;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #d1d5db;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature-item h4 {
    font-size: 1.1rem;
    color: #ffffff;
}

.about-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   3D ROTATING BLOCK
   ======================================== */

/* Container with perspective for 3D depth */
.rotating-block-container {
    perspective: 1200px;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The 3D cuboid - landscape rectangular box */
.rotating-block {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    transform-style: preserve-3d;
    /* Infinite slow rotation on Y-axis */
    animation: rotateBlock 20s linear infinite;
    transition: animation-play-state 0.3s ease;
}

/* Pause rotation on hover */
.rotating-block:hover {
    animation-play-state: paused;
}

/* Rotation keyframes - smooth Y-axis rotation */
@keyframes rotateBlock {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Individual faces of the 3D cuboid */
.block-face {
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Images inside each face */
.block-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Front face - no transform needed */
.block-front {
    transform: translateZ(200px);
}

/* Right face - rotated 90deg on Y, moved to right */
.block-right {
    transform: rotateY(90deg) translateZ(200px);
}

/* Back face - rotated 180deg on Y */
.block-back {
    transform: rotateY(180deg) translateZ(200px);
}

/* Left face - rotated -90deg on Y, moved to left */
.block-left {
    transform: rotateY(-90deg) translateZ(200px);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products {
    background: #0e2e05;
}

/* Grid with extra padding to allow image overflow */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 60px; /* Space for image to pop out */
}

/* Card container - stays in place with clipping */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible; /* Allow child elements to overflow */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    /* 3D perspective container */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    /* Card gets subtle lift and enhanced shadow */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2), 
                0 8px 20px rgba(151, 191, 13, 0.15);
}

/* Image mask container - this stays in place */
.product-card-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: visible; /* Critical: allows PNG to overflow upward */
    background: var(--light-bg);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The actual PNG image - this is what moves */
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve PNG transparency */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 3D transform origin at bottom center */
    transform-origin: center bottom;
    /* Enable 3D transforms */
    transform-style: preserve-3d;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* On hover: ONLY the visible product shape pops out */
.product-card:hover .product-card-image img {
    /* Move upward and add 3D depth */
    transform: translateY(-50px) translateZ(40px) scale(1.1);
    /* Enhanced shadow for the floating product */
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.25));
}

/* Content area - positioned below image */
.product-card-content {
    padding: 25px;
    text-align: center;
}

.product-card-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-card-content .btn {
    margin-top: 10px;
}

/* ========================================
   MEMBER CARDS ANIMATIONS
   ======================================== */

/* Member cards - override specific styles to prevent interference */
.member-card .product-card-image {
    height: 280px !important;
    overflow: hidden !important; /* Members don't need overflow */
}

.member-card .product-card-image img {
    object-fit: cover !important;
    transform-origin: center center !important;
}

/* Disable pop-out effect on member cards */
.member-card:hover .product-card-image img {
    transform: none !important;
    filter: none !important;
}

/* Initial hidden state for member cards */
.member-card {
    opacity: 0;
    transition: none; /* Disable default transitions for entrance */
}

/* Left card - starts off-screen to the left */
.member-card-left {
    transform: translateX(-100px);
}

/* Right card - starts off-screen to the right */
.member-card-right {
    transform: translateX(100px);
}

/* Active state - slides in smoothly */
.member-card.active {
    opacity: 1;
    animation: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide in animation */
@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Floating animation - starts after slide-in completes */
.member-card.floating {
    animation: gentleFloat 2s ease-in-out infinite;
}

/* Gentle floating motion - subtle up and down */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Delay second card entrance slightly */
.member-card-right.active {
    animation-delay: 0.2s;
}

/* ========================================
   FEATURED PRODUCT SECTION
   ======================================== */

.featured-product {
    background: #1a1a1a;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-details h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.featured-details p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #d1d5db;
}

.featured-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.spec-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.spec-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.spec-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   CONTACT CTA SECTION
   ======================================== */

.contact-cta {
    background: var(--primary-color);
    text-align: center;
    padding: 60px 0;
}

.contact-cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 30px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page {
    padding-top: 100px;
}

.contact-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    perspective: 1500px;
}

/* Swap Button */
.swap-button {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #97bf0d, #2c5f2d);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(151, 191, 13, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.swap-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(151, 191, 13, 0.6);
}

.swap-button:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(151, 191, 13, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(151, 191, 13, 0.7), 0 0 30px rgba(151, 191, 13, 0.3);
    }
}

/* Contact Card Container */
.contact-card {
    position: relative;
    width: 100%;
    min-height: 650px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-card.flipped {
    transform: rotateY(180deg);
}

/* Card Faces */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front {
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
}

.contact-form {
    background: #f5f5dc;
    background-image: url('../images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-height: 650px;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 220, 0.2);
    border-radius: 10px;
    z-index: 0;
}

.contact-form h3,
.contact-form form {
    position: relative;
    z-index: 1;
}

.contact-form h3 {
    margin-bottom: 30px;
    color: #f5f5dc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f5f5dc;
}

.form-group input,
.form-group textarea {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    color: #f5f5dc;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 220, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(151, 191, 13, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: var(--light-bg);
    background-image: url('../images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 220, 0.2);
    border-radius: 10px;
    z-index: 0;
}

.contact-info h3,
.contact-info .info-item {
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: #f5f5dc;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 3px;
}

.info-item div h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #f5f5dc;
}

.info-item div p {
    color: #e8e8d0;
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

.product-detail {
    padding-top: 100px;
}

.product-hero {
    background: var(--light-bg);
    padding: 60px 0;
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-hero-text h1 {
    margin-bottom: 20px;
}

.product-description {
    padding: 80px 0;
}

.product-description p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-specs {
    background: var(--light-bg);
    padding: 80px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.spec-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.spec-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.spec-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.spec-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   PRODUCT VARIANTS SECTION
   ======================================== */

.product-variants {
    padding: 80px 0;
    background: var(--white);
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.variant-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.variant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.variant-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--light-bg);
}

.variant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.variant-card:hover .variant-image img {
    transform: scale(1.1);
}

.variant-content {
    padding: 30px;
    text-align: center;
}

.variant-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.variant-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.variant-content .btn {
    width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .featured-content,
    .contact-container,
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-specs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0;
        gap: 20px;
        transition: var(--transition-smooth);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-specs {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .welcome-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* ========================================
       COMPREHENSIVE MOBILE FIX (Under 481px)
       ======================================== */
    
    /* STRUCTURAL FIX: Prevent horizontal scrolling */
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* All sections use full width */
    .section,
    .hero,
    .about-section,
    .products-section,
    .featured-section,
    .partners-section,
    .blog-section,
    .footer,
    .contact-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* CONTAINER & LAYOUT: 100% width with safe padding */
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* CENTERING FIX: Force column layout and center alignment */
    .about-content,
    .featured-content,
    .contact-container,
    .product-hero-content,
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }
    
    /* Grids to single column */
    .products-grid,
    .blog-grid,
    .partners-grid,
    .specs-grid,
    .featured-specs,
    .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Products grid - 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Section Padding */
    .section {
        padding: 40px 0;
    }
    
    /* NAVBAR: Full width on mobile */
    .navbar {
        width: 100%;
        max-width: 100%;
    }
    
    .navbar .container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    
    .navbar-logo img {
        max-width: 150px;
        height: auto;
    }
    
    .navbar-text {
        font-size: 1rem;
    }
    
    /* HERO SECTION: Centered content */
    .hero {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .hero-content .welcome-text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* BUTTONS: Full width for easy tapping */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }
    
    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* ABOUT SECTION */
    .about-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .about-text,
    .about-image {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .about-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    /* 3D ROTATING BLOCK: Scale down for mobile */
    .rotating-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }
    
    .rotating-block,
    .block-face {
        width: 100%;
        max-width: 280px;
        height: 210px;
    }
    
    /* PRODUCTS SECTION */
    .products-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* BLOG SECTION */
    .blog-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .blog-card {
        width: 100%;
        max-width: 100%;
    }
    
    /* PARTNERS SECTION */
    .partners-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .partner-card {
        width: 100%;
        max-width: 100%;
    }
    
    /* CONTACT SECTION */
    .contact-container {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .contact-form,
    .contact-info {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* FEATURED PRODUCT */
    .featured-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .featured-specs {
        width: 100%;
        max-width: 100%;
    }
    
    /* PRODUCT DETAIL */
    .product-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .specs-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* BLOG DETAIL */
    .blog-content {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
        padding: 40px 15px;
    }
    
    .blog-hero-image {
        width: 95%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .blog-hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* TYPOGRAPHY: Responsive sizing */
    h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        text-align: center;
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    /* FOOTER */
    .footer {
        width: 100%;
        max-width: 100%;
    }
    
    .footer .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .footer-content {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-section {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    /* WHATSAPP BUTTON FIX: Always visible and locked in place */
    .whatsapp-float {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background-color: #25d366 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        font-size: 28px !important;
    }
    
    .whatsapp-float img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .whatsapp-float i {
        font-size: 28px !important;
        color: #fff !important;
    }
    
    /* CLEAN UP: Remove fixed widths, prevent overflow */
    img, video, iframe, canvas, svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables responsive */
    table {
        width: 100%;
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }
    
    /* Ensure no element causes horizontal scroll */
    * {
        max-width: 100vw;
    }
    
    /* Exception for fixed/absolute positioned elements */
    .whatsapp-float,
    .navbar,
    .hero-content,
    [style*="position: fixed"],
    [style*="position: absolute"] {
        max-width: none;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */

.partners-section {
    background: #0e2e05;
    padding: var(--section-padding);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.partner-card:hover img {
    transform: scale(1.05);
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    background: #1a1a1a;
    padding: var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Blog Detail Page */
.blog-detail {
    padding-top: 100px;
}

.blog-hero {
    background: var(--light-bg);
    padding: 60px 0;
}

.blog-hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.blog-hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff;
}

.blog-content h1 {
    margin-bottom: 20px;
    color: #ffffff;
}

.blog-content h2 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content h3 {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-content .blog-date {
    margin-bottom: 30px;
    display: block;
    color: #ffffff;
}

.blog-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ffffff;
}

.blog-content ul,
.blog-content ol {
    color: #ffffff;
    margin-bottom: 20px;
}

.blog-content li {
    color: #ffffff;
    margin-bottom: 10px;
}

.blog-content strong {
    color: #ffffff;
}

