/* ==========================================================================
   CSS Variables & Theme - Premium Dynamic
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #E31E24;
    --primary-light: #fbe5e6;
    --primary-dark: #b8171d;
    --secondary: #111111;
    --secondary-light: #222222;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-main: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* UI Elements */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows - Premium */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover-lift: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 10px rgba(0,0,0,0.02);
    --shadow-glow: 0 10px 30px rgba(227, 30, 36, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-main: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-bg-alt {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes floatGentle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes pulseSoft {
    0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(227, 30, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

/* Reveal Classes (Triggered by JS) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-fade {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* Active State */
.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}
.reveal-fade.active {
    opacity: 1;
}

/* Staggering delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
    padding: 0.2rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-normal);
}

.header.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

.site-logo {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    transform: scale(1.8);
    transform-origin: left center;
}

.footer-logo {
    display: inline-block;
    background-color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.footer-logo .site-logo {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: center;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Abstract Corporate Curves Background */
.hero-bg-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.curve {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    animation: floatGentle 15s ease-in-out infinite alternate;
}

.curve-1 {
    top: -40%;
    left: -15%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: rotate(-15deg);
    animation-duration: 20s;
}

.curve-2 {
    bottom: -30%;
    right: -10%;
    width: 70%;
    height: 130%;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.03) 0%, rgba(227, 30, 36, 0.06) 100%);
    transform: rotate(20deg);
    animation-delay: -5s;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.curve-3 {
    top: -10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.04) 0%, transparent 70%);
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-box {
    background-color: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-hover-lift);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff4b50 100%);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.about-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

/* ==========================================================================
   Core Values
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.value-card {
    background-color: var(--white);
    padding: 3.5rem 2.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: left;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover-lift);
    border-color: transparent;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.value-card:hover .value-icon-wrapper {
    background-color: var(--primary);
    color: var(--white);
    animation: pulseSoft 2s infinite;
}

.value-icon {
    font-size: 2.2rem;
    color: var(--primary);
    transition: var(--transition-normal);
}

.value-card:hover .value-icon {
    color: var(--white);
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Product Portfolio
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover-lift);
}

.product-image-wrap {
    height: 240px;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

.product-image-placeholder {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0; right: 2rem; width: 40px; height: 3px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

.product-card:hover .product-info::before {
    width: 80px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.product-info p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.statistics {
    background-color: var(--secondary);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Dark Background pattern */
.statistics::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat-card {
    padding: 2rem 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.stat-number-wrap {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1.1rem;
    color: #a1a1aa;
    font-weight: 500;
}

/* ==========================================================================
   Blog Preview
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-hover-lift);
    transform: translateY(-8px);
}

.blog-image {
    height: 220px;
    background-color: var(--bg-gray);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.blog-title a {
    color: var(--secondary);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   Premium Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.footer-desc {
    color: #a1a1aa;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 40px; height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #a1a1aa;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '\f105'; /* FontAwesome angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 4px 0 0 4px;
    outline: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: var(--primary-dark);
}

.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: #71717a;
    font-size: 0.95rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    border-radius: 12px;
    transform: scale(0.95);
    transition: transform var(--transition-fast);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-list { display: none; }
    .nav-toggle { display: block; }
    .hero-container, .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .values-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding-top: 120px; padding-bottom: 4rem; }
    .hero-title { font-size: 2.8rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
