@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');

:root {
    --brand-orange: #F58220;
    --brand-dark: #333333;
    --brand-white: #FFFFFF;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-white);
    color: var(--brand-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    perspective: 1200px;
}

.floating-sheet {
    position: absolute;
    width: 250px;
    height: auto;
    opacity: 0.8;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    animation: float3D 20s infinite linear;
    will-change: transform;
}

@keyframes float3D {
    0% {
        transform: translate3d(0, 100vh, -200px) rotateX(0deg) rotateY(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translate3d(0, -100px, 100px) rotateX(180deg) rotateY(360deg);
        opacity: 0;
    }
}

/* Nav Specific Styles */
#main-nav {
    background-color: #333333;
    /* Default background */
}

#main-nav.scrolled {
    background-color: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(8px);
    /* For glass effect when scrolled */
}

/* Nav Menu Link Styles - Added as per request */
#main-nav a {
    position: relative;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid transparent;
    /* Invisible border to prevent layout shift */
    border-radius: 6px;
    /* Rounded corners */
    transition: all 0.3s ease;
}

#main-nav a:hover {
    border-color: #F58220;
    /* Orange Border */
    color: #F58220 !important;
    /* Force Orange Text on Hover */
    background-color: rgba(245, 130, 32, 0.05);
    /* Very subtle background tint for better feel */
}

/* Ensure mobile menu links get the same treatment or adjust if needed */
#mobile-menu a {
    display: block;
    width: fit-content;
    /* Don't stretch full width in mobile if not desired, or remove this to stretch */
}

/* =============================================================
 * ADHESIVE TAPES PAGE SPECIFIC STYLES
 * ============================================================= */
/* Dynamic Background Layer */
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #F9FAFB;
    /* Default Light Color */
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modern Card Styles */
.tape-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
}

.tape-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(245, 130, 32, 0.3);
}

/* Text transitions for contrast on dark backgrounds */
.transition-colors-text {
    transition: color 0.3s ease;
}

/* Portfolio Overlay (Keep as original) */
.tape-card .portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    background: #FFFFFF;
    /* White background */
}

.tape-card .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.tape-card .portfolio-item:hover img {
    transform: scale(1.1);
}

.tape-card .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(51, 51, 51, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}


/* =============================================================
 * PROTECTION FILMS PAGE SPECIFIC STYLES
 * ============================================================= */
/* Modern Font Override for high-tech feel */
.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Protection Specific Grid */
.protective-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.film-card {
    grid-column: span 12;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    border: 1px solid #f0f0f0;
}

@media (min-width: 1024px) {
    .film-card {
        grid-column: span 6;
        flex-direction: row;
        height: 320px;
    }

    .film-card.featured {
        grid-column: span 12;
        height: 450px;
    }

    .film-card.featured .film-image {
        width: 60%;
    }

    .film-card.featured .film-content {
        width: 40%;
    }
}

.film-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .film-image {
        width: 45%;
        height: 100%;
    }
}

.film-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #F58220;
}

.film-card:hover .film-image img {
    transform: scale(1.05);
}

.film-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafe 100%);
}

/* Shield Icon Effect */
.shield-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.content-overlay {
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 130, 32, 0.2);
    border-radius: 1.5rem;
}

.text-orange-brand {
    color: #F58220;
}

.bg-orange-brand {
    background-color: #F58220;
}

.hero-title {
    line-height: 0.9;
    letter-spacing: -0.05em;
}

section {
    min-height: 100vh;
    padding: 5rem 1.5rem;
    display: flex;
    align-items: center;
}

.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 130, 32, 0.15);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 1 / 1;
    background: #eee;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(51, 51, 51, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
    background: #F58220;
    border-radius: 5px;
}