@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary: #0f4c81;
    --primary-dark: #0a3558;
    --primary-light: #1a6bb5;
    --accent: #00b4d8;
    --accent-light: #48cae4;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #0f4c81 0%, #00b4d8 100%);
    --gradient-2: linear-gradient(135deg, #1a1a2e 0%, #0f4c81 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    transition: color 0.3s;
}

nav.scrolled .logo {
    color: var(--primary);
}

.logo-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: filter 0.4s ease;
    filter: brightness(0) invert(1);
}

nav.scrolled .logo-icon {
    filter: none;
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

nav.scrolled .hamburger span {
    background: var(--dark);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    background: url('skarletmotion-background-6297148.jpg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    scroll-snap-align: start;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(15, 76, 129, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5, 15, 30, 0.45) 0%, rgba(5, 15, 30, 0.3) 50%, rgba(5, 15, 30, 0.55) 100%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(5, 15, 30, 0.7) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(72, 202, 228, 0.3));
    animation: floatGraphic 6s ease-in-out infinite;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 500px;
    animation: floatGraphic 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(72, 202, 228, 0.15));
}

@keyframes floatGraphic {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== SECTION COMMON ===== */
section {
    padding: 6rem 0;
}

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

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.section-desc {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.8;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--light);
    scroll-snap-align: start;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content .section-desc {
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--white);
    scroll-snap-align: start;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(15, 76, 129, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

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

/* ===== STATS SECTION ===== */
.stats {
    background: var(--gradient-2);
    padding: 4rem 0;
    scroll-snap-align: start;
}

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

.stat-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--white);
    scroll-snap-align: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(15, 76, 129, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.contact-item-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 1.5rem;
    scroll-snap-align: start;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE — Tablet (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-visual {
        display: none;
    }
    .hero-logo {
        height: 120px;
        width: auto;
        margin-bottom: 2rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        min-height: 350px;
    }
}

/* ========================================
   RESPONSIVE — Mobile (max 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        color: var(--dark) !important;
        font-size: 1.05rem;
        padding: 0.3rem 0;
    }
    .hamburger {
        display: flex;
    }
    .logo {
        font-size: 1.15rem;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
    }

    /* Hero */
    section {
        padding: 4rem 0;
    }
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0 0;
    }
    .hero-logo {
        height: 110px;
        width: auto;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Sections */
    .section-header {
        margin-bottom: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-desc {
        font-size: 1rem;
    }

    /* About */
    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-card {
        padding: 2rem;
    }
    .service-card h3 {
        font-size: 1.15rem;
    }

    /* Stats */
    .stats {
        padding: 3rem 0;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .stat-item h3 {
        font-size: 2.2rem;
    }

    /* Contact */
    .contact-grid {
        gap: 2.5rem;
    }
    .contact-map {
        min-height: 300px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        gap: 1.5rem;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE — Small phone (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0 0;
    }
    .hero-logo {
        height: 100px;
        width: auto;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.55rem;
    }
    .section-label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }
    .stat-item p {
        font-size: 0.85rem;
    }

    .contact-item-icon {
        width: 40px;
        height: 40px;
    }
    .contact-item-text h4 {
        font-size: 0.9rem;
    }
    .contact-item-text p {
        font-size: 0.85rem;
    }
    .contact-map {
        min-height: 250px;
        border-radius: 14px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
