/* Allen Face Korea - Inspired by RIC Robotics */

:root {
    --primary-red: #cd3342;
    --primary-red-dark: #a42935;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-light: #e5e5e5;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 17px;
    background: var(--bg-white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Top Bar */
.top-bar {
    background-color: #0A192F;
    color: #D1D5DB;
    height: 40px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #D1D5DB;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #FFFFFF;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);

    /* Default: Solid Red (for sub-pages) */
    background: rgba(205, 51, 66, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Home Page Initial State: Transparent */
body.home header {
    background: transparent;
    box-shadow: none;
}

/* Home Page Scrolled State: Solid Red */
body.home header.scrolled {
    background: rgba(205, 51, 66, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo,
body:not(.home) header .logo {
    background: rgba(255, 255, 255, 0.95);
}

/* Ensure logo background is transparent on home initial */
body.home header:not(.scrolled) .logo {
    background: transparent;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 80px;
    width: 100%;
    padding: 0;
}

.logo {
    background: transparent;
    padding: 0 30px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo,
body:not(.home) header .logo {
    background: var(--bg-white);
}

.logo img {
    height: 47.25px;
    /* Increased by 5% from 45px */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

/* Scrolled or Non-Home: Remove shadow */
header.scrolled .logo img,
body:not(.home) header .logo img {
    height: 47.25px;
    /* Increased by 5% from 45px */
    filter: none;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
    background: transparent;
    padding: 0 30px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    transition: var(--transition);
}

header.scrolled nav {
    background: var(--primary-red);
}

.nav-item {
    position: relative;
}

nav a,
.dropdown-toggle {
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
    padding: 10px 0;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header.scrolled nav a,
header.scrolled .dropdown-toggle {
    text-shadow: none;
}

nav a:hover,
.dropdown-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--bg-white);
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    color: var(--text-dark);
    padding: 12px 30px;
    font-size: 15px;
    transition: var(--transition);
    text-shadow: none;
    /* Remove text shadow */
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
    padding-left: 30px;
}

.mobile-menu-btn {
    display: none;
    background: var(--primary-red);
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 15px 20px;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--bg-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    animation: parallaxZoom 20s ease-in-out infinite;
}

@keyframes parallaxZoom {
    0% {
        background-size: 110%;
    }

    50% {
        background-size: 120%;
    }

    100% {
        background-size: 110%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 850px;
    padding: 120px 0 120px;
    color: var(--bg-white);
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(205, 51, 66, 0.3);
    /* 30% opacity of #cd3342 */
    color: var(--bg-white);
    padding: 12px 40px;
    /* Wider padding */
    border-radius: 4px;
    /* Angled round */
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--bg-white);
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: var(--bg-white);
    width: 14px;
    height: 14px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    right: 40px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.scroll-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: scrollText 2s ease-in-out infinite;
}

@keyframes scrollText {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
    left: 30px;
}

.slider-arrow-right {
    right: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(205, 51, 66, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Hero section button override for dark background */
/* Hero section button override for dark background */
.hero .btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.hero .btn-primary:hover {
    background: var(--bg-white);
    color: var(--primary-red);
    border-color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    /* Slight white tint */
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* Thinner/fainter border */
    backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-red);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-red);
}

.benefit-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f8f8f8, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Process Section */
.process-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.process-section .section-header {
    margin-bottom: 0;
}

.process-infographic {
    text-align: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.infographic-container {
    position: relative;
    width: 93.6%;
    max-width: none;
    margin: 0 auto;
    padding-bottom: 60%;
    /* 1:1 aspect ratio */
}

.infographic-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    z-index: 1;
    opacity: 1;
}

.infographic-item {
    position: absolute;
    width: 20%;
    height: auto;
    z-index: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* 1. 결과 - 아래쪽 */
.item-1 {
    bottom: 16%;
    left: 27%;
    transform: translateX(-50%);
    width: 12.6%;
}

.item-1:hover {
    transform: translateX(-50%) scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    z-index: 3;
}

/* 2. 레미콘 - 2시 방향 */
.item-2 {
    top: 4%;
    right: 12%;
    width: 26%;
}

.item-2:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    z-index: 3;
}

/* 5. 그라인딩 - 중간-왼쪽 */
.item-5 {
    top: 50%;
    left: 35%;
    transform: translateY(-50%);
    width: 14%;
}

.item-5:hover {
    transform: translateY(-50%) scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    z-index: 3;
}

/* 6. 설계 - 10시 방향 */
.item-6 {
    top: 15%;
    left: 16%;
    width: 12.6%;
}

.item-6:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    z-index: 3;
}

/* 7. 바닥검수 dmeter - 중앙 */
.item-center {
    top: 73%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 8.8%;
}

.item-center:hover {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    z-index: 3;
}

/* 8. 바닥검수 DTE - 그라인딩 위 */
.item-7 {
    top: 40%;
    left: 32%;
    transform: translate(-50%, -50%);
    width: 21%;
}

.item-7:hover {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    z-index: 3;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.process-step {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-red);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px 20px;
    transition: var(--transition);
    border: 1px solid transparent;
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-red);
}

.service-number {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    background: var(--bg-white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-top: 60px;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: var(--bg-white);
    /* Use white or light gray? User said 'other pages are slightly gray'. Usually sections alternate.
    But wait, user said "Other pages are slightly gray", implying this one was DIFFERENT.
    If I make it '--bg-light' (gray), and I put a WHITE container inside it (Step 962), then it looks like Card on Gray.
    If I make it '--bg-white', then it's White content on White (invisible border?).
    So I MUST use '--bg-light' for the SECTION background. */
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

.cta .section-title {
    color: var(--text-dark);
}

.cta .section-subtitle {
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background: #2a2a2a;
    color: var(--bg-white);
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 52px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    text-align: center;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--bg-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Page Hero */
.page-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    text-align: center;
}

.page-hero .section-title {
    margin-bottom: 15px;
}

.page-hero .section-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2a2a2a;
    color: var(--bg-white);
    padding: 18px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: var(--transition);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1200px) {
    nav {
        gap: 30px;
        padding: 0 25px;
    }

    nav a,
    .dropdown-toggle {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    nav {
        gap: 25px;
        padding: 0 20px;
    }

    nav a,
    .dropdown-toggle {
        font-size: 14px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-infographic {
        padding: 0;
    }

    .infographic-container {
        max-width: none;
    }

    .infographic-base {
        width: 92%;
    }

    .infographic-item {
        width: 16%;
    }

    .item-1 {
        bottom: 16%;
        left: 27%;
        width: 9.9%;
    }

    .item-2 {
        top: 4%;
        right: 12%;
        width: 21%;
    }

    .item-5 {
        top: 50%;
        left: 35%;
        width: 11%;
    }

    .item-6 {
        top: 15%;
        left: 16%;
        width: 9.9%;
    }

    .item-center {
        top: 73%;
        left: 52%;
        width: 7%;
    }

    .item-7 {
        top: 40%;
        left: 32%;
        width: 16.8%;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    nav {
        gap: 20px;
        padding: 0 15px;
    }

    nav a,
    .dropdown-toggle {
        font-size: 13px;
    }
}

@media (max-width: 820px) {
    nav {
        gap: 15px;
        padding: 0 15px;
    }

    nav a,
    .dropdown-toggle {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    header {
        background: var(--primary-red);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    header.scrolled {
        background: var(--primary-red);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header-inner {
        min-height: 60px;
        padding: 0;
    }

    .logo {
        width: auto;
        padding: 0 15px;
        background: var(--bg-white);
        height: 60px;
    }

    header.scrolled .logo {
        background: var(--bg-white);
    }

    nav {
        background: transparent;
    }

    header.scrolled nav {
        background: var(--primary-red);
    }

    nav.active {
        background: var(--primary-red) !important;
    }

    .logo img {
        height: 35.2px;
        filter: none;
    }

    header.scrolled .logo img {
        height: 32px;
        filter: none;
    }

    .mobile-menu-btn {
        display: flex;
        background: var(--primary-red);
        padding: 10px 20px;
        align-items: center;
        height: 60px;
    }

    header.scrolled .mobile-menu-btn {
        background: var(--primary-red);
    }

    .mobile-menu-btn span {
        background: var(--bg-white);
        width: 22px;
        height: 2px;
        box-shadow: none;
    }

    header.scrolled .mobile-menu-btn span {
        box-shadow: none;
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 15px 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        flex: none;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    nav.active {
        display: flex;
    }

    nav a,
    .dropdown-toggle {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        color: var(--bg-white);
        font-size: 13px;
        text-align: left;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    header.scrolled nav a,
    header.scrolled .dropdown-toggle,
    nav.active a,
    nav.active .dropdown-toggle {
        text-shadow: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        color: var(--bg-white) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 12px;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        border-bottom: none;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 5px 0 5px 12px;
    }

    .dropdown.active .dropdown-toggle {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .dropdown-menu a {
        font-size: 12px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
    }

    .dropdown-toggle::after {
        content: '▼';
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile */
        min-height: -webkit-fill-available;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
    }

    .hero-slider {
        height: 100vh;
        height: 100dvh;
        width: 100%;
    }

    .hero-slide {
        height: 100vh;
        height: 100dvh;
        width: 100%;
        padding-top: 0 !important;
        background-size: cover !important;
    }

    .hero-content {
        padding: 120px 0 60px;
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slider-arrow-left {
        left: 8px;
    }

    .slider-arrow-right {
        right: 8px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .slider-dot {
        width: 7px;
        height: 7px;
    }

    .slider-dot.active {
        width: 9px;
        height: 9px;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 40px 0;
    }

    .page-hero {
        padding: 100px 0 50px;
    }

    .process-section {
        padding: 50px 0;
    }

    .process-section .section-header {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-infographic {
        padding: 0;
    }

    .infographic-container {
        max-width: none;
    }

    .infographic-base {
        width: 100%;
    }

    .infographic-item {
        width: 14%;
    }

    .item-1 {
        bottom: 16%;
        left: 27%;
        width: 9%;
    }

    .item-2 {
        top: 4%;
        right: 12%;
        width: 18%;
    }

    .item-5 {
        top: 50%;
        left: 35%;
        width: 10%;
    }

    .item-center {
        top: 73%;
        left: 52%;
        width: 8.8%;
    }

    .item-6 {
        top: 15%;
        left: 16%;
        width: 9%;
    }

    .item-7 {
        top: 40%;
        left: 32%;
        width: 14.7%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        text-align: center;
        gap: 20px;
    }

    footer {
        padding: 45px 0 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-brand img {
        height: 40px;
        margin-bottom: 12px;
    }

    .footer-brand p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-links h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 10px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* Contact page mobile optimization */
    section>.container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    section>.container>div>div>div[style*="padding: 48px"] {
        padding: 24px !important;
    }

    section>.container>div>div>div[style*="padding: 32px"] {
        padding: 20px !important;
    }

    section>.container>div>div>div h3[style*="font-size: 1.8rem"] {
        font-size: 1.3rem !important;
    }

    section>.container>div>div>div h4[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }

    section>.container>div>div>div form>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    section>.container>div>div>div form input,
    section>.container>div>div>div form textarea {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
    }

    section>.container>div>div>div form button {
        padding: 14px !important;
        font-size: 1rem !important;
    }

    section>.container>div>div>div ul li {
        font-size: 0.85rem !important;
        padding: 8px 0 !important;
    }

    section>.container>div>div>div ul li span {
        font-size: 1rem !important;
    }

    section>.container>div>div>div a[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    header {
        background: transparent;
        box-shadow: none;
    }

    header.scrolled {
        background: var(--primary-red);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header-inner {
        min-height: 55px;
        padding: 0;
    }

    .logo {
        width: auto;
        padding: 0 12px;
        background: transparent;
        height: 55px;
    }

    header.scrolled .logo {
        background: var(--bg-white);
    }

    nav {
        background: transparent;
    }

    header.scrolled nav {
        background: var(--primary-red);
    }

    nav.active {
        background: var(--primary-red) !important;
    }

    .logo img {
        height: 30.8px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    header.scrolled .logo img {
        height: 28px;
        filter: none;
    }

    .mobile-menu-btn {
        padding: 8px 15px;
        background: transparent;
        height: 55px;
        align-items: center;
    }

    header.scrolled .mobile-menu-btn {
        background: var(--primary-red);
    }

    .mobile-menu-btn span {
        width: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    header.scrolled .mobile-menu-btn span {
        box-shadow: none;
    }

    nav {
        top: 55px;
        padding: 12px 15px;
        max-height: calc(100vh - 55px);
    }

    nav a,
    .dropdown-toggle {
        padding: 8px 0;
        font-size: 12px;
        text-align: left;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    header.scrolled nav a,
    header.scrolled .dropdown-toggle,
    nav.active a,
    nav.active .dropdown-toggle {
        text-shadow: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        color: var(--bg-white) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .dropdown-menu {
        padding: 0 0 0 10px;
        border-bottom: none;
        background: rgba(0, 0, 0, 0.15);
    }

    .dropdown.active .dropdown-menu {
        padding: 4px 0 4px 10px;
    }

    .dropdown.active .dropdown-toggle {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .dropdown-menu a {
        font-size: 11px;
        padding: 6px 0;
        text-align: left;
    }

    .dropdown-toggle::after {
        font-size: 9px;
        margin-left: 6px;
        flex-shrink: 0;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile */
        min-height: -webkit-fill-available;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-slide {
        padding-top: 0 !important;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        background-size: cover !important;
    }

    .hero-slider {
        height: 100vh;
        height: 100dvh;
        width: 100%;
    }

    .hero-content {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 15px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
    }

    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        bottom: 12px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .slider-dot.active {
        width: 8px;
        height: 8px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 11px 20px;
        font-size: 13px;
    }

    .container {
        padding: 0 12px;
    }

    .page-hero {
        padding: 90px 0 40px;
    }

    section {
        padding: 35px 0;
    }

    .process-section {
        padding: 40px 0;
    }

    .process-section .section-header {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Footer optimization for smaller screens */
    footer {
        padding: 35px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        text-align: center;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 8px;
    }

    .footer-brand img {
        height: 35px;
        margin-bottom: 10px;
    }

    .footer-brand p {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 0 15px;
    }

    .footer-links h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links li {
        margin-bottom: 7px;
    }

    .footer-bottom {
        padding-top: 18px;
        margin-top: 8px;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    /* Contact page mobile optimization for smaller screens */
    section>.container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    section>.container>div>div>div[style*="padding: 48px"] {
        padding: 20px !important;
    }

    section>.container>div>div>div[style*="padding: 32px"] {
        padding: 18px !important;
    }

    section>.container>div>div>div h3[style*="font-size: 1.8rem"] {
        font-size: 1.2rem !important;
    }

    section>.container>div>div>div h4[style*="font-size: 1.2rem"] {
        font-size: 0.95rem !important;
    }

    section>.container>div>div>div form>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    section>.container>div>div>div form input,
    section>.container>div>div>div form textarea {
        padding: 11px 12px !important;
        font-size: 0.85rem !important;
    }

    section>.container>div>div>div form button {
        padding: 12px !important;
        font-size: 0.95rem !important;
    }

    section>.container>div>div>div ul li {
        font-size: 0.8rem !important;
        padding: 7px 0 !important;
    }

    section>.container>div>div>div ul li span {
        font-size: 0.95rem !important;
    }

    section>.container>div>div>div a[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }

    section>.container>div>div>div>div[style*="font-size: 0.9rem"] {
        font-size: 0.8rem !important;
    }
}

/* News Grid & Card Styles - Added for news.html */
/* News Grid & Card Styles - Added for news.html */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on large screens */
    gap: 30px;
    padding: 20px 0;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    margin-top: auto;
    color: var(--primary-red);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.load-more-btn {
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.load-more-btn:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(205, 51, 66, 0.2);
}