@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --h1-size: clamp(1.5rem, 6vw, 3.5rem);
    --h2-size: clamp(1.5rem, 5vw, 2.5rem);
    --h3-size: clamp(1.1rem, 3vw, 1.5rem);
    --h4-size: clamp(0.95rem, 2.5vw, 1.1rem);
    --body-size: clamp(0.9rem, 2vw, 1rem);
    --intro-size: clamp(1rem, 2.5vw, 1.2rem);
    --nav-size: clamp(0.8rem, 2vw, 1.1rem);
    --tag-size: clamp(0.7rem, 1.5vw, 0.8rem);
    --subtitle-size: clamp(0.9rem, 3vw, 1.8rem);
    
    --h1-spacing: clamp(0.5px, 1vw, 8px);
    --h2-spacing: clamp(2px, 0.8vw, 4px);
    --subtitle-spacing: clamp(1px, 1vw, 6px);
    --nav-spacing: clamp(1px, 0.4vw, 2px);
    
    --section-padding: clamp(20px, 5vw, 40px);
    --item-padding: clamp(15px, 4vw, 25px);
    --header-padding: clamp(30px, 8vw, 60px);
}

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

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #7DE5ED 0%, #A8E6CF 50%, #FFB3E6 100%);
    color: #2C3E50;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: var(--body-size);
}

.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, #FF69B4 50px, #FF69B4 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, #FF69B4 50px, #FF69B4 51px);
    z-index: 0;
}

header {
    position: relative;
    padding: var(--header-padding) 20px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(125, 229, 237, 0.9), rgba(255, 105, 180, 0.7));
    border-bottom: 4px solid #FF69B4;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--h1-size);
    font-weight: 900;
    color: #FF1493;
    text-transform: uppercase;
    letter-spacing: var(--h1-spacing);
    text-shadow: 
        3px 3px 0 #7DE5ED,
        6px 6px 0 rgba(0,0,0,0.1);
    margin-bottom: 10px;
    word-break: break-word;
    hyphens: auto;
}

.name-part {
    display: inline-block;
}

.ai-highlight {
    color: #7DE5ED;
    text-shadow: 
        3px 3px 0 #FF1493,
        6px 6px 0 rgba(0,0,0,0.1);
    display: inline-block;
    position: relative;
}

.pixelate {
    animation: pixelate 0.4s steps(8);
}

@keyframes pixelate {
    0% {
        filter: blur(0px);
        opacity: 1;
    }
    25% {
        filter: blur(2px);
        opacity: 0.8;
    }
    50% {
        filter: blur(4px) contrast(150%);
        opacity: 0.6;
        text-shadow: 
            -2px -2px 0 #FF1493,
            2px 2px 0 #00FFFF,
            0 0 10px #7DE5ED;
    }
    75% {
        filter: blur(2px);
        opacity: 0.8;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--subtitle-size);
    color: #2C3E50;
    letter-spacing: var(--subtitle-spacing);
    border-top: 3px dotted #2C3E50;
    border-bottom: 3px dotted #2C3E50;
    display: inline-block;
    padding: 10px clamp(20px, 5vw, 40px);
    margin-top: 20px;
}

nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
    border-bottom: 3px solid #FF69B4;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    font-family: 'Orbitron', sans-serif;
    background: transparent;
    border: none;
    padding: 20px clamp(15px, 3vw, 30px);
    font-size: var(--nav-size);
    color: #2C3E50;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: var(--nav-spacing);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 700;
}

.nav-btn:hover {
    background: rgba(125, 229, 237, 0.3);
    color: #FF1493;
}

.nav-btn.active {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #7DE5ED;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    z-index: 1;
    min-height: 60vh;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

.section {
    background: rgba(255, 255, 255, 0.85);
    padding: var(--section-padding);
    border-radius: 20px;
    border: 3px solid #FF69B4;
    box-shadow: 
        8px 8px 0 #7DE5ED,
        16px 16px 30px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--h2-size);
    color: #FF1493;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: var(--h2-spacing);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FF69B4, #7DE5ED);
}

.item {
    background: rgba(125, 229, 237, 0.2);
    padding: var(--item-padding);
    margin: 20px 0;
    border-left: 6px solid #FF69B4;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.item:hover {
    background: rgba(255, 105, 180, 0.2);
    border-left-color: #7DE5ED;
    transform: translateX(10px);
}

.item h3 {
    font-family: 'Orbitron', sans-serif;
    color: #2C3E50;
    font-size: var(--h3-size);
    margin-bottom: 10px;
}

.item h4 {
    font-family: 'Orbitron', sans-serif;
    color: #FF1493;
    font-size: var(--h4-size);
    margin-bottom: 8px;
}

.item p {
    color: #34495E;
    line-height: 1.8;
    margin-bottom: 10px;
}

.item em {
    color: #7DE5ED;
    font-weight: bold;
}

.tech-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 4px 14px;
    margin: 5px;
    border-radius: 20px;
    font-size: var(--tag-size);
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.read-more {
    font-family: 'Orbitron', sans-serif;
    color: #FF1493;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more:hover {
    text-decoration: underline;
}

.achievement-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin: 15px 0 20px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 3px solid rgba(125, 229, 237, 0.5);
}

.achievement-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.3);
    border-color: #FF69B4;
}

.home-intro {
    font-size: var(--intro-size);
    line-height: 2;
    color: #2C3E50;
}

.home-intro strong {
    color: #FF1493;
    font-family: 'Orbitron', sans-serif;
}

.cta {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 30px);
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    margin: 20px auto 0;
    display: block;
    text-align: center;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--nav-size);
}

.cta:hover {
    background: linear-gradient(135deg, #FF1493, #C71585);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid #FF69B4;
    opacity: 0.3;
}

.deco-circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
}

.deco-circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    border-color: #7DE5ED;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 105, 180, 0.3);
    border-top: 3px solid #FF69B4;
    margin-top: 60px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    border-radius: 50%;
    border: 3px solid #7DE5ED;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.social-link:hover {
    background: linear-gradient(135deg, #7DE5ED, #00FFFF);
    border-color: #FF1493;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(125, 229, 237, 0.6);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 15px clamp(12px, 2.5vw, 20px);
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 12px clamp(10px, 2vw, 15px);
    }
}