:root {
    --neon-green: #39FF14;
    --electric-blue: #00FFFF;
    --neon-red: #FF4500;
    --bg-dark: #0a0a0a;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-green);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-green);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--neon-green);
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 5px var(--neon-green);
}

/* Matrix Background */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
    width: 100%;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.8) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-text {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: var(--electric-blue);
    text-shadow: 0 0 20px var(--electric-blue);
    transition: text-shadow 0.3s ease;
}

.glitch-text span {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.1s ease;
}

.glitch-wrapper:hover .glitch-text {
    animation: glitch 725ms infinite;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
}

.glitch-wrapper:hover .glitch-text span {
    opacity: 0.75;
}

.glitch-wrapper:hover .glitch-text span:first-child {
    animation: glitch 500ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-0.04em, -0.03em);
}

.glitch-wrapper:hover .glitch-text span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
}

.hero-content h1 {
    margin-bottom: 1rem;
}

#typed {
    font-size: 1.5rem;
    color: var(--neon-green);
}

.age-counter {
    margin: 2rem 0;
    font-size: 1.2rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.slogan {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--electric-blue);
    text-shadow: 0 0 10px var(--electric-blue);
    position: relative;
}

.glitch-text-blue {
    animation: glitch 2s infinite;
    position: relative;
}

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

.glitch-text-blue::before {
    left: 2px;
    text-shadow: -2px 0 var(--electric-blue);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text-blue::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-green);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.glow-button {
    padding: 0.8rem 2rem;
    border: 2px solid var(--neon-green);
    background: transparent;
    color: var(--neon-green);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glow-button:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green);
    transform: scale(1.05);
}

/* Global Section Styles */
.section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--electric-blue);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px var(--electric-blue);
    width: 100%;
}

/* About Section */
.about-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.profile-image {
    position: relative;
}

.image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    display: none;
}

.about-text {
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.highlight-text {
    color: var(--electric-blue);
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--electric-blue);
    font-style: italic;
}

.achievements {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--electric-blue);
}

.achievements h3 {
    color: var(--electric-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 5px var(--electric-blue);
}

.achievements ul {
    list-style: none;
    padding-left: 0;
}

.achievements ul li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.achievements ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-green);
}

.qualities {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.quality {
    padding: 0.5rem 1rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    color: var(--neon-green);
}

/* Education Section Additions */
.education-details {
    margin-top: 1rem;
}

.education-details p {
    color: var(--electric-blue);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.education-details ul {
    list-style: none;
    padding-left: 1rem;
}

.education-details ul li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.education-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--neon-green);
}

/* Skills Section */
.skills-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skills-category h3 {
    color: var(--electric-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--electric-blue);
}

.skills-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 5px;
    color: var(--electric-blue);
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--electric-blue);
}

/* Projects Section */
.projects-grid {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--electric-blue);
}

.project-description {
    margin: 1rem 0;
    color: var(--text-color);
}

.project-description ul {
    list-style-type: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.project-description ul li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.project-description ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-green);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--electric-blue);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--electric-blue);
}

.terminal {
    background: #000;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.dot:nth-child(2) {
    background: #ffbd2e;
}

.dot:nth-child(3) {
    background: #27c93f;
}

.terminal-body {
    color: var(--neon-green);
    font-family: monospace;
}

.terminal-body p {
    margin: 0.5rem 0;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body .success {
    color: var(--neon-green);
}

.terminal-body .severity.high {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}

.cursor {
    animation: blink 1s infinite;
}

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

.project-card:hover .terminal {
    border-color: var(--electric-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Timeline Sections */
.timeline {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.timeline-item {
    margin: 2rem 0;
    position: relative;
}

.timeline-content {
    background: rgba(57, 255, 20, 0.1);
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--neon-green);
    margin-left: 50%;
    transform: translateX(2rem);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    transform: translateX(-2rem);
}

/* Contact Section */
.contact-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--neon-green);
    font-size: 1.5rem;
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--neon-green);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--neon-green);
    transform: translateY(-5px);
    text-shadow: 0 0 10px var(--neon-green);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--neon-green);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 0.5rem;
    color: var(--neon-green);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.95);
    position: relative;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.scroll-top:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        backdrop-filter: blur(10px);
        padding: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 60px;
    }

    .hero-content {
        padding: 2rem 1rem;
        position: relative;
        z-index: 3;
    }

    #matrix-canvas {
        height: 100vh;
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        margin: 1rem auto;
    }

    #typed {
        width: 100%;
        text-align: center;
        display: block;
    }

    .age-counter {
        width: 100%;
        text-align: center;
        margin: 1.5rem auto;
    }

    .cta-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-buttons .glow-button {
        width: 80%;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .about-text {
        padding: 0;
    }

    .qualities {
        justify-content: center;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-category {
        text-align: center;
    }

    .skills-scroll {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .project-card {
        max-width: 100%;
    }

    .project-description {
        text-align: left;
    }

    .project-tech {
        justify-content: center;
    }

    .timeline {
        padding: 0 10px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        text-align: left;
    }

    .contact-content {
        padding: 0;
    }

    .contact-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }

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

    .hero-content {
        padding: 1rem;
    }

    .glitch-text {
        font-size: 2rem;
    }

    .slogan {
        font-size: 1rem;
    }

    .cta-buttons .glow-button {
        width: 90%;
    }

    .about-content {
        gap: 1rem;
    }

    .image-container {
        width: 180px;
        height: 180px;
    }

    .qualities {
        flex-wrap: wrap;
    }

    .quality {
        width: calc(50% - 1rem);
        margin: 0.5rem;
        font-size: 0.9rem;
    }

    .skills-scroll {
        flex-wrap: wrap;
    }

    .skill {
        width: calc(50% - 1rem);
        margin: 0.5rem;
        font-size: 0.9rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-tech {
        flex-wrap: wrap;
    }

    .tech-tag {
        font-size: 0.8rem;
        margin: 0.25rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .education-details ul {
        padding-left: 0.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
