@font-face {
    font-family: "Geist";
    src: url("../fonts/Geist-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
}

:root {
    --primary-color: rgba(255, 255, 255, 0.9);
    --accent-color: rgba(255, 255, 255, 0.7);
    --bg-dark: rgba(10, 10, 10, 0.75);
    --glass-effect: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --icon-bg: rgba(0, 0, 0, 0.7);
}

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

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

body {
    font-family: "Coolvetica", "Geist", sans-serif;
    min-height: 100vh;
    color: white;
    position: relative;
}

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

#bgImage {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.desktop {
    animation: fadeIn 1s ease-out;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
}

.brand {
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.header-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

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

/* Page layout */
.page {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 0 8px;
    animation: slideIn 0.6s ease-out backwards;
}

.hero-title {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 15px;
    color: var(--accent-color);
    letter-spacing: 0.3px;
}

/* Shared glass panel */
.glass-panel {
    background: var(--glass-effect);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Featured project */
.featured {
    animation: slideIn 0.6s ease-out 0.15s backwards;
}

.featured-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.featured-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1609 / 808;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-img.active {
    opacity: 1;
}

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.featured-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 32px 32px;
}

.featured-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

.featured-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.featured-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-desc {
    font-size: 14px;
    color: var(--accent-color);
    line-height: 1.6;
}

.glass-button {
    align-self: flex-start;
    margin-top: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Other projects */
.projects {
    animation: slideIn 0.6s ease-out 0.3s backwards;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 18px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.project-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    overflow: hidden;
}

.project-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb.thumb-fallback img {
    display: none;
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 20px;
    flex: 1;
}

.project-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.lang-icon {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.project-name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    word-break: break-word;
}

.project-desc {
    font-size: 13px;
    color: var(--accent-color);
    line-height: 1.5;
}

.project-ccu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--accent-color);
    letter-spacing: 0.2px;
}

.ccu-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc6f;
    box-shadow: 0 0 6px #3ddc6f;
    flex-shrink: 0;
}

.ccu-count {
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact */
.contact {
    animation: slideIn 0.6s ease-out 0.45s backwards;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 640px) {
    .site-header {
        padding: 18px 20px;
        gap: 12px;
    }

    .brand {
        font-size: 15px;
    }

    .header-link {
        font-size: 13px;
    }

    .page {
        padding: 12px 16px 48px;
        gap: 40px;
    }

    .hero {
        padding: 24px 0 4px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 13px;
    }

    .featured-info {
        padding: 20px 20px 24px;
    }

    .featured-name {
        font-size: 22px;
    }

    .featured-desc {
        font-size: 13px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}
