/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-tertiary: #666666;
    --accent: #ffffff;
    --border: #252525;
    --border-light: #1a1a1a;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: radial-gradient(ellipse at top, #111111 0%, var(--bg-primary) 50%);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

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

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-primary);
    margin: 6px 0;
}

/* Now Section */
.now-section {
    padding: 80px 0 80px;
}

.now-content {
    max-width: 700px;
}

.now-text {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.now-projects {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.now-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.now-dot {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.now-details {
    flex: 1;
}

.now-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.now-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.greeting-line {
    width: 40px;
    height: 1px;
    background: var(--text-secondary);
}

.greeting-text {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.name-row {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.name-row:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, var(--text-secondary), transparent);
}

.scroll-text {
    color: var(--text-tertiary);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Work Section */
.work {
    padding: 100px 0 80px;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.work-grid {
    display: grid;
    gap: 24px;
}

.work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--text-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.work-card:hover::before {
    transform: translateX(100%);
}

.work-card:hover {
    border-color: var(--text-tertiary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.work-card-inner {
    padding: 40px;
}

.work-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.work-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.work-year {
    color: var(--text-tertiary);
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
}

.work-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.work-stars i {
    font-size: 13px;
}

.work-card:hover .work-stars {
    color: var(--text-secondary);
}

.work-arrow {
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
}

.work-card:hover .work-arrow {
    color: var(--text-primary);
    transform: translate(4px, -4px);
}

.work-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.work-card-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.work-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tag {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 12px;
    font-family: 'Space Grotesk', monospace;
}

/* Skeleton Loader for Dynamic Sync */
.skeleton-card {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.07) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s infinite ease-in-out;
    border-radius: 2px;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-header {
    height: 16px;
    width: 120px;
    margin-bottom: 24px;
}

.skeleton-title {
    height: 28px;
    width: 50%;
    margin-bottom: 14px;
}

.skeleton-desc-1 {
    height: 15px;
    width: 90%;
    margin-bottom: 8px;
}

.skeleton-desc-2 {
    height: 15px;
    width: 70%;
    margin-bottom: 16px;
}

.skeleton-tag {
    height: 26px;
    width: 90px;
    margin-top: 8px;
}

.work-status-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    border: 1px dashed var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

/* About Section */
.about {
    padding: 80px 0 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary), transparent);
}

.about-grid {
    max-width: 700px;
}

.about-lead {
    font-size: 24px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.about-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-skills {
    margin-top: 48px;
}

.skills-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* Contact Section */
.contact {
    padding: 80px 0 60px;
}

.contact-content {
    max-width: 700px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    margin: 40px 0;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.contact-email:hover {
    gap: 16px;
}

.contact-email i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.contact-email:hover i {
    transform: translate(4px, -4px);
}

.contact-socials {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.social-link i {
    font-size: 18px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

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

.footer-text {
    color: var(--text-tertiary);
    font-size: 13px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav {
        padding: 16px 24px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 40px 24px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-scroll {
        left: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .work-card-inner {
        padding: 28px;
    }
    
    .work-card-title {
        font-size: 24px;
    }
    
    .contact-email {
        font-size: 28px;
    }
    
    .contact-email i {
        font-size: 24px;
    }
    
    .contact-socials {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
