/* RAFA PRINTPACK - CONSOLIDATED STYLESHEET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #DCF962;
    --secondary-color: #0F1E19;
    --accent-color: #162E26;
    --text-light: #ffffff;
    --text-dark: #0F1E19;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #0F1E19;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 24px;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--bg-white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 40px; position: relative; }
section { padding: 100px 0; }

.btn {
    display: inline-block; padding: 14px 28px; background-color: var(--primary-color);
    color: var(--secondary-color); border-radius: 50px; font-weight: 700; font-size: 0.95rem;
    border: none; cursor: pointer; transition: var(--transition-smooth);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn:hover { background-color: var(--secondary-color); color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }

/* Header & Nav */
header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%;
    max-width: var(--container-width); background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); border-radius: 50px; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center; z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
header.sticky { 
    top: 0; width: 100%; border-radius: 0; background: rgba(15, 30, 25, 0.95); padding: 10px 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
header.sticky .logo h1, header.sticky .nav-links a { color: var(--text-light); }

.logo img { height: 40px; }
.logo h1 { font-size: 1.5rem; font-weight: 800; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

.header-btns { display: flex; align-items: center; gap: 20px; }

.mobile-menu-btn {
    display: none; flex-direction: column; justify-content: center; gap: 6px;
    width: 30px; height: 30px; cursor: pointer; z-index: 2001;
}
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background: var(--text-dark); transition: var(--transition-smooth); }
header.sticky .mobile-menu-btn span { background: white; }

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero Section */
.hero {
    min-height: 100vh; padding: 180px 0 120px; 
    background: linear-gradient(-45deg, #0F1E19, #1A2E28, #00A651, #0F1E19);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white; position: relative; overflow: hidden; display: flex; align-items: center;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; z-index: 10; padding-right: 50%; }
.hero-content { max-width: 800px; }
.hero h1 { font-size: 5rem; font-weight: 800; line-height: 1.1; margin-bottom: 30px; }
.hero h1 span.sliding-text-wrapper { 
    display: inline-grid; 
    position: relative; 
    vertical-align: bottom; 
    height: 1.25em; 
    overflow: hidden; 
    color: var(--primary-color);
    margin-left: 10px;
}
.sliding-text {
    grid-area: 1/1;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.4s ease;
    white-space: nowrap;
}
.sliding-text.active {
    opacity: 1;
    transform: translateY(0);
}
.sliding-text.exit {
    opacity: 0;
    transform: translateY(-100%);
}
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; }

/* Hero Products */
.hero-products { position: absolute; right: 0; top: 0; width: 50%; height: 100%; z-index: 5; perspective: 2000px; overflow: visible; }
.product-card { 
    position: absolute; 
    overflow: hidden; 
}
.product-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.card-sachet { 
    width: clamp(140px, 20vw, 400px); height: auto; aspect-ratio: 1/1; z-index: 4; 
    left: 18%; top: 48%; transform: translate(-50%, -50%) rotateY(-20deg); 
    animation: cardFloatSachet 4s infinite cubic-bezier(0.45, 0, 0.55, 1); 
}
.card-carton { 
    width: clamp(280px, 40vw, 650px); height: auto; aspect-ratio: 650/480; z-index: 5; 
    left: 50%; top: 48%; transform: translate(-50%, -50%); 
    animation: cardFloatCarton 5s infinite cubic-bezier(0.45, 0, 0.55, 1); 
}
.card-blister { 
    width: clamp(160px, 25vw, 450px); height: auto; aspect-ratio: 1/1; z-index: 6; 
    left: 82%; top: 48%; transform: translate(-50%, -50%) rotateY(20deg); 
    animation: cardFloatBlister 4.5s infinite cubic-bezier(0.45, 0, 0.55, 1); 
}

.product-card {
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover { 
    transform: translate(-50%, -62%) scale(1.12) rotateX(10deg) rotateY(10deg) !important; 
    z-index: 100 !important;
    filter: brightness(1.1) drop-shadow(0 0 60px rgba(220, 249, 98, 0.8));
}

@keyframes cardFloatCarton { 
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); } 
    50% { transform: translate(-48%, -58%) rotate(3deg) scale(1.02); } 
}
@keyframes cardFloatBlister { 
    0%, 100% { transform: translate(-50%, -50%) rotateY(20deg) rotate(0deg) scale(1); } 
    50% { transform: translate(-52%, -44%) rotateY(15deg) rotate(-4deg) scale(0.98); } 
}
@keyframes cardFloatSachet { 
    0%, 100% { transform: translate(-50%, -50%) rotateY(-20deg) rotate(0deg) scale(1); } 
    50% { transform: translate(-49%, -56%) rotateY(-25deg) rotate(5deg) scale(1.03); } 
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: center; }

/* Sections */
.section-tag { color: var(--primary-color); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 15px; display: block; background: var(--accent-color); padding: 5px 15px; border-radius: 5px; width: fit-content; }
.section-header h2 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-light); padding: 50px; border-radius: var(--border-radius); transition: var(--transition-smooth); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }

.bg-dark-section { background-color: var(--bg-dark); color: var(--text-light); }
.bg-dark-section .service-card { background: var(--accent-color); }

/* Footer */
footer { background: var(--bg-dark); color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 30px; color: var(--primary-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; display: flex; justify-content: space-between; opacity: 0.6; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.animate-up { animation: fadeInUp 1s forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* MEDIA QUERIES */
/* MEDIA QUERIES */
@media (max-width: 992px) {
    .container { padding: 0 20px; }
    header { top: 0; width: 100%; border-radius: 0; padding: 10px 20px; left: 50%; transform: translateX(-50%); }
    .logo h1 { font-size: 1.1rem !important; }
    .btn-quote, .header-btns .btn { display: none !important; }
    
    .mobile-menu-btn { display: flex !important; margin-left: auto; }
    .nav-links {
        display: none; /* Bulletproof hide */
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--secondary-color); flex-direction: column;
        justify-content: center; align-items: center; gap: 30px;
        transition: 0.5s all ease; z-index: 1009;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .nav-links.active { display: flex !important; right: 0; }
    .nav-links a { color: white; font-size: 1.1rem; }

    section { padding: 60px 0; }
    .hero {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
    }
    .hero .container { 
        display: block !important; 
        padding-right: 0 !important; 
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }
    .hero-content { 
        margin: 0 auto 30px !important;
        max-width: 100%;
    }
    .hero h1 { font-size: clamp(2.2rem, 7vw, 3rem) !important; margin-bottom: 20px; }
    .hero p { font-size: 1.1rem; margin-bottom: 25px; }
    
    .hero-products { 
        position: relative !important; 
        width: 100% !important; 
        height: 420px !important; 
        margin: 0 auto !important;
        transform: scale(0.85); /* Initial scale for tablet */
        right: auto !important;
        top: auto !important;
    }
    .card-carton { width: 320px !important; left: 50% !important; top: 45% !important; }
    .card-blister { width: 220px !important; left: 80% !important; top: 55% !important; }
    .card-sachet { width: 200px !important; left: 20% !important; top: 55% !important; }

    .about-grid, .services-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.22rem !important; }
    .hero-products { height: 380px !important; transform: scale(0.75); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    header { padding: 10px 15px; }
    .hero h1 { font-size: 1.6rem !important; }
    .hero p { font-size: 0.9rem; margin-bottom: 20px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-products { height: 280px !important; transform: scale(0.65); margin-top: -10px !important; }
    .card-carton { width: 250px !important; }
    .card-blister { width: 150px !important; left: 85% !important; }
    .card-sachet { width: 140px !important; left: 15% !important; }
}

