@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

:root {
    --cyber-green: #00ff41;
    --dark-blue: #0a0e27;
    --deep-blue: #050814;
    --neon-blue: #00d9ff;
    --glitch-red: #ff0051;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--deep-blue);
    color: var(--cyber-green);
    overflow-x: hidden;
    cursor: crosshair;
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* CRT flicker */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    pointer-events: none;
    animation: flicker 0.15s infinite;
    z-index: 9998;
}

@keyframes flicker {
    0% { opacity: 0.05; }
    50% { opacity: 0.1; }
    100% { opacity: 0.05; }
}

.landing-container {
    max-width: 85%;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 2px solid var(--cyber-green);
    box-shadow: 0 0 10px var(--cyber-green);
    position: sticky;
    top: 20px;
    background: var(--deep-blue);
    z-index: 1000;
    margin-bottom: 1.25rem;
    margin-left: -3rem;
    margin-right: -3rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--cyber-green));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px var(--cyber-green)); }
    50% { filter: drop-shadow(0 0 20px var(--cyber-green)); }
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    position:absolute;
    left: 25%;
    text-decoration: none !important;
    color: var(--cyber-green) !important;
    cursor: pointer;
}

.logo-text:visited,
.logo-text:hover,
.logo-text:active {
    color: var(--cyber-green);
    text-decoration: none;
}

.glitch {
    position: relative;
    text-shadow: 
        2px 0 var(--glitch-red),
        -2px 0 var(--neon-blue);
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 
            2px 0 var(--glitch-red),
            -2px 0 var(--neon-blue);
    }
    25% {
        text-shadow: 
            -2px 0 var(--glitch-red),
            2px 0 var(--neon-blue);
    }
    50% {
        text-shadow: 
            2px 2px var(--glitch-red),
            -2px -2px var(--neon-blue);
    }
    75% {
        text-shadow: 
            -2px 2px var(--glitch-red),
            2px -2px var(--neon-blue);
    }
    100% {
        text-shadow: 
            2px 0 var(--glitch-red),
            -2px 0 var(--neon-blue);
    }
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--cyber-green);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 15px;
    border: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
}

nav a::before {
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity 0.3s, left 0.3s;
}

nav a:hover {
    border: 1px solid var(--cyber-green);
    box-shadow: 0 0 10px var(--glitch-red);
}

nav a:hover::before {
    opacity: 1;
    left: 0;
}

/* Hero Section */
.hero {
    margin: 80px 0;
    position: relative;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10%;
}

.hero-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6vw;
    margin-bottom: 3rem;
}

.hero-text {
    flex: 0 0 auto;
    width: 35vw;
}

.personal-image {
    flex-shrink: 0;
    width: 30vw;
    height: 30vw;
}

.personal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.hero h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.terminal-text {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 24px;
    background: var(--cyber-green);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-top: 0;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--cyber-green);
    background: transparent;
    color: var(--cyber-green);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyber-green);
    transition: left 0.3s;
    z-index: -1;
}

.btn:hover {
    color: var(--deep-blue);
    box-shadow: 0 0 20px var(--cyber-green);
}

.btn:hover::before {
    left: 0;
}

.btn-secondary {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-secondary::before {
    background: var(--neon-blue);
}

/* Make the grid effect on the background*/
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--cyber-green) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-green) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: -1;
}

/* Projects Section */
.projects {
    margin: 100px 0;
}

.section-title {
    font-size: 48px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyber-green);
    box-shadow: 0 0 10px var(--cyber-green);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    border: 2px solid var(--neon-blue);
    padding: 30px;
    background: rgba(0, 255, 65, 0.02);
    position: relative;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-green);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--cyber-green);
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.project-title {
    font-size: 24px;
    color: var(--neon-blue);
}

.project-status {
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid var(--cyber-green);
    background: rgba(0, 255, 65, 0.1);
}

.project-desc {
    margin: 20px 0;
    opacity: 0.8;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid var(--cyber-green);
    opacity: 0.6;
}

/* Skills Section */
.skills {
    margin: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.skill-category {
    border: 1px solid var(--cyber-green);
    padding: 25px;
    background: rgba(0, 217, 255, 0.02);
}

.skill-category h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.skill-list li::before {
    content: '▸ ';
    color: var(--cyber-green);
}

/* Contact Section */
.contact {
    margin: 100px 0;
    padding: 60px;
    border: 2px solid var(--cyber-green);
    background: rgba(0, 255, 65, 0.02);
    text-align: center;
}

.contact h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 18px;
    color: var(--neon-blue);
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s;
}

.contact-item:hover {
    background: var(--neon-blue);
    color: var(--deep-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--cyber-green);
    opacity: 0.6;
    margin-top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .contact-info {
        flex-direction: column;
    }
}

/* Matrix rain effect */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    opacity: 0.15;
}

/* Biography box*/
.bio-box{
    border: 2px solid var(--neon-blue);
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    margin-top: 30px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.bio-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.bio-box:hover::before {
    opacity: 0.03;
}

.bio-box p {
    line-height: 1.8;
    color: var(--cyber-green);
    opacity: 0.9;
}

section {
    scroll-margin-top: 150px;  /* Header height + breathing room */
}