/* Import Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #E31E24;
    --primary-red-hover: #c4181f;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(227, 30, 36, 0.4);
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { color: var(--dark-bg); font-weight: 700; line-height: 1.2; }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--primary-red); border-radius: 2px;
}

/* Navigation - Glassmorphism */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.nav-brand img { height: 45px; transition: var(--transition); }
.nav-brand img:hover { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; margin-right: 2rem;}
.nav-links a.nav-item {
    text-decoration: none; color: var(--dark-bg); font-weight: 500;
    font-size: 1.05rem; position: relative; transition: var(--transition);
}
.nav-links a.nav-item::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary-red); transition: width 0.3s ease;
}
.nav-links a.nav-item:hover { color: var(--primary-red); }
.nav-links a.nav-item:hover::after { width: 100%; }

.nav-buttons { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
    font-weight: 600; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; font-size: 1rem;
    text-align: center;
}
.btn-primary {
    background: var(--primary-red); color: var(--bg-white) !important;
    box-shadow: 0 4px 14px 0 rgba(227, 30, 36, 0.39);
}
.btn-primary:hover {
    background: var(--primary-red-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow);
}
.btn-outline {
    background: transparent; color: var(--dark-bg); border: 2px solid var(--dark-bg); padding: 0.65rem 1.4rem;
}
.btn-outline:hover { background: var(--dark-bg); color: var(--bg-white); transform: translateY(-2px); }

/* Hero Section */
/* Hero Section */
.hero {
    position: relative; min-height: 70vh;
    display: flex; align-items: center; justify-content: space-between;
    padding: 140px 4% 80px; overflow: hidden;
}
/* New Slideshow Background */
.hero-slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-slideshow::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(13deg, rgba(255,255,255,0.5) 0%, rgba(241,245,249,0.4) 100%);
    z-index: 1;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}
.hero-slide.active { opacity: 1; }

.hero::before { 
    content: ''; position: absolute; top: -10%; right: -5%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(227,30,36,0.08) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; animation: slideUpFade 1s both; }
.hero-badge {
    display: inline-block; padding: 0.5rem 1rem; background: rgba(227, 30, 36, 0.1); color: var(--primary-red);
    font-weight: 600; font-size: 0.875rem; border-radius: 2rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; line-height: 1.1; color: var(--dark-bg); }
.hero h1 span { color: var(--primary-red); display: block; }
.hero p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; }

/* Enhanced Hero Graphic */
.hero-visual {
    position: relative; z-index: 2; width: 45%; display: flex; justify-content: center;
    animation: floatImage 6s ease-in-out infinite;
}
.hero-visual .tape-showcase {
    position: relative; width: 450px; height: 450px;
    border-radius: 50%; 
    background: linear-gradient(145deg, #ffffff, #e2e8f0);
    box-shadow:  20px 20px 60px #cbd5e1, -20px -20px 60px #ffffff;
    display: flex; align-items: center; justify-content: center;
    border: 8px solid rgba(255,255,255,0.5);
}
.hero-visual img { width: 140%; transform: rotate(15deg); filter: drop-shadow(0 30px 30px rgba(0,0,0,0.15)); }

/* Animations */
@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatImage { 0% { transform: translateY(0px) rotate(0); } 50% { transform: translateY(-20px) rotate(2deg); } 100% { transform: translateY(0px) rotate(0); } }

/* Stats Bar */
.stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    padding: 3rem 5%; background: var(--bg-white);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.02); position: relative; z-index: 10;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-red); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Product Section */
.products { padding: 100px 5%; background: var(--bg-light); }
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 3rem;
}
.product-card {
    background: var(--bg-white); border-radius: var(--radius-xl); padding: 1.5rem;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%;
    position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.04);
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary-red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { transform: scaleX(1); }

.product-img-wrapper {
    height: 250px; background: #f1f5f9; border-radius: var(--radius-md);
    margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img-wrapper img {
    width: auto; height: 80%; object-fit: contain; transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrapper img { transform: scale(1.08) rotate(3deg); }

.product-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; transition: color 0.3s; color: var(--dark-bg); }
.product-card:hover .product-info h3 { color: var(--primary-red); }
.product-info p { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }
.product-arrow {
    margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 8px; color: var(--primary-red); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0; transform: translateX(-10px); transition: all 0.3s;
}
.product-card:hover .product-arrow { opacity: 1; transform: translateX(0); }

/* CTA Banner Modern */
.cta-banner {
    background: var(--dark-bg);
    padding: 80px 5%;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: var(--radius-xl); margin: 0 5% 100px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; right: 0; top: 0; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227,30,36,0.1) 100%);
}
.cta-content { position: relative; z-index: 2; max-width: 700px; }
.cta-content h2 { font-size: 2.5rem; color: var(--bg-white); margin-bottom: 1rem; line-height: 1.2; }
.cta-content h2 span { color: var(--primary-red); }
.cta-content p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 0; }
.cta-actions { position: relative; z-index: 2; }
.btn-white {
    background: var(--bg-white); color: var(--dark-bg) !important;
}
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255,255,255,0.2); }

/* Footer Dark Mode */
.footer { background: var(--dark-bg); color: var(--bg-white); padding: 80px 5% 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { color: #94a3b8; margin-top: 1.5rem; font-size: 1rem; max-width: 300px; }
.footer-title { color: var(--bg-white); font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary-red); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    color: #94a3b8; text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center;
}
.footer-links a:hover { color: var(--primary-red); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: #64748b; font-size: 0.9rem; }
.footer-socials { display: flex; gap: 1rem; }
.social-icon {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--bg-white); text-decoration: none; transition: var(--transition); font-weight: bold;
}
.social-icon:hover { background: var(--primary-red); transform: translateY(-3px); }

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links { margin-right: 1rem; gap: 1rem; }
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-content { margin-bottom: 4rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { width: 100%; }
    .hero-visual .tape-showcase { width: 350px; height: 350px; }
    .cta-banner { flex-direction: column; text-align: center; gap: 2rem; padding: 50px 5%; margin: 0 5% 60px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .stats-bar { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-visual .tape-showcase { width: 300px; height: 300px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Page Headers for Internal Pages */
.page-header {
    background: var(--dark-bg); color: var(--bg-white); padding: 150px 5% 80px; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.7) 100%), url('../images/coating_machine.jpg') center/cover;
}
.page-header h1 { font-size: 3.5rem; color: var(--bg-white); position: relative; z-index: 2; }
.page-header p { font-size: 1.2rem; color: #94a3b8; position: relative; z-index: 2; max-width: 600px; margin: 1rem auto 0; }

/* Internal Content Wrapper */
.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Detail Page Styles */
.product-detail-section {
    padding: 140px 5% 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.detail-image-box {
    flex: 1 1 400px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}
.detail-image-box img {
    max-width: 100%;
    transform: rotate(5deg);
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.1));
    transition: transform 0.5s ease;
}
.detail-image-box:hover img {
    transform: scale(1.05) rotate(0deg);
}
.detail-content {
    flex: 1 1 500px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}
.back-link:hover {
    color: var(--primary-red);
    transform: translateX(-5px);
}
.detail-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.features-list {
    list-style: none;
    margin: 2rem 0;
}
.features-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    color: var(--text-main);
}
.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}
.specs-table th, .specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.specs-table th {
    background: var(--bg-light);
    color: var(--dark-bg);
    font-weight: 600;
    width: 35%;
}
.specs-table tr:last-child th, .specs-table tr:last-child td {
    border-bottom: none;
}
