/* style.css */
:root {
    --bg-dark: #050505;
    --bg-panel: rgba(15, 20, 25, 0.7);
    --neon-green: #00ff41;
    --neon-blue: #00f0ff;
    --neon-red: #ff003c;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
    --glass-border: rgba(0, 255, 65, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Canvas */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
}

/* Typography & Titles */
h1,
h2,
h3,
.sys-msg,
.section-badge,
.logo {
    font-family: var(--font-mono);
}

.glitch-text {
    position: relative;
    color: var(--text-main);
    font-weight: bold;
}

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

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

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

@keyframes glitch-anim {
    0% {
        clip: rect(21px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(69px, 9999px, 66px, 0);
    }

    40% {
        clip: rect(100px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(4px, 9999px, 86px, 0);
    }

    80% {
        clip: rect(31px, 9999px, 14px, 0);
    }

    100% {
        clip: rect(85px, 9999px, 49px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(12px, 9999px, 2px, 0);
    }

    20% {
        clip: rect(82px, 9999px, 60px, 0);
    }

    40% {
        clip: rect(98px, 9999px, 88px, 0);
    }

    60% {
        clip: rect(34px, 9999px, 10px, 0);
    }

    80% {
        clip: rect(72px, 9999px, 44px, 0);
    }

    100% {
        clip: rect(98px, 9999px, 51px, 0);
    }
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.glass-panel:hover::before {
    transform: translateX(100%);
}

.glass-panel:hover {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
    border-color: var(--neon-green);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.logo span {
    font-size: 1.5rem;
    color: var(--neon-green);
    letter-spacing: 2px;
}

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

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

/* Base Sections */
section {
    padding: 100px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}

section.wide {
    max-width: 1400px;
}

.section-badge {
    color: var(--neon-green);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    border-bottom: 1px solid var(--neon-green);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.blink {
    animation: blinker 1s linear infinite;
    color: var(--neon-green);
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Buttons */
.cyber-btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-mono);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.primary {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) inset;
}

.primary:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px var(--neon-green), 0 0 10px rgba(0, 255, 65, 0.5) inset;
}

.secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.sys-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.main-title {
    font-size: 4rem;
    line-height: 1.1;
    margin: 1rem 0;
    color: var(--neon-green);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    height: 30px;
}

.desc {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Radar Animation */
.radar-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.radar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--neon-green);
    background: repeating-radial-gradient(transparent,
            transparent 30px,
            rgba(0, 255, 65, 0.2) 31px,
            transparent 32px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    position: absolute;
}

.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 65, 0.5);
}

.radar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(0, 255, 65, 0.5);
}

.sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: conic-gradient(from 0deg, transparent 70%, rgba(0, 255, 65, 0.5) 100%);
    transform-origin: 0 0;
    animation: sweep 4s linear infinite;
    border-radius: 0 0 100% 0;
}

@keyframes sweep {
    to {
        transform: rotate(360deg);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    position: relative;
}

.avatar-placeholder {
    font-size: 5rem;
    color: var(--neon-green);
    filter: drop-shadow(0 0 10px var(--neon-green));
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 65, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
    }
}

.profile-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--neon-green);
    font-family: var(--font-mono);
}

.bio-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.cyber-list {
    list-style: none;
    margin-top: 1.5rem;
}

.cyber-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.cyber-list i {
    color: var(--neon-green);
}

/* Expertise Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    position: relative;
}

/* Experience Section (Timeline) */
.experience {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    margin-left: 60px;
    padding: 2rem;
    padding-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    left: -48px;
    top: 30px;
    box-shadow: 0 0 10px var(--neon-green);
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.project-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-red);
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-title:hover {
    color: var(--neon-green);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 2rem;
}

.tech-stack li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
    background: rgba(0, 255, 65, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

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

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-terminal {
    padding: 0;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.btn-close,
.btn-min,
.btn-max {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.btn-close {
    background: #ff5f56;
}

.btn-min {
    background: #ffbd2e;
}

.btn-max {
    background: #27c93f;
}

.terminal-title {
    margin-left: 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
}

.terminal-body {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-green);
}

.cyber-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-mono);
    transition: var(--transition);
    outline: none;
}

.cyber-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.w-full {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green);
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Dual Column Grid for Education */
.dual-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.column-title {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .dual-column-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .radar-container {
        width: 250px;
        height: 250px;
    }

    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .main-title {
        font-size: 2.2rem;
    }
}