/* ===== CSS VARIABLES ===== */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #12121a;
    --accent-cyan: #00f0ff;
    --accent-purple: #a855f7;
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-cyan: rgba(0, 240, 255, 0.5);
    --glow-purple: rgba(168, 85, 247, 0.5);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-glow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    box-shadow: 0 0 20px var(--glow-cyan),
                inset 0 0 20px var(--glow-cyan);
    mix-blend-mode: screen;
}

/* ===== NAVIGATION ===== */
.nav-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link:hover::before {
    width: 100%;
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    animation: glitch-anim 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-purple);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%, 90%, 100% { clip: rect(0, 9999px, 0, 0); }
    95% { clip: rect(0, 9999px, 9999px, 0); }
}

@keyframes glitch-anim-1 {
    0%, 100% { clip: rect(65px, 9999px, 119px, 0); }
    20% { clip: rect(40px, 9999px, 71px, 0); }
    40% { clip: rect(79px, 9999px, 19px, 0); }
    60% { clip: rect(98px, 9999px, 83px, 0); }
    80% { clip: rect(50px, 9999px, 55px, 0); }
}

@keyframes glitch-anim-2 {
    0%, 100% { clip: rect(65px, 9999px, 119px, 0); }
    20% { clip: rect(79px, 9999px, 19px, 0); }
    40% { clip: rect(98px, 9999px, 83px, 0); }
    60% { clip: rect(40px, 9999px, 71px, 0); }
    80% { clip: rect(50px, 9999px, 55px, 0); }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 
        0 0 10px var(--glow-cyan),
        100px 150px 0 var(--accent-purple),
        200px 80px 0 var(--accent-cyan),
        300px 200px 0 var(--accent-green),
        400px 50px 0 var(--accent-purple),
        500px 180px 0 var(--accent-cyan),
        600px 120px 0 var(--accent-green),
        700px 90px 0 var(--accent-purple),
        800px 160px 0 var(--accent-cyan),
        900px 70px 0 var(--accent-green);
    animation: particles-float 20s linear infinite;
}

.particles::after {
    animation-delay: 10s;
    opacity: 0.5;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.tag-bracket {
    color: var(--accent-purple);
    font-weight: bold;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line:nth-child(2) {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    border: 2px solid var(--accent-cyan);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: var(--accent-cyan);
    color: var(--primary-bg);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.cta-button.secondary:hover {
    background: var(--glass-bg);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--accent-cyan);
    margin: 0.5rem auto;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* ===== GLASS PANEL ===== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 32px var(--glow-cyan);
    transform: translateY(-5px);
}

/* ===== SECTION STYLES ===== */
.section-container {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1400px;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 3px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--accent-cyan);
}

.about-text p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-text {
    font-weight: 600;
    letter-spacing: 1px;
}

.terminal-window {
    height: 100%;
}

.terminal-header {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 10px 10px 0 0;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.terminal-body {
    padding: 1.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.terminal-prompt {
    color: var(--accent-purple);
    margin-right: 0.5rem;
}

.terminal-success {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

.terminal-cursor {
    color: var(--accent-cyan);
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== EXPERTISE SECTION ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.card-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.card-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.skill-level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    width: var(--skill);
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 10px var(--glow-cyan);
    animation: skill-fill 2s ease-out;
}

@keyframes skill-fill {
    0% { width: 0; }
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.timeline-desc {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

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

.project-card {
    position: relative;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    background: var(--accent-green);
    color: var(--primary-bg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-desc {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--accent-purple);
}

.project-metrics {
    display: flex;
    gap: 2rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.method-icon {
    font-size: 2rem;
}

.method-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.method-value {
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.secure-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.submit-button {
    padding: 1rem 2rem;
    background: var(--accent-cyan);
    color: var(--primary-bg);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--glow-cyan);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px var(--glow-cyan);
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 2rem;
    background: var(--secondary-bg);
    border-top: 1px solid var(--glass-border);
}

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

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

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

.footer-status {
    margin-top: 0.5rem;
}

.status-active {
    color: var(--accent-green);
    font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line:nth-child(2) {
        font-size: 3.5rem;
    }
    
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: default;
    }
    
    .cursor-glow {
        display: none;
    }
    
    /* Restore default cursor for interactive elements on mobile */
    a, button, .glass-panel {
        cursor: pointer;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line:nth-child(2) {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}
