/* style.css */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-800-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Courier Prime';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/courier-prime-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Courier Prime';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/courier-prime-latin-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Courier Prime';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/courier-prime-latin-700-normal.woff2') format('woff2');
}

:root {
    /* Color Palette - Dark masculine purple/pink */
    --primary-purple: #6b21a8;
    /* Deep Purple */
    --accent-pink: #d946ef;
    /* Punchy Pink */
    --grad-primary: linear-gradient(135deg, #4c1d95 0%, #a21caf 100%);

    /* Light Theme */
    --bg-light: #f8fafc;
    --text-light: #0f172a;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(0, 0, 0, 0.1);

    /* Dark Theme */
    --bg-dark: #09090b;
    --text-dark: #f8fafc;
    --glass-bg-dark: rgba(15, 23, 42, 0.6);
    --glass-border-dark: rgba(255, 255, 255, 0.1);

    /* Current Theme Context */
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --glass-bg: var(--glass-bg-dark);
    --glass-border: var(--glass-border-dark);

    /* Typo */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Courier Prime', Courier, monospace;
}

[data-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --glass-bg: var(--glass-bg-light);
    --glass-border: var(--glass-border-light);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(217, 70, 239, 0.5));
}

[data-theme="light"] .brand-logo {
    filter: invert(1);
}

/* Theme Toggle */
#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background 0.3s;
}

#theme-toggle:hover {
    background: var(--glass-border);
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

/* Sections */
section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 70px;
    /* Account for fixed header height */
    padding-left: 0;
    /* Override default section padding */
    padding-right: 0;
    /* Override default section padding */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100vw;
    /* Full viewport width */
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) saturate(1.2);
}

.hero-content {
    text-align: center;
    z-index: 20;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.highlight-1 {
    color: var(--accent-pink);
    position: relative;
    display: inline-block;
    transition: text-shadow 0.3s;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--accent-pink), 0 0 20px var(--primary-purple);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 25px var(--accent-pink), 0 0 40px var(--primary-purple);
        transform: scale(1.1);
    }
}

.highlight-1.animating {
    animation: pulseGlow 0.5s ease-in-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Terminal Section */
.terminal-window {
    width: 100%;
    max-width: 1000px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    border: 1px solid #333;
    overflow: hidden;
}

[data-theme="light"] .terminal-window {
    background-color: #1e1e1e;
}

.terminal-header {
    background-color: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #111;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #ccc;
}

.terminal-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 30px;
}

.terminal-logo {
    flex: 1 1 300px;
    overflow-x: auto;
    font-size: 5px;
    line-height: 1.1;
    font-family: var(--font-mono);
    color: var(--accent-pink);
    text-shadow: 0 0 2px var(--primary-purple);
}

.terminal-stats {
    flex: 1 1 400px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stat-key {
    color: #eab308;
    font-weight: bold;
    display: inline-block;
    width: 140px;
}

.stat-key.user-host {
    color: #fff;
    width: auto;
}

.stat-key.separator {
    color: #fff;
    width: auto;
}

.stat-value {
    color: #e2e8f0;
}

/* Skills Grid */
.skills-container {
    width: 100%;
    max-width: 1000px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-pink);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.skills-grid img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.skills-grid img:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 10px 10px rgba(217, 70, 239, 0.4));
}

/* Custom Skill Icons */
.custom-skill-icon {
    width: 50px;
    height: 50px;
    background-color: #242938;
    /* Dark mode skill bg */
    border-radius: 12.5px;
    /* Skillicons border radius */
    padding: 10px;
    transition: transform 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

[data-theme="light"] .custom-skill-icon {
    background-color: #f5f5f5;
    /* Light mode skill bg */
}

.typo3-icon {
    background-color: #ED6D05 !important;
}

[data-theme="dark"] .grav-icon {
    fill: #ffffff;
    /* Make Grav white on dark theme */
}

.custom-skill-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 10px 10px rgba(217, 70, 239, 0.4));
}

/* Memori Section */
.memori-section {
    padding-top: 50px;
    padding-bottom: 150px;
}

.memori-container {
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
}

.memori-grid {
    display: grid;
    grid-template-columns: minmax(15px, 40px) repeat(52, minmax(0, 1fr));
    gap: 1.5px;
    width: 100%;
}

.memori-year-label {
    font-size: clamp(7px, 1.5vw, 12px);
    color: var(--text-color);
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: center;
    opacity: 0.7;
}

.memori-header-label {
    font-size: clamp(5px, 1vw, 9px);
    color: var(--text-color);
    text-align: center;
    height: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0.5;
    overflow: hidden;
}

.memori-week {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    position: relative;
    background-color: var(--glass-bg);
}

.memori-week:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Navigation & Burger Menu */
.burger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    padding: 0;
}

.burger-button .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Burger Toggle Animation Classes */
.burger-button.active .bar:nth-child(1) {
    transform: rotate(45deg);
}

.burger-button.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-button.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1500;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Footer Section */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.protected-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lock-icon {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .terminal-content {
        flex-direction: column;
    }

    .stat-key {
        width: 100px;
    }
}