:root {
    --primary-red: #E31E24;
    --primary-blue: #002D72;
    --accent-gold: #FDB913;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #333; overflow-x: hidden; background: #fafafa; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Animated Background */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background: linear-gradient(120deg, #f0f4ff, #fff0f0, #fff8e1);
    background-size: 300% 300%;
    animation: bgShift 15s ease infinite;
}
@keyframes bgShift { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.5);
}
.glass-card {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Navigation */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s; }
.logo img { height: 50px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; color: var(--primary-blue); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--primary-red); transition: 0.3s; }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-blue); }

/* Buttons & Pulses */
.btn { display: inline-block; padding: 12px 32px; border-radius: 50px; font-weight: 600; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary-red); color: var(--white); box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(227, 30, 36, 0.5); }
.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(227,30,36,0.4); } 
    70% { box-shadow: 0 0 0 15px rgba(227,30,36,0); } 
    100% { box-shadow: 0 0 0 0 rgba(227,30,36,0); } 
}

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; }
.hero-content { max-width: 50%; }
.hero h1 { font-size: 4.5rem; color: var(--primary-blue); line-height: 1.1; margin-bottom: 1rem; }
.highlight { color: var(--primary-red); }
.hero-image { width: 45%; text-align: center; }

/* Image Animations */
.float-heavy { 
    width: 100%; 
    animation: floatY 4s ease-in-out infinite; 
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.2)); 
    transition: opacity 0.2s ease-in-out; /* Smooth fade for the image swap */
}
.float-light { width: 80%; border-radius: 20px; animation: floatY 6s ease-in-out infinite; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.1)); }
.float-img { width: 100%; transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: floatSubtle 5s ease-in-out infinite; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }
@keyframes floatSubtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.features { display: flex; justify-content: space-around; padding: 5rem 5%; position: relative; z-index: 10; margin-top: -50px; gap: 2rem;}
.feature-box { text-align: center; padding: 2.5rem 2rem; background: var(--white); border-radius: 20px; width: 30%; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.4s; }
.feature-box:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.feature-box i { font-size: 3rem; color: var(--accent-gold); margin-bottom: 1rem; transition: 0.3s; }
.feature-box:hover i { transform: scale(1.2) rotate(10deg); }

.about { display: flex; align-items: center; padding: 6rem 5%; gap: 4rem; }
.about-text h2 { font-size: 3rem; color: var(--primary-blue); }
.founder-note { border-left: 4px solid var(--primary-red); padding-left: 1.5rem; margin-top: 2rem; font-style: italic; background: rgba(255,255,255,0.5); padding: 1.5rem; border-radius: 10px; }

/* Product Grid */
.products { padding: 6rem 5%; text-align: center; }
.section-title { font-size: 3rem; color: var(--primary-blue); }
.section-subtitle { margin-bottom: 3rem; color: #666; font-size: 1.2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.product-card { padding: 3rem 2rem; transition: 0.4s; cursor: pointer; }

/* Product Card Interactive Hover */
.product-card:hover { transform: translateY(-15px) scale(1.02); background: rgba(255,255,255,0.9); box-shadow: 0 20px 40px rgba(0,45,114,0.1); }
.product-card:hover .float-img { transform: scale(1.15) rotate(-3deg); animation-play-state: paused; filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2)); }
.product-card h3 { color: var(--primary-blue); font-size: 1.5rem; margin-top: 1rem; }
.tags span { display: inline-block; background: #eef2ff; color: var(--primary-blue); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; margin: 5px; font-weight: 600; }

/* Contact */
.contact { padding: 6rem 5%; }
.contact-container { display: flex; padding: 4rem; gap: 4rem; }
.contact-info, .contact-form { flex: 1; }
.contact-info h2 { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 2rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.1rem; }
.info-item i { color: var(--primary-red); font-size: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 1.5rem; border: none; border-radius: 10px; background: rgba(255,255,255,0.8); box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary-red); }

/* Scroll Reveal Classes */
.reveal-up { opacity: 0; transform: translateY(50px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero { flex-direction: column-reverse; height: auto; padding-top: 120px; text-align: center; }
    .hero-content, .hero-image { max-width: 100%; width: 100%; }
    .hero h1 { font-size: 3rem; margin-top: 2rem; }
    .features, .about, .contact-container { flex-direction: column; padding: 2rem; }
    .feature-box { width: 100%; }
}