/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent-cyan: #00bcd4;
    --accent-magenta: #e91e63;
    --accent-yellow: #ffc107;
    --accent-green: #4caf50;
    --accent-orange: #ff9800;
    --accent-purple: #9c27b0;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --gradient-1: linear-gradient(135deg, #00bcd4, #e91e63);
    --gradient-2: linear-gradient(135deg, #ff9800, #e91e63);
    --gradient-3: linear-gradient(135deg, #4caf50, #00bcd4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: height var(--transition);
    will-change: transform;
}

.navbar.scrolled .logo-img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-social {
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-social:hover {
    color: #E1306C;
    background: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle-mobile {
    display: none;
}

.nav-lang-item {
    display: none;
}

.lang-active {
    color: var(--accent-cyan);
}

.lang-inactive {
    opacity: 0.6;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#fluidCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Hero content - positioned at bottom */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px 100px;
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 188, 212, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

@media (min-width: 769px) {
    .hero-scroll {
        bottom: 30px;
    }
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.6);
}

.hero-scroll a:hover {
    color: var(--accent-cyan);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.title-accent {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

.section-desc {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p:last-child {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fruit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 280px;
}

.fruit-float {
    width: 140px;
    height: 140px;
    object-fit: contain;
    will-change: transform;
}

/* ===== SERVICES ===== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.service-card[data-color="cyan"]::before { background: var(--accent-cyan); }
.service-card[data-color="magenta"]::before { background: var(--accent-magenta); }
.service-card[data-color="yellow"]::before { background: var(--accent-yellow); }
.service-card[data-color="green"]::before { background: var(--accent-green); }
.service-card[data-color="orange"]::before { background: var(--accent-orange); }
.service-card[data-color="purple"]::before { background: var(--accent-purple); }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    height: 6px;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card[data-color="cyan"] .service-icon { color: var(--accent-cyan); }
.service-card[data-color="magenta"] .service-icon { color: var(--accent-magenta); }
.service-card[data-color="yellow"] .service-icon { color: var(--accent-yellow); }
.service-card[data-color="green"] .service-icon { color: var(--accent-green); }
.service-card[data-color="orange"] .service-icon { color: var(--accent-orange); }
.service-card[data-color="purple"] .service-icon { color: var(--accent-purple); }

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== PORTFOLIO / FRUITS ===== */
.portfolio {
    background: var(--bg-dark);
    padding-bottom: 60px;
    overflow: hidden;
}

.portfolio .section-title {
    color: var(--text-light);
}

.portfolio .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

.fruits-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.fruits-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.fruits-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: rotate(90deg) scale(2.1);
}

/* Fade edges into background */
.fruits-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 60px 30px var(--bg-dark);
    pointer-events: none;
    z-index: 5;
}

/* Hotspots */
.fruit-hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size, 60px);
    height: var(--size, 60px);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.fruit-hotspot:hover {
    z-index: 50;
}

.hotspot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.7), 0 0 0 3px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: dotPulse 3s ease-in-out infinite;
}

.fruit-hotspot:hover .hotspot-ring {
    background: var(--accent-cyan);
    border-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 14px rgba(0, 188, 212, 0.9), 0 0 0 4px rgba(0, 0, 0, 0.4);
    animation: none;
    transform: scale(1.4);
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Reveal card on hover */
.hotspot-reveal {
    display: none;
}

/* Floating reveal (injected by JS) */
.floating-reveal {
    position: fixed;
    width: 320px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 9999;
    padding: 20px;
    text-align: center;
    pointer-events: none;
    animation: revealIn 0.2s ease;
}

.floating-reveal .reveal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
}

.floating-reveal .reveal-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.floating-reveal span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.floating-reveal small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@keyframes revealIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Top-row hotspots - handled by JS now */

.hotspot-reveal .reveal-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.hotspot-reveal span {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.hotspot-reveal .reveal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
}

.hotspot-reveal small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== CONTACT ===== */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: white;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 16px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: white;
}

.btn-submit {
    align-self: flex-start;
    padding: 16px 40px;
}

.btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 140px;
    margin-bottom: 8px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-social a svg {
    width: 36px;
    height: 36px;
}

.footer-social a:hover {
    color: #E1306C;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* Mobile slider - hidden on desktop */
.mobile-slider {
    display: none;
}

.portfolio-desc-mobile {
    display: none;
}

@media (max-width: 768px) {
    .mobile-slider {
        display: block;
        padding: 0 24px;
        overflow: hidden;
    }
    
    .slider-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 16px;
    }
    
    .slider-track::-webkit-scrollbar {
        display: none;
    }
    
    .slider-slide {
        flex: 0 0 75%;
        scroll-snap-align: center;
        background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
        border-radius: var(--radius);
        overflow: hidden;
        text-align: center;
    }
    
    .slider-slide img {
        width: 100%;
        height: 250px;
        object-fit: contain;
        background: white;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .slider-slide span {
        display: block;
        padding: 12px;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .fruits-showcase {
        display: none;
    }
    
    .portfolio-desc-desktop {
        display: none;
    }
    
    .portfolio-desc-mobile {
        display: block;
    }
}
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hotspot-reveal {
        width: 180px;
    }
    
    .hotspot-reveal img {
        height: 110px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
        background: rgba(26, 26, 46, 0.3);
    }
    
    .navbar.scrolled {
        padding: 10px 0;
        background: rgba(26, 26, 46, 0.7);
    }
    
    .logo-img {
        height: 40px;
    }
    
    .navbar.scrolled .logo-img {
        height: 36px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        transform: none;
        width: 280px;
        height: 100vh;
        background: linear-gradient(to bottom right, var(--bg-dark) 40%, #0a3d5c 70%, #00bcd4 90%, #e91e63 100%);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: var(--transition);
        gap: 12px;
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .lang-toggle {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    .lang-toggle-mobile {
        display: inline-block;
    }
    
    .nav-lang-item {
        display: list-item;
        margin-top: 20px;
        padding: 12px 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-visual {
        order: -1;
    }
    
    .fruit-grid {
        width: 200px;
        gap: 16px;
    }
    
    .fruit-float {
        width: 85px;
        height: 85px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    /* Fruits on mobile */
    .fruit-hotspot {
        --scale: 0.55;
        width: var(--size, 60px);
        height: var(--size, 60px);
        transform: translate(-50%, -50%) scale(var(--scale));
        min-width: unset;
        min-height: unset;
    }
    
    .fruit-hotspot:hover,
    .fruit-hotspot.touch-active {
        transform: translate(-50%, -50%) scale(calc(var(--scale) * 1.1));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero {
        align-items: flex-start;
        padding-top: 30vh;
    }
    
    .hero-scroll {
        bottom: auto;
        top: 60%;
        transform: translateX(-50%);
        animation: bounceStatic 2s ease-in-out infinite;
    }
    
    @keyframes bounceStatic {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(10px); }
    }
}

@media (max-width: 480px) {
    .fruit-hotspot {
        --scale: 0.4;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Flip Merchandising image (both axes) */
img[src*="PAV_Merchandising"] {
    transform: scale(-1, -1);
}
