/* Root Variables for Design System */
:root {
    --primary-color: #c91e35;
    --primary-hover: #a81528;
    --text-dark: #1f2229;
    --text-muted: #5e6675;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --card-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 40px -12px rgba(201, 30, 53, 0.15);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(201, 30, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 30, 53, 0.45);
}

.icon-wa {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/hero-industrial-automation-raynen.png') no-repeat center center/cover;
    border-bottom-right-radius: 120px;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    color: var(--bg-white);
}

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

.hero-content {
    max-width: 950px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* About and Stats Section */
.about-section {
    padding: 100px 20px;
    background-color: var(--bg-white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stats-grid .stat-card:nth-child(even) {
    transform: translateY(30px);
}

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

.stats-grid .stat-card:nth-child(even):hover {
    transform: translateY(22px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.brand-text {
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* Products Section */
.products-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    position: relative;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* We want to layout the 5 cards beautifully. Let's make the first two 3 spans each, and the next three 2 spans each on large screens. Or a standard grid.
Wait! The mockup shows:
Top row: 2 cards (Low-Voltage AC Drives, Medium-Voltage AC Drives) - they look equal width.
Bottom row: 3 cards (Low-Voltage Soft Starter, Medium-Voltage Soft Starter, Human Machine Interface) - they look equal width.
Let's recreate this layout exactly!
Row 1: 2 columns grid.
Row 2: 3 columns grid.
Or a flexible layout. Let's use CSS Grid with custom classes or grid area properties.
*/

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: left;
    font-weight: 800;
    width: auto;
}

.product-image {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 220px;
    margin-top: auto;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

/* Desktop Grid Rules for Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.product-card:nth-child(1),
.product-card:nth-child(2) {
    grid-column: span 3;
}

.product-card:nth-child(3),
.product-card:nth-child(4),
.product-card:nth-child(5) {
    grid-column: span 2;
}

/* Project Solution Section */
.project-section {
    padding: 100px 20px;
    background-color: var(--bg-light);
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.project-content h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.project-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* Red overlay project grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 180px;
    box-shadow: var(--card-shadow);
    background-color: var(--primary-color);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.8;
    filter: grayscale(30%);
    transition: var(--transition);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    mix-blend-mode: color;
    z-index: 1;
    pointer-events: none;
}

.project-item:hover img {
    transform: scale(1.08);
    opacity: 0.9;
}

/* The mockup has 6 images in a 2x3 grid layout */

/* Footer Section */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 80px 20px 40px;
    border-top-left-radius: 80px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 900px;
    margin-bottom: 40px;
}

.footer-contact,
.footer-address {
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.footer p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

.footer a {
    color: var(--bg-white);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer a:hover {
    opacity: 1;
    border-bottom-style: solid;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-card:nth-child(1),
    .product-card:nth-child(2) {
        grid-column: span 2;
    }

    .product-card:nth-child(3),
    .product-card:nth-child(4) {
        grid-column: span 2;
    }

    .product-card:nth-child(5) {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        border-bottom-right-radius: 60px;
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-section,
    .project-section,
    .footer {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .footer {
        border-top-left-radius: 40px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card:nth-child(1),
    .product-card:nth-child(2),
    .product-card:nth-child(3),
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        grid-column: span 1;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-item {
        height: 150px;
    }
}