/* Minimal White Theme */
:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-50: #f5f5f5;
    --gray-100: #e5e5e5;
    --gray-200: #d4d4d4;
    --gray-300: #a3a3a3;
    --gray-400: #737373;
    --gray-500: #525252;
    --gray-600: #404040;
    --gray-700: #262626;
    --gray-800: #171717;
    --gray-900: #0a0a0a;
    
    --accent: #0066ff;
    --accent-hover: #0052cc;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    gap: 48px;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-item:hover,
.nav-item.active {
    color: var(--gray-900);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 60px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 32px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-line.highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-500);
    max-width: 360px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

.hero-detail {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    gap: 8px;
    transition: var(--transition-fast);
}

.hero-cta:hover {
    color: var(--accent-hover);
    gap: 12px;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-300);
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gray-400);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 140px 60px;
    border-top: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

.section-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-left {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.section-num {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 20px;
}

.section-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-500);
}

.section-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Project Cards */
.project-card {
    display: flex;
    gap: 32px;
    padding: 32px;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

.project-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    transform: translateX(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.project-image {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.red-alert-img {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.console-img {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.project-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition-fast);
}

.project-card:hover .project-link {
    color: var(--accent-hover);
}

/* AI List */
.ai-list {
    display: flex;
    flex-direction: column;
}

.ai-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateX(20px);
}

.ai-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.ai-item:hover {
    background: var(--white);
    border-color: var(--gray-200);
}

.ai-name {
    font-size: 18px;
    font-weight: 500;
}

.ai-desc {
    font-size: 14px;
    color: var(--gray-400);
}

.ai-arrow {
    font-size: 20px;
    color: var(--gray-300);
    transition: var(--transition-fast);
}

.ai-item:hover .ai-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* About Section */
.about-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-block h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.detail-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tags span {
    padding: 8px 16px;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.tech-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.stats-block {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--gray-900);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-400);
}

/* Footer */
.footer {
    padding: 60px;
    border-top: 1px solid var(--gray-100);
    background: var(--off-white);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 13px;
    color: var(--gray-400);
}

.footer-right {
    display: flex;
    gap: 32px;
}

.footer-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-right {
        padding-top: 0;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .section-left {
        position: static;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 24px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        height: 160px;
    }
    
    .footer {
        padding: 40px 24px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-right {
        gap: 24px;
    }
}
