@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&family=Matemasie&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    --glow-color: rgba(255, 255, 255, 0.202);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-family: 'Inter', sans-serif;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-xxl: 24px;
}

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

html::before {
    content: '';
    position: fixed;
    top: -8px;
    left: -8px;
    width: calc(100vw + 16px);
    height: calc(100vh + 16px);
    border: 25px solid white;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgb(0, 0, 0);
    pointer-events: none;
    z-index: 4;
}

body {
    margin: 0;
    overflow: hidden;
}

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

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px;
}

h1 {
    font-family: 'Matemasie', cursive;
    font-size: 8em;
    color: white;
    margin: 0 0 var(--spacing-lg) 0;
    font-weight: 400;
    animation: fadeInUp 1s ease-in-out;
    max-width: 90%;
    text-align: center;
    letter-spacing: 0.05em;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 400;
    margin: 0 0 var(--spacing-xl) 0;
    max-width: 600px;
    text-align: center;
    animation: fadeInUp 1s ease-in-out 0.1s both;
}

.portfolio-btn {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    color: white;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow), inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: fadeInUp 1s ease-in-out 0.3s both;
    outline: none;
    min-width: 140px;
    text-align: center;
}

.portfolio-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.portfolio-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--glow-color), 0 0 60px rgba(0, 255, 255, 0.294);
}

/* Navigation */
.nav-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 40px;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 0 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    animation: fadeInUp 1s ease-in-out 0.6s both;
    position: relative;
    outline: none;
}

.nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.25), 0 0 60px rgba(0, 255, 255, 0.3);
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 40px;
    left: 50px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow), inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: 10;
    outline: none;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3), 0 0 60px rgba(0, 255, 255, 0.2);
}

.hamburger-menu:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Menu Overlay - Slides in from left like a drawer */
.menu-overlay {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    z-index: 3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.open {
    left: 0;
}

/* Menu Content */
.menu-content {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg) var(--spacing-xxl) calc(var(--spacing-lg) + 30px);
    width: 100%;
    max-width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    -webkit-mask: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0) 100%);
    mask: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0) 100%);
}

.menu-content::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Work Section */
.work-section {
    margin: 0;
}

/* Skills Section */
.skills-section {
    margin-bottom: var(--spacing-xxl);
    padding-top: calc(var(--spacing-xxl) + var(--spacing-lg));
}

.section-title {
    margin: 0 0 var(--spacing-lg) 0;
    color: white;
    font-size: 1.3em;
    font-weight: 600;
    text-align: left;
    padding-left: var(--spacing-md);
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-lg);
}

.skill-name {
    color: white;
    font-size: 1em;
    font-weight: 500;
    flex: 1;
}

.skill-dots {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.skill-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.skill-dot.filled {
    background: var(--glow-color);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Tools Section */
.tools-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.tools-title {
    margin: 0 0 var(--spacing-md) 0;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.tools-list {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.tool-tag {
    padding: 8px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--border-radius) / 2);
    color: white;
    font-size: 0.9em;
    font-weight: 500;
}

.work-title {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.3em;
    font-weight: 600;
    text-align: left;
    padding-left: var(--spacing-md);
}

/* Menu Navigation */
.menu-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-link {
    display: block;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    outline: none;
}

.menu-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Menu Section - Removed collapsible functionality */

/* Project Preview Layout - Now vertical (image on top) */
.project-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
}

.menu-image {
    width: 100%;
    max-width: 180px;
    height: 120px;
    border-radius: calc(var(--border-radius) - 1px);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-info {
    text-align: center;
    width: 100%;
}

.project-info h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: white;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.project-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-weight: 400;
}

/* Hidden navbar links */
.nav-link.hidden {
    display: none;
}

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

.menu-link:active {
    transform: scale(0.98);
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .portfolio-btn:hover,
    .nav-link:hover,
    .hamburger-menu:hover,
    .menu-link:hover {
        transform: none;
        background: var(--glass-bg);
    }

    .portfolio-btn:active,
    .nav-link:active,
    .hamburger-menu:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .menu-link:hover {
        background: var(--glass-bg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    html::before {
        border: 15px solid white;
        box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        padding: 60px 40px;
    }

    h1 {
        font-size: 4.5em;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 1.1em;
        margin-bottom: var(--spacing-xl);
    }

    .portfolio-btn {
        padding: 14px 24px;
        font-size: 1em;
        min-width: 160px;
    }

    .hamburger-menu {
        top: 25px;
        left: 30px;
        padding: 10px;
        transform: scale(0.85);
    }

    .hamburger-line {
        width: 16px;
    }
}

@media (max-width: 480px) {
    html::before {
        border: 10px solid white;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.2);
    }

    .main-content {
        padding: 40px 20px;
    }

    .nav-bar {
        gap: 8px;
        padding: 20px;
    }

    .hamburger-menu {
        top: 20px;
        left: 30px;
        padding: 8px;
        transform: scale(0.75);
    }

    h1 {
        font-size: 3.8em;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 1em;
        margin-bottom: var(--spacing-lg);
        padding: 0 8px;
    }

    .portfolio-btn {
        padding: 12px 20px;
        font-size: 0.95em;
        min-width: 140px;
    }

    .nav-link {
        font-size: 0.8em;
        padding: 6px 8px;
    }
}
