/* CSS Custom Properties - Neon Genesis Evangelion Theme */
:root {
    /* NERV / EVA Colors - Updated Palette */
    --primary-color: #965fd4; /* Purple */
    --secondary-color: #8bd450; /* Light Green */
    --accent-color: #734f9a; /* Darker Purple */
    --success-color: #8bd450;
    --warning-color: #ff9c00;
    --error-color: #ff0000; /* Emergency Red */
    
    --bg-primary: #1d1a2f; /* Dark Purple/Black */
    --bg-secondary: #151322;
    --bg-tertiary: #252238;
    --bg-card: rgba(29, 26, 47, 0.9);
    --bg-glass: rgba(150, 95, 212, 0.05);
    
    --text-primary: #965fd4;
    --text-secondary: #ffffff;
    --text-tertiary: #3f6d4e; /* Dark Green */
    
    --border-color: #965fd4;
    --shadow-light: 0 0 5px rgba(150, 95, 212, 0.3);
    --shadow-medium: 0 0 10px rgba(150, 95, 212, 0.4);
    --shadow-heavy: 0 0 20px rgba(150, 95, 212, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #965fd4 0%, #734f9a 100%);
    --gradient-card: linear-gradient(180deg, rgba(29, 26, 47, 0.9) 0%, rgba(40, 35, 60, 0.95) 100%);
    
    --font-system: 'Nimbus Roman No9 L', 'Nimbus Roman', 'Times New Roman', Times, serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    --border-radius: 0px; /* Sharp corners for NERV aesthetic */
    --border-radius-small: 0px;
    --border-radius-large: 0px;
    
    --transition: all 0.2s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
}

/* Dark Mode Colors (Default for this theme) */
.dark-mode {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --text-primary: #ff9c00;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-system);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    transition: var(--transition);
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 156, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 156, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Hexagon Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-opacity='0.03' fill='%23965fd4'/%3E%3Cpath d='M30 52l25.98 15v30L30 112 4.02 97V67z' fill-opacity='0.03' fill='%23965fd4'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #333;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 15px 24px;
    z-index: 100;
    box-shadow: 0 0 15px rgba(255, 156, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-primary);
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--primary-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Main Container */
.main-container {
    padding-top: 80px;
}

/* Sections */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section::before {
    content: "SYSTEM STATUS: NORMAL";
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--success-color);
    border: 1px solid var(--success-color);
    padding: 2px 5px;
    opacity: 0.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    position: relative;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;
    background: var(--bg-primary);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 0px rgba(255, 0, 0, 0.5);
    transform: scaleY(1.2);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 80px;
}

.hero-content {
    max-width: 900px;
    position: relative;
    width: 100%;
}

/* MAGI Interface Style for Hero */
.mac-window {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    box-shadow: 0 0 20px rgba(255, 156, 0, 0.2);
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    transition: var(--transition);
    position: relative;
    cursor: default;
}

.mac-window::before {
    content: "MAGI SYSTEM - CASPER";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.mac-window:hover {
    transform: none;
    box-shadow: 0 0 30px rgba(255, 156, 0, 0.4);
    border-color: var(--error-color);
}

.mac-window:hover .mac-titlebar {
    background: var(--error-color);
    color: var(--bg-primary);
}

.mac-titlebar {
    background: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.mac-controls {
    display: flex;
    gap: 4px;
}

.mac-control {
    width: 12px;
    height: 12px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--bg-primary);
}

.mac-control.close { background: var(--bg-primary); }
.mac-control.minimize { background: var(--bg-primary); }
.mac-control.maximize { background: var(--bg-primary); }

.mac-title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: -40px;
}

.mac-content {
    padding: 40px;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, #ff9c00 2px, #ff9c00 4px);
    background-size: 100% 100%, 100% 4px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--primary-color);
}

.terminal-prompt {
    font-family: var(--font-mono);
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.terminal-path {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.hero-name {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -2px;
    transform: scaleY(1.3);
    text-shadow: 4px 4px 0px rgba(255, 0, 0, 0.8);
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--primary-color);
    color: var(--bg-primary);
    display: inline-block;
    padding: 5px 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--success-color);
    margin-bottom: 32px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.hero-bio {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    padding: 20px;
    margin-top: 32px;
    position: relative;
}

.hero-bio::before {
    content: "PERSONAL DATA";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-bio p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

/* Terminal cursor animation */
.typing-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--success-color);
    margin-left: 4px;
    animation: blink 0.8s steps(2) infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
}

.bento-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.bento-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.bento-card:hover {
    background: rgba(255, 156, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 156, 0, 0.3);
    border-color: var(--error-color);
}

.bento-card:hover::after,
.bento-card:hover::before {
    border-color: var(--error-color);
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
    position: relative;
}

.bento-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-color);
}

.bento-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.bento-date {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 12px;
    text-transform: uppercase;
    border: 1px solid var(--success-color);
    display: inline-block;
    padding: 2px 8px;
    width: fit-content;
}

/* Skills */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, rgba(150, 95, 212, 0.1) 0%, transparent 100%);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    flex: 1 1 200px; /* Grow, shrink, basis */
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.skill-card:hover {
    background: rgba(150, 95, 212, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(150, 95, 212, 0.3);
    border-color: var(--success-color);
}

.skill-card:hover::before {
    transform: scaleY(1);
    background: var(--success-color);
}

.skill-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-name {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

.skill-card:hover .skill-name {
    color: var(--success-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #000;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    transition: var(--transition);
    height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 156, 0, 0.5);
    border-color: var(--error-color);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--primary-color);
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(100%) contrast(120%);
}

.project-card:hover .project-screenshot {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%);
}

.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
    border: 1px solid currentColor;
    background: #000;
}

.project-status.completed {
    color: var(--success-color);
    border-color: var(--success-color);
}

.project-status.in-progress {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description,
.project-tech {
    display: none;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    flex: 1;
    text-align: center;
    border: 1px solid var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.project-link.primary {
    background: var(--primary-color);
    color: var(--bg-primary);
}

.project-link.primary:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.project-link:not(.primary) {
    background: transparent;
    color: var(--primary-color);
}

.project-link:not(.primary):hover {
    background: rgba(255, 156, 0, 0.2);
    color: var(--primary-color);
}

/* Project Modal - NGE Theme */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 156, 0, 0.3);
}

.project-modal.active .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1001;
}

.project-modal-close:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.project-modal-image-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--primary-color);
}

.project-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    transition: opacity 0.3s ease-in-out;
    filter: grayscale(50%);
}

.project-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 0;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1002;
}

.project-modal-prev {
    left: 0;
}

.project-modal-next {
    right: 0;
}

.project-modal-nav:hover {
    background: var(--primary-color);
    color: #000;
}

.project-modal-image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.project-modal-body {
    padding: 30px;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, #ff9c00 2px, #ff9c00 4px);
    background-size: 100% 100%, 100% 4px;
}

.project-modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-modal-status {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.project-modal-status.completed {
    color: var(--success-color);
    border-color: var(--success-color);
}

.project-modal-status.in-progress {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.project-modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1rem;
    font-family: var(--font-mono);
}

.project-modal-tech {
    margin-bottom: 24px;
}

.project-modal-tech h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-modal-tech-tags .tech-tag {
    background: rgba(255, 156, 0, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-modal-links {
    display: flex;
    gap: 16px;
}

.project-modal-links .project-link {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    padding: 40px;
    position: relative;
}

.contact-container::before {
    content: "COMMUNICATION LINK";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 10px;
    border: 1px solid transparent;
    font-family: var(--font-mono);
}

.contact-link:hover {
    color: var(--primary-color);
    background: rgba(150, 95, 212, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-link svg, 
.contact-link img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    transition: var(--transition);
}

.contact-link svg {
    stroke: var(--primary-color);
}

/* Filter for images to match theme color (Purple #965fd4) */
.contact-link img {
    filter: invert(1) sepia(1) saturate(3000%) hue-rotate(230deg) brightness(0.8);
}

.contact-link:hover svg {
    stroke: var(--error-color);
    filter: drop-shadow(0 0 5px var(--error-color));
}

.contact-link:hover img {
    filter: invert(1) sepia(1) saturate(3000%) hue-rotate(320deg) brightness(1); /* Shift to reddish/orange for hover */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    padding: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(139, 212, 80, 0.3);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    border-radius: 0;
}

.submit-btn:hover {
    background: var(--error-color);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid var(--primary-color);
    color: var(--text-secondary);
    background: #000;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card.large, .bento-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}
