/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    /* Colors */
    --color-bg: #0a0a0b;
    --color-bg-secondary: #131316;
    --color-bg-tertiary: #1a1a1f;
    --color-border: #2a2a32;
    --color-text: #e4e4e7;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-primary: #FF5700;
    --color-accent: #06b6d4;
    --color-success: #22c55e;
    --color-warning: #f59e0b;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'SF Mono', Consolas, monospace;

    /* Spacing */
    --section-padding: 8rem 2rem;
    --container-max: 1400px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-logo:hover {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

/* Lock System */
.nav-locks {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
}

.find-these {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-right: 0.5rem;
}

.lock {
    font-size: 1.5rem;
    cursor: default;
    transition: all 0.3s ease;
    filter: grayscale(0);
    opacity: 0.6;
}

.lock.unlocked {
    opacity: 1;
    animation: lock-dance 0.5s ease;
}

.lock.dancing {
    animation: lock-dance 0.5s ease infinite;
}

@keyframes lock-dance {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

/* Active indicator dot */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--glow-color, #FF5700);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color, #FF5700), 0 0 20px var(--glow-color, #FF5700);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--glow-color, #FF5700), 0 0 20px var(--glow-color, #FF5700); }
    50% { opacity: 0.7; box-shadow: 0 0 5px var(--glow-color, #FF5700), 0 0 10px var(--glow-color, #FF5700); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-padding);
    position: relative;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-tagline {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
    position: relative;
    cursor: default;
}

.particle-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.hero-particle-container {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.particle-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.particle-word {
    display: inline-block;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    color: var(--color-text-secondary);
    line-height: 1.8;
    white-space: nowrap;
    font-size: 1.6rem;
}

.particle-word.exploded {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out !important;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out !important;
}

/*First few words are the intro - target first line children*/
.particle-line:first-child .particle-word {
    font-size: 2.87rem;
}

.hero-tagline .highlight-ai {
    color: #FF5700;
    position: relative;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-tagline .highlight-sw {
    color: var(--color-text);
    border-bottom: 1px dashed var(--glow-color);
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 10px #FF5700, 0 0 20px rgba(255, 87, 0, 0.5);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 30px #FF5700, 0 0 60px rgba(255, 87, 0, 0.8), 0 0 90px rgba(255, 87, 0, 0.4);
        opacity: 0.85;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Terminal Window - Windows Style */
.hero-visual {
    display: flex;
    justify-content: flex-end; /* Align to right for top-right anchor */
}

.terminal-wrapper {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.code-window {
    background: #0C0C0C;
    border: 1px solid #3C3C3C;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 30px -8px rgba(255, 87, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.code-window.closed {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.code-window.minimized {
    transform: translateY(calc(100% - 48px));
    border-radius: 6px;
    max-width: 200px;
}

.code-window.minimized .code-header {
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.code-window.minimized .window-controls {
    display: none;
}

.code-window.minimized .code-title {
    display: none;
}

.code-window.minimized .terminal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.code-window.minimized .terminal-emoji {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.code-window.minimized .minimized-title {
    display: inline;
    font-size: 0.8rem;
    color: #CCCCCC;
    font-family: var(--font-mono);
    text-shadow: none;
    padding-left: 0.5rem;
}

.terminal-icon {
    display: none;
}

.code-window.maximized {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(1.05);
    width: 60vw;
    max-width: 900px;
    max-height: 80vh;
    z-index: 1000;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8),
                0 0 50px -15px rgba(255, 87, 0, 0.3);
}

.code-window.maximized .code-content {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

/* Custom scrollbar for maximized terminal */
.code-window.maximized .code-content::-webkit-scrollbar {
    width: 8px;
}

.code-window.maximized .code-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.code-window.maximized .code-content::-webkit-scrollbar-thumb {
    background: #3C3C3C;
    border-radius: 4px;
}

.code-window.maximized .code-content::-webkit-scrollbar-thumb:hover {
    background: #4C4C4C;
}

.code-window.closing {
    animation: wobble-close 2.5s ease-out forwards;
    /* Prevent transform from overriding maximized positioning */
    transform-origin: center center !important;
}

@keyframes wobble-close {
    0% { scale: 1; opacity: 1; }
    5% { scale: 1.1 0.85; }
    10% { scale: 0.88 1.08; }
    15% { scale: 1.06 0.92; }
    20% { scale: 0.94 1.06; }
    25% { scale: 1.03 0.96; }
    30% { scale: 0.97 1.03; }
    35% { scale: 1.01 0.98; }
    40% { scale: 0.99 1.01; }
    45% { scale: 1 0.99; }
    50% { opacity: 0.6; }
    60% { opacity: 0.4; }
    70% { opacity: 0.25; }
    80% { opacity: 0.15; }
    90% { opacity: 0.05; }
    100% { scale: 0.95 0.15; opacity: 0; }
}

.code-header {
    background: #1E1E1E;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #3C3C3C;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: transparent;
    transition: all 0.15s ease;
    padding: 0;
}

.window-btn:hover {
    color: rgba(0, 0, 0, 0.6);
}

.btn-close { background: #FF5F57; }
.btn-minimize { background: #FFBD2E; }
.btn-maximize { background: #28CA41; }

.window-btn svg {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.window-btn:hover svg {
    opacity: 1;
}

.window-btn:hover.btn-minimize { color: #995700; }
.window-btn:hover.btn-maximize { color: #006500; }
.window-btn:hover.btn-close { color: #8B0000; }

.code-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #CCCCCC;
    font-family: var(--font-mono);
}

.minimized-title {
    display: none;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.code-window.minimized .code-title { display: none; }
.code-window.minimized .code-content { display: none; }

.code-content {
    padding: 1rem 1.5rem;
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.code-content code {
    color: #CCCCCC;
}

.code-content .keyword { color: #569CD6; }
.code-content .string { color: #CE9178; }
.code-content .function { color: #DCDCAA; }
.code-content .class-name { color: #4EC9B0; }
.code-content .comment { color: #6A9955; }
.code-content .number { color: #B5CEA8; }

/* Code blocks - show/hide based on state */
.code-block-small { display: block; }
.code-block-large { display: none; }

.code-window.maximized .code-block-small { display: none; }
.code-window.maximized .code-block-large { display: block; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--color-text);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    margin: 0.5rem auto 0;
    transition: border-color var(--transition-fast);
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--color-text);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================
   Page Load Animations
   ========================================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Staggered entrance for hero */
.hero-content > * {
    opacity: 0;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-particle-container { animation-delay: 0.1s; }
.hero-tagline { animation-delay: 0.2s; }
.hero-cta { animation-delay: 0.3s; }

.hero-visual {
    opacity: 0;
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Scroll reveal animation state */
.reveal {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.btn-primary {
    background: #FF5700;
    color: white;
    box-shadow: 0 10px 30px -10px rgba(255, 87, 0, 0.4);
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
    background: var(--glow-color);
    box-shadow: 0 15px 40px -10px var(--glow-color);
}

/* Dark text for bright colors (orange, pink, green) */
.btn-primary[data-needs-dark-text="true"] {
    color: #1a1a1a;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--glow-color);
    box-shadow: 0 0 20px -2px var(--glow-color);
    color: var(--color-text);
}

/* ==========================================
   Sections
   ========================================== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    isolation: isolate;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    overflow: visible;
}

.section-title-text {
    color: var(--color-text);
    -webkit-text-fill-color: var(--color-text);
    transition: all 0.3s ease;
}

.section-title[data-glow-active="true"] .section-title-text {
    color: var(--color-bg) !important;
    -webkit-text-fill-color: var(--color-bg) !important;
}

/* Glow drop shadow effect for section headers */
.section-title-glow {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
    font-size: inherit;
    font-weight: inherit;
    color: var(--glow-color);
    filter: drop-shadow(0 0 15px var(--glow-color))
            drop-shadow(0 0 35px var(--glow-color))
            drop-shadow(0 0 55px var(--glow-color));
}

.section-title[data-glow-active="true"] .section-title-glow {
    opacity: 1;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 5rem;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    justify-content: space-between;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    text-align: left;
}

.focus-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1rem;
}

.focus-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--color-text-secondary);
    text-align: left;
}

.focus-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2em;
}

.focus-list .highlight {
    color: var(--color-text);
    font-weight: 500;
}

.about-philosophy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.philosophy-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.philosophy-card:hover {
    border-color: var(--glow-color);
    box-shadow: 0 0 25px -8px var(--glow-color);
    transform: translateX(4px);
}

/* Philosophy card sequence states */
.philosophy-card.sequence-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px -8px var(--color-primary);
}

.philosophy-card.sequence-complete {
    animation: philosophy-dance 0.5s ease infinite;
}

@keyframes philosophy-dance {
    0%, 100% { transform: scale(1) rotate(0deg); border-color: #FF5700; }
    25% { transform: scale(1.02) rotate(-2deg); border-color: #00FF00; }
    50% { transform: scale(1.05) rotate(0deg); border-color: #8500FF; }
    75% { transform: scale(1.02) rotate(2deg); border-color: #FF0085; }
}

.philosophy-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.philosophy-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.philosophy-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.project-card:hover {
    border-color: var(--glow-color);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3),
                0 0 30px -10px var(--glow-color);
    transform: perspective(1000px) translateY(-8px);
}

.project-card.coming-soon {
    opacity: 0.6;
    border-style: dashed;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-links a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.project-links a:hover {
    color: var(--color-text);
}

.project-icon {
	font-size: 2rem
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-tertiary);
    border-radius: 100px;
    color: var(--color-text-secondary);
}

.project-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.project-stat {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background: var(--color-bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.contact-link svg {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.contact-link svg[stroke] {
    stroke: var(--color-text-muted);
}

.contact-link:hover {
    color: var(--color-text);
}

.contact-link:hover svg {
    color: var(--glow-color);
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.contact-link[data-glow-active="true"] {
    color: var(--color-bg);
    -webkit-text-fill-color: var(--color-bg);
}

.contact-link[data-glow-active="true"] svg {
    color: var(--color-bg);
    -webkit-text-fill-color: var(--color-bg);
    filter: none;
}

/* For stroke icons like envelope */
.contact-link:hover svg[stroke] {
    stroke: var(--color-text);
}

.contact-link[data-glow-active="true"]:hover svg[stroke] {
    stroke: var(--color-bg);
}

.contact-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--glow-color) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.contact-link[data-glow-active="true"]::after {
    opacity: 0.5;
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.contact-form:hover {
    border-color: var(--glow-color);
    box-shadow: 0 0 30px -10px var(--glow-color);
}

.contact-form p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 15px -5px var(--glow-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-quote {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* ==========================================
   Glow Effects (diffuse, mouse position based)
   ========================================== */
.glow-hover {
    position: relative;
    overflow: hidden;
}

.glow-hover::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--glow-color) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    filter: blur(20px);
}

.glow-hover:hover::before {
    opacity: 0.4;
}

/* For elements that need a border glow */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--glow-color) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(15px);
}

.glow-border:hover::after {
    opacity: 0.5;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .code-window.maximized {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(1.05);
        width: 90vw;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 6rem 1.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-locks {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--color-border);
        justify-content: center;
        order: -1;
    }

    .find-these {
        font-size: 0.8rem;
    }

    .lock {
        font-size: 1.3rem;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .code-window.maximized {
        width: 90vw;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(1);
    }
}
