:root {
    --primary-color: #d63031; /* Accent Red for Fire Safety */
    --secondary-color: #2d3436; /* Dark Gray */
    --accent-color: #0984e3; /* Professional Blue */
    --text-color: #2d3436;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --heading-font: 'Outfit', sans-serif;
    --body-font: 'Noto Sans KR', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
    font-family: var(--heading-font);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-link, 
.navbar.scrolled .navbar-brand .brand-text {
    color: var(--secondary-color) !important;
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--white);
}

.nav-link {
    font-weight: 500;
    margin-left: 20px;
    position: relative;
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('hero_fire_safety_1768323204316.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, rgba(214, 48, 49, 0.2) 0%, rgba(214, 48, 49, 0) 100%);
    padding: 0 5px;
}

/* Stats Section */
.stat-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 2.5rem;
    display: block;
}

/* Section Title */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
}

.section-title span {
    color: var(--primary-color);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section */
.custom-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(214, 48, 49, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
}

/* Contact Section */
.contact-card {
    border-radius: 30px;
}

.form-control {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(214, 48, 49, 0.25);
    border-color: var(--primary-color);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.transition {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .navbar {
        background-color: var(--secondary-color);
    }
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }
    .display-4 {
        font-size: 2.5rem;
    }
}
