:root {
    --primary-color: #111111;
    --secondary-color: #00a859;
    --accent-color: #ff8c00;
    --white-color: #ffffff;
    --dark-grey: #000000;
    --light-grey: #f0f3f5;
    --card-bg: #ffffff;
    --gold: #ffc107;
    --gold-light: #ffeb3b;
    --gold-dark: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--dark-grey);
    background-color: var(--white-color);
    overflow-x: hidden;
    padding-top: 128px; /* Height of navbar + marquee */
}

.cursor-aura {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo img { 
    height: 50px; 
    transition: all 0.3s ease;
    filter: brightness(0.95);
    animation: subtleFloat 3s ease-in-out infinite;
}
.navbar .logo-right img { height: 50px; }
.navbar .logos > .logo:nth-child(2) img { height: 60px; }  /* Renovari logo larger */

/* Cool subtle effects for header logos */
.navbar .logo img:hover {
    transform: scale(1.08) translateY(-3px);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 168, 89, 0.6));
    transition: all 0.3s ease;
}

/* Add continuous animation for logos */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.navbar .container, .navbar nav ul {
    display: flex;
    align-items: center;
}
.navbar .container { justify-content: space-between; padding: 1rem 2rem; }
.navbar .logos { display: flex; gap: 1rem; align-items: center; }
.navbar nav ul { list-style: none; }
.navbar nav ul li a {
    color: var(--dark-grey);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}
.navbar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
}
.navbar nav ul li a:hover::after { width: 100%; }

/* Marquee Section */
.marquee-container {
    position: fixed;
    top: 82px; /* Positioned below the navbar */
    width: 100%;
    background: linear-gradient(90deg, #000000 0%, #111111 50%, #000000 100%);
    color: var(--white-color);
    padding: 0.8rem 0;
    overflow: hidden;
    z-index: 999; /* Below navbar, above content */
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: scroll-left 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 3rem;
    padding: 0.3rem 0;
}

.marquee-icon {
    height: 35px; /* Larger for better visibility */
    width: auto;
    margin: 0 1.5rem;
    transition: transform 0.3s ease;
    filter: brightness(1.2);
}

.marquee-icon:hover {
    transform: scale(1.2);
}

@keyframes scroll-left {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}


/* Hero Section */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white-color); overflow: hidden; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('img/Background.jpg') no-repeat center center/cover; z-index: -1; animation: zoom-in-out 40s ease-in-out infinite; filter: brightness(0.7); }
@keyframes zoom-in-out { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.hero-content { position: relative; max-width: 900px; }
.hero-float-img { position: absolute; top: -150px; right: -200px; width: 350px; animation: float 8s ease-in-out infinite; opacity: 0.4; z-index: 1; }
.hero p { font-size: 1.6rem; text-shadow: 2px 2px 6px rgba(0,0,0,0.6); position: relative; z-index: 2; }
@keyframes float { 0% { transform: translatey(0px) rotate(0deg); } 50% { transform: translatey(-25px) rotate(5deg); } 100% { transform: translatey(0px) rotate(0deg); } }

/* New Text Effect Styles */
.title-container { position: relative; width: 100%; overflow: hidden; padding: 2rem 0; }
.main-title { font-size: clamp(1.8rem, 4.5vw, 3.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: clamp(1px, 0.3vw, 2.5px); line-height: 1.1; margin-bottom: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.25rem, 0.8vw, 0.7rem); perspective: 1000px; width: 100%; max-width: 100vw; position: relative; z-index: 2; }
.title-word { display: inline-block; position: relative; background: linear-gradient( 45deg, var(--gold-light) 0%, var(--gold) 25%, var(--gold-dark) 50%, #ff6b35 75%, var(--gold-light) 100% ); background-size: 400% 400%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rainbow-wave 4s ease-in-out infinite, float-3d 6s ease-in-out infinite, glow-pulse 3s ease-in-out infinite; text-shadow: 0 0 8px rgba(255, 193, 7, 0.6), 0 0 16px rgba(255, 193, 7, 0.4), 0 0 24px rgba(255, 193, 7, 0.2); transform-style: preserve-3d; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform, filter; }
.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.4s; }
.title-word:nth-child(4) { animation-delay: 0.6s; }
.title-word:nth-child(5) { animation-delay: 0.8s; }
.title-word:nth-child(6) { animation-delay: 1s; }
.title-word:nth-child(7) { animation-delay: 1.2s; }
.title-word:nth-child(8) { animation-delay: 1.4s; }
.title-word:nth-child(9) { animation-delay: 1.6s; }

.title-word::before { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100% ); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine-sweep 3s ease-in-out infinite; animation-delay: inherit; }
.title-word::after { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: linear-gradient( 45deg, var(--accent-color), var(--secondary-color), var(--gold), var(--gold-light) ); background-size: 400% 400%; border-radius: 8px; z-index: -1; opacity: 0; filter: blur(8px); animation: border-glow 4s ease-in-out infinite; animation-delay: inherit; }

.title-word:hover { transform: translateY(-8px) rotateX(15deg) rotateY(5deg) scale(1.1); text-shadow: 0 0 12px rgba(255, 193, 7, 0.9), 0 0 24px rgba(255, 193, 7, 0.7), 0 0 36px rgba(255, 193, 7, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3); }
.title-word:hover::after { opacity: 0.4; filter: blur(10px); }

.title-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.title-particles::before, .title-particles::after { content: ''; position: absolute; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold), 20px 30px 0 var(--light-grey), 40px 70px 0 var(--secondary-color), 60px 40px 0 var(--gold-light), 80px 80px 0 var(--gold-dark), 100px 20px 0 var(--light-grey), 120px 60px 0 var(--secondary-color), 140px 90px 0 var(--gold), 160px 10px 0 var(--gold-light), 180px 50px 0 var(--light-grey); animation: particles-float 8s ease-in-out infinite; }
.title-particles::after { animation-delay: 4s; transform: translateX(50%); }

@keyframes rainbow-wave { 0% { background-position: 0% 50%; filter: hue-rotate(0deg) brightness(1.2); } 25% { background-position: 100% 50%; filter: hue-rotate(90deg) brightness(1.4); } 50% { background-position: 200% 50%; filter: hue-rotate(180deg) brightness(1.6); } 75% { background-position: 300% 50%; filter: hue-rotate(270deg) brightness(1.4); } 100% { background-position: 400% 50%; filter: hue-rotate(360deg) brightness(1.2); } }
@keyframes float-3d { 0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); } 25% { transform: translateY(-8px) rotateX(5deg) rotateY(2deg); } 50% { transform: translateY(-12px) rotateX(0deg) rotateY(-2deg); } 75% { transform: translateY(-8px) rotateX(-5deg) rotateY(2deg); } }
@keyframes glow-pulse { 0%, 100% { text-shadow: 0 0 8px rgba(255, 193, 7, 0.6), 0 0 16px rgba(255, 193, 7, 0.4), 0 0 24px rgba(255, 193, 7, 0.2); } 50% { text-shadow: 0 0 12px rgba(255, 193, 7, 0.8), 0 0 24px rgba(255, 193, 7, 0.6), 0 0 36px rgba(255, 193, 7, 0.4), 0 0 48px rgba(26, 188, 156, 0.2); } }
@keyframes shine-sweep { 0% { transform: translateX(-100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes border-glow { 0%, 100% { background-position: 0% 50%; opacity: 0; } 50% { background-position: 100% 50%; opacity: 0.15; } }
@keyframes particles-float { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } }


/* General Section Styles */
section { padding: 6rem 2rem; }
section h2 { text-align: center; font-size: 3rem; margin-bottom: 4rem; color: var(--primary-color); font-weight: 900; }

/* Stats Section */
.stats-section { background: var(--dark-grey); color: var(--white-color); }
.stats-section .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.stat-item h3 { font-size: 4rem; font-weight: 900; color: var(--secondary-color); }

/* Alliance, Tech, Products, Plastics Sections */
.alliance-section, .products-section { background: var(--light-grey); }
.tech-section, .plastics-section { background: var(--white-color); }

.alliance-grid, .products-grid, .plastics-grid {
    display: grid;
    gap: 2.5rem;
}
.alliance-grid, .products-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.plastics-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.alliance-card, .product-card, .plastic-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.alliance-logo { height: 60px; margin-bottom: 1.5rem; }
.alliance-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary-color); }

.tech-content { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.tech-image img { max-width: 100%; border-radius: 15px; }
.tech-text h3 { font-size: 2rem; color: var(--accent-color); margin-bottom: 1rem; }

.product-logo { height: 80px; margin-bottom: 1.5rem; object-fit: contain; }
.product-card h4 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; }

.plastic-card img { max-width: 100px; height: 100px; object-fit: contain; margin-bottom: 1rem; filter: grayscale(50%); transition: filter 0.3s ease; }
.plastic-card:hover img { filter: grayscale(0%); }

/* Tilt Effect */
.tilt-card { transform-style: preserve-3d; }
.tilt-content { transform: translateZ(20px); }

/* Footer */
.footer { background: var(--dark-grey); color: var(--light-grey); text-align: center; padding: 3rem 0; }

/* Animation Classes */
.reveal, .reveal-delay, .reveal-delay-2, .reveal-delay-3 {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-delay { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }
.show { opacity: 1; transform: translateY(0) scale(1); }

/* Responsive */
@media(max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
    .hero-float-img { width: 200px; right: -50px; top: -80px; }
    .alliance-grid, .products-grid, .tech-content { grid-template-columns: 1fr; }
    .navbar .container { flex-direction: column; }
    .navbar nav ul { padding-top: 1rem; }
}

/* 3D Logo Effect Styles */
.logo-section { position: relative; margin-bottom: 1rem; }
.logo-3d-container { position: relative; width: 280px; height: 280px; margin: 0 auto; perspective: 1000px; }
.logo-3d-wrapper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: rotateLogo 10s ease-in-out infinite; will-change: transform; }
.logo-3d-front { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; }
.logo-3d-image { width: 250px; height: 250px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)); }
.logo-3d-depth { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.logo-3d-glow { position: absolute; width: 100%; height: 100%; background: radial-gradient(circle at center, var(--accent-color) 0%, transparent 70%); animation: pulseGlow 3s ease-in-out infinite; will-change: transform, opacity; }
.logo-3d-border { position: absolute; width: 100%; height: 100%; border: 2px solid var(--accent-color); border-radius: 50%; box-shadow: 0 0 20px var(--accent-color); animation: borderPulse 2s ease-in-out infinite; will-change: transform, opacity; }
.logo-3d-shine-container { position: absolute; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; }
.logo-3d-shine { position: absolute; width: 100%; height: 100%; background: linear-gradient(45deg, transparent 30%, rgba(240, 253, 244, 0.4) 50%, transparent 70%); animation: shine 3s infinite; }
.logo-3d-sparkle-1, .logo-3d-sparkle-2 { position: absolute; width: 4px; height: 4px; background: var(--white-color); border-radius: 50%; box-shadow: 0 0 10px var(--accent-color); }
.logo-3d-sparkle-1 { top: 20%; left: 30%; animation: sparkle1 2s infinite; }
.logo-3d-sparkle-2 { top: 70%; right: 25%; animation: sparkle2 2.5s infinite; }
.logo-3d-reflection { position: absolute; top: 10%; left: 20%; width: 60%; height: 30%; background: linear-gradient(135deg, rgba(240, 253, 244, 0.3) 0%, transparent 50%); border-radius: 50%; transform: rotate(-20deg); }
.logo-3d-shadow { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 80%; height: 20px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%); filter: blur(10px); }

@keyframes rotateLogo { 0% { transform: rotateY(-25deg); } 50% { transform: rotateY(25deg); } 100% { transform: rotateY(-25deg); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }
@keyframes borderPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes shine { 0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } 100% { transform: translateX(100%) translateY(100%) rotate(45deg); } }
@keyframes sparkle1 { 0%, 100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }
@keyframes sparkle2 { 0%, 100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 768px) { .logo-3d-container { width: 200px; height: 200px; } .logo-3d-image { width: 180px; height: 180px; } }
}

/* Marquee Text Effect */
.marquee-text-effect {
    display: inline-block;
    position: relative;
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--accent-color) 25%,
        var(--gold) 50%,
        var(--secondary-color) 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-wave-marquee 4s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(0, 168, 89, 0.5);
}

.marquee-text-effect::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.4) 75%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-marquee 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes rainbow-wave-marquee {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine-marquee {
    0% { transform: translateX(-100%) skewX(-15deg); }
    20% { transform: translateX(100%) skewX(15deg); }
    100% { transform: translateX(100%) skewX(15deg); }
}

