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

:root {
    --primary-color: #ffffff;
    --secondary-color: #0a0e27;
    --accent-color: #4a9eff;
    --accent-blue: #6eb5ff;
    --dark-bg: #0a0e27;
    --darker-bg: #060816;
    --card-bg: #131829;
    --text-gray: #a0aec0;
    --text-light: #e2e8f0;
    --gradient-blue: linear-gradient(135deg, #4a9eff 0%, #6eb5ff 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark-bg);
}

/* Navigation with Blur - 처음엔 완전 투명, 블러 없음 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo-image {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.navbar.scrolled .logo-image {
    height: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-menu a:hover {
    color: var(--accent-color);
}

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

/* Hero Section with Video Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 40px;
    overflow: hidden;
    background: var(--dark-bg);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* AIMS Animation */
.aims-animation {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.aims-text {
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 30px;
    margin: 0;
    opacity: 1;
    animation: fadeOutExpand 1.5s ease-in-out 2s forwards;
    text-shadow: 0 0 60px rgba(74, 158, 255, 0.6);
    position: absolute;
}

.aims-full {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    opacity: 0;
    white-space: nowrap;
    display: flex;
    gap: 20px;
    animation: fadeIn 1s ease-in-out 3s forwards;
}

.aims-full .word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-50px) scale(0.5);
}

.aims-full .word:nth-child(1) {
    animation: expandWord 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 3.5s forwards;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aims-full .word:nth-child(2) {
    animation: expandWord 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 3.8s forwards;
}

.aims-full .word:nth-child(3) {
    animation: expandWord 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 4.1s forwards;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-gray);
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease 4.5s forwards;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--gradient-blue);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease 5s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 5.5s forwards, bounce 2s infinite 6s;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* Solutions Section */
.solutions, .technology {
    min-height: 100vh;
    padding: 150px 40px;
    position: relative;
}

.solutions {
    background: var(--dark-bg);
}

.technology {
    background: var(--darker-bg);
}

.section-number {
    font-size: 120px;
    font-weight: 700;
    color: rgba(74, 158, 255, 0.08);
    position: absolute;
    top: 100px;
    left: 40px;
}

.solutions-content, .technology-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: -2px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.centered {
    text-align: center;
}

.solution-grid, .tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-image, .tech-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.section-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.section-img.visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-features h3, .tech-features h3 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
    line-height: 1.8;
}

.feature-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.feature-list li:hover {
    color: var(--text-light);
}

/* Why Section */
.why-section {
    padding: 150px 40px;
    background: var(--dark-bg);
    position: relative;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.why-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(74, 158, 255, 0.1);
    backdrop-filter: blur(10px);
}

.why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.3);
    background: rgba(19, 24, 41, 0.8);
}

.card-number {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.why-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Footer - 좌측 끝 정렬 */
.footer {
    background: var(--darker-bg);
    color: var(--primary-color);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
}

.footer-content {
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section:first-child {
    padding-left: 0;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    display: block;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.footer-section p {
    color: var(--text-gray);
}

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

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

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 100%;
    margin: 0;
    padding: 40px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutExpand {
    0% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: 30px;
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
        letter-spacing: 80px;
    }
}

@keyframes expandWord {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.5);
    }
    60% {
        transform: translateX(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Glow effect on scroll */
.glow-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.8);
}

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

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

    .aims-text {
        letter-spacing: 15px;
        font-size: clamp(60px, 12vw, 120px);
    }

    .aims-full {
        font-size: clamp(35px, 8vw, 80px);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo-image {
        height: 30px;
    }

    .navbar.scrolled .logo-image {
        height: 28px;
    }

    .nav-menu {
        gap: 15px;
        font-size: 11px;
    }

    .logo {
        margin-right: auto;
    }

    .hero {
        padding: 80px 20px;
    }

    .solutions, .technology, .why-section {
        padding: 100px 20px;
    }

    .section-number {
        font-size: 60px;
        top: 50px;
        left: 20px;
    }

    .aims-text {
        letter-spacing: 10px;
        font-size: clamp(50px, 10vw, 100px);
    }

    .aims-full {
        font-size: clamp(25px, 6vw, 50px);
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 40px 20px 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}
