/* 80s Retro Terminal Styles with Natural Mountain Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
    cursor: crosshair;
    position: relative;
}

/* Ensure water simulation canvas is visible and interactive */
canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: auto !important;
}

/* Terminal Container */
.terminal-container {
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 100;
    pointer-events: none;
}

.terminal-container * {
    pointer-events: auto;
}

/* Anime Mountain Background */
.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Distant mountains */
        linear-gradient(135deg, transparent 0%, transparent 40%, rgba(74, 154, 170, 0.3) 50%, rgba(42, 90, 106, 0.4) 60%, transparent 70%, transparent 100%),
        linear-gradient(225deg, transparent 0%, transparent 30%, rgba(58, 122, 138, 0.3) 40%, rgba(26, 58, 74, 0.4) 50%, transparent 60%, transparent 100%),
        /* Closer mountains */
        linear-gradient(135deg, transparent 0%, transparent 50%, rgba(127, 219, 218, 0.2) 60%, rgba(72, 219, 251, 0.3) 70%, transparent 80%, transparent 100%),
        linear-gradient(225deg, transparent 0%, transparent 40%, rgba(168, 230, 207, 0.2) 50%, rgba(127, 219, 218, 0.3) 60%, transparent 70%, transparent 100%),
        /* Sky gradient */
        linear-gradient(180deg, 
            rgba(10, 26, 42, 0.8) 0%, 
            rgba(26, 58, 74, 0.6) 30%, 
            rgba(42, 90, 106, 0.4) 60%, 
            rgba(74, 154, 170, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
    animation: mountainFloat 20s ease-in-out infinite;
}

@keyframes mountainFloat {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1);
        filter: brightness(1) contrast(1);
    }
    25% { 
        transform: translateX(-5px) translateY(-2px) scale(1.01);
        filter: brightness(1.05) contrast(1.02);
    }
    50% { 
        transform: translateX(3px) translateY(1px) scale(0.99);
        filter: brightness(0.98) contrast(0.98);
    }
    75% { 
        transform: translateX(-2px) translateY(-1px) scale(1.005);
        filter: brightness(1.02) contrast(1.01);
    }
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(90deg, #4a9aaa, #3a7a8a, #2a5a6a, #1a3a4a);
    background-size: 400% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #7fdbda;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(127, 219, 218, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #e8f4f8;
    text-shadow: 0 0 5px #7fdbda;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b6b;
}

.control-btn:nth-child(2) {
    background: #feca57;
}

.control-btn:nth-child(3) {
    background: #48dbfb;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Terminal Content */
.terminal-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Boot Sequence */
.boot-sequence {
    margin-bottom: 30px;
}

.boot-line {
    color: #7fdbda;
    margin-bottom: 5px;
    opacity: 0;
    animation: typewriter 0.5s forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.5s; }
.boot-line:nth-child(4) { animation-delay: 2s; }

@keyframes typewriter {
    to {
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    animation: fadeIn 1s forwards 2.5s;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #48dbfb;
    text-shadow: 0 0 10px #7fdbda;
    position: relative;
}

.glitch-text {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #48dbfb;
    text-shadow: 
        2px 2px #7fdbda,
        -2px -2px #4a9aaa,
        0 0 20px #48dbfb;
    position: relative;
    animation: glitch 3s infinite;
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #7fdbda;
    animation: glitchShift 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #4a9aaa;
    animation: glitchShift 0.3s infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, 2px); }
}

@keyframes glitchShift {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
}

.subtitle {
    font-size: 1.1rem;
    color: #a8e6cf;
    margin-top: 10px;
}

/* Navigation Grid */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.nav-item {
    background: rgba(127, 219, 218, 0.1);
    border: 2px solid #7fdbda;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 219, 218, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(127, 219, 218, 0.2);
    border-color: #48dbfb;
    box-shadow: 
        0 0 20px #7fdbda,
        inset 0 0 20px rgba(127, 219, 218, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.nav-item:focus {
    outline: none;
    border-color: #48dbfb;
    box-shadow: 0 0 30px #48dbfb;
}

.nav-icon {
    font-size: 1.2rem;
    color: #48dbfb;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-label {
    font-size: 1rem;
    color: #7fdbda;
    font-weight: bold;
}

/* Content Sections */
.content-sections {
    position: relative;
}

.content-section {
    display: none;
    animation: slideIn 0.5s ease;
}

.content-section.active {
    display: block;
}

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #48dbfb;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-content {
    color: #7fdbda;
    line-height: 1.6;
}

.content-text {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 2px solid #7fdbda;
    transition: all 0.3s ease;
}

.content-text:hover {
    border-left-color: #48dbfb;
    color: #a8e6cf;
}

/* Skills Grid */
.skill-grid {
    display: grid;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    min-width: 120px;
    color: #a8e6cf;
    font-weight: bold;
}

.skill-bar {
    flex: 1;
    height: 20px;
    background: rgba(127, 219, 218, 0.2);
    border: 1px solid #7fdbda;
    position: relative;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #7fdbda, #48dbfb, #a8e6cf);
    background-size: 200% 100%;
    animation: gradientFlow 2s ease-in-out infinite;
    transition: width 1s ease;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Project Grid */
.project-grid {
    display: grid;
    gap: 20px;
}

.project-item {
    background: rgba(127, 219, 218, 0.1);
    border: 1px solid #7fdbda;
    padding: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.project-item:hover {
    background: rgba(127, 219, 218, 0.2);
    border-color: #48dbfb;
    box-shadow: 0 0 15px #7fdbda;
    transform: translateY(-3px);
}

.project-item h3 {
    color: #48dbfb;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
}

.project-item p {
    color: #7fdbda;
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 15px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-label {
    color: #a8e6cf;
    font-weight: bold;
    min-width: 100px;
}

.contact-value {
    color: #7fdbda;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #48dbfb;
    text-shadow: 0 0 10px #48dbfb;
}

/* Terminal Footer */
.terminal-footer {
    background: rgba(127, 219, 218, 0.1);
    border-top: 2px solid #7fdbda;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.status-line {
    display: flex;
    gap: 20px;
}

.status-item {
    color: #7fdbda;
}

.cursor {
    color: #7fdbda;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* Keyboard Navigation Styles */
.nav-item.focused {
    border-color: #48dbfb;
    box-shadow: 0 0 30px #48dbfb;
    background: rgba(72, 219, 251, 0.2);
}

/* Floating Feathers Layer */
.terminal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Feather 1 */
        radial-gradient(ellipse 20px 8px at 15% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 70%),
        /* Feather 2 */
        radial-gradient(ellipse 15px 6px at 85% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 70%),
        /* Feather 3 */
        radial-gradient(ellipse 25px 10px at 25% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 70%),
        /* Feather 4 */
        radial-gradient(ellipse 18px 7px at 75% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 70%),
        /* Feather 5 */
        radial-gradient(ellipse 12px 5px at 50% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: featherFloat 15s ease-in-out infinite;
}

@keyframes featherFloat {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    20% { 
        transform: translateX(20px) translateY(-15px) rotate(5deg);
        opacity: 1;
    }
    40% { 
        transform: translateX(-10px) translateY(-25px) rotate(-3deg);
        opacity: 0.9;
    }
    60% { 
        transform: translateX(15px) translateY(-10px) rotate(2deg);
        opacity: 1;
    }
    80% { 
        transform: translateX(-5px) translateY(-20px) rotate(-1deg);
        opacity: 0.95;
    }
} 