/* Professional Neon Portfolio - Corrected Version */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --neon-pink: #ff0080;
    --neon-cyan: #00f0ff;
    --neon-purple: #b024ff;
    --neon-green: #39ff14;
    --neon-magenta: #ff006e;
    --bg-primary: #0a0a0f;
    --bg-secondary: #050508;
    --bg-tertiary: #15151a;
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --text-muted: #6b6b6b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-pink: 0 0 20px rgba(255, 0, 128, 0.6);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.6);
    --glow-purple: 0 0 20px rgba(176, 36, 255, 0.6);
    --glow-green: 0 0 20px rgba(57, 255, 20, 0.6);
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --bg-primary: #faf8f3;
    --bg-secondary: #f5f1e8;
    --bg-tertiary: #ede9de;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --neon-cyan: #00bcd4;
    --neon-purple: #9c27b0;
    --neon-green: #00e676;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.theme-toggle {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

.theme-toggle i {
    font-size: 28px;
    color: var(--neon-cyan);
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(45deg);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: var(--neon-pink);
    border-right-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 4px solid transparent;
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px var(--shadow-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(250, 248, 243, 0.95);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonPulse 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.nav-links a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: var(--glow-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.headshot-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.headshot-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    overflow: hidden;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    animation: rotate 10s linear infinite;
}

.orbit-light {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    filter: blur(3px);
}

.orbit-light-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-pink);
    box-shadow: 0 0 40px var(--neon-pink), 0 0 80px var(--neon-pink), 0 0 120px var(--neon-pink);
    animation: pulse 2s ease-in-out infinite;
}

.orbit-light-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--neon-cyan);
    box-shadow: 0 0 40px var(--neon-cyan), 0 0 80px var(--neon-cyan), 0 0 120px var(--neon-cyan);
    animation: pulse 2s ease-in-out infinite 0.5s;
}

.orbit-light-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-purple);
    box-shadow: 0 0 40px var(--neon-purple), 0 0 80px var(--neon-purple), 0 0 120px var(--neon-purple);
    animation: pulse 2s ease-in-out infinite 1s;
}

.orbit-light-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--neon-green);
    box-shadow: 0 0 40px var(--neon-green), 0 0 80px var(--neon-green), 0 0 120px var(--neon-green);
    animation: pulse 2s ease-in-out infinite 1.5s;
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 470px;
    height: 470px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box, linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple), var(--neon-green), var(--neon-pink)) border-box;
    animation: neonPulse 3s ease-in-out infinite;
}

.headshot-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg-primary);
    box-shadow: 0 0 60px rgba(255, 0, 128, 0.3), 0 0 100px rgba(0, 240, 255, 0.2), inset 0 0 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: transform 0.3s ease;
}

.headshot-image:hover {
    transform: scale(1.05);
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-text .greeting {
    font-size: 24px;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-text .greeting i {
    animation: wave 2s ease-in-out infinite;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text .name {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.role-container {
    height: 80px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.role-text {
    font-size: 52px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    height: 100%;
}

.role-text span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: textCycle 9s infinite;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webpack-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-text span:nth-child(1) {
    animation-delay: 0s;
}

.role-text span:nth-child(2) {
    animation-delay: 3s;
}

.role-text span:nth-child(3) {
    animation-delay: 6s;
}

.hero-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-magenta));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.6), 0 0 40px rgba(255, 0, 128, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes neonPulse {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textCycle {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    3% {
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(0);
    }

    33% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(0deg);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .headshot-wrapper {
        width: 380px;
        height: 380px;
        margin: 0 auto;
    }

    .orbit-container {
        width: 430px;
        height: 430px;
    }

    .headshot-image {
        width: 380px;
        height: 380px;
    }

    .glow-ring {
        width: 400px;
        height: 400px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .role-text {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .headshot-wrapper {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .orbit-container {
        width: 350px;
        height: 350px;
    }

    .headshot-image {
        width: 300px;
        height: 300px;
    }

    .glow-ring {
        width: 320px;
        height: 320px;
    }

    .orbit-light {
        width: 20px;
        height: 20px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .role-text {
        font-size: 32px;
    }

    .role-container {
        height: 60px;
    }

    .hero-description {
        font-size: 16px;
    }

    .theme-toggle {
        width: 50px;
        height: 50px;
        top: 80px;
        right: 20px;
    }

    .theme-toggle i {
        font-size: 22px;
    }
}