:root {
    --bg: #0a192f;
    --bg-dark: #020c1b; 
    --card-bg: #112240;
    --neon: #64ffda;
    --purple: #8b5cf6;
    --text-bright: #e6f1ff;
    --text-dim: #8892b0;
    --terminal-bg:  #0f2342;

}

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

body {
    background-color: var(--bg);
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

span {
    color: var(--neon);
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    position: fixed;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

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

.nav-links a.active {
    color: var(--neon);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--purple);
    border-radius: 2px;
}

.nav-socials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-socials a {
    color: var(--text-bright);
    font-size: 22px;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

.nav-socials a:hover {
    color: var(--neon);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-bright);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header .underline {
    width: 60px;
    height: 4px;
    background-color: var(--purple);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh; 
    padding: 120px 10% 60px; 
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 30% 30%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

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

.neon-text {
    color: var(--neon);
    font-family: monospace;
    font-size: 16px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(40px, 8vw, 70px);
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(24px, 4vw, 40px);
    color: var(--text-dim);
    margin-bottom: 20px;
}

.bio {
    max-width: 550px;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-btn, .outline-btn {
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    font-family: monospace;
}

.main-btn {
    border: 1px solid var(--neon);
    color: var(--neon);
    background: transparent;
    cursor: pointer;
}

.main-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.outline-btn {
    border: 1px solid var(--text-dim);
    color: var(--text-bright);
}

.outline-btn:hover {
    border-color: var(--neon);
    color: var(--neon);
}

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

.image-wrapper {
    width: clamp(250px, 60vw, 350px); 
    height: clamp(250px, 60vw, 350px);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--neon);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    transition: 0.3s;
}

.image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    border-color: var(--purple);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Terminal Container */
.section-terminal{
    padding: 80px 0;
    background-color: var(--terminal-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    background: #0d1117;
    border: 1px solid #c678dd; 
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(198, 120, 221, 0.15); 
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow: hidden;
}

.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(198, 120, 221, 0.2);
}

.buttons {
    display: flex;
    gap: 8px;
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #8892b0;
    font-size: 0.8rem;
    margin-right: 40px; 
}

.terminal-body {
    padding: 20px;
    height: 300px; 
    overflow-y: auto; 
    color: #ccd6f6;
    font-size: 0.95rem;
    cursor: text; 
}

.prompt {
    color: #c678dd; 
    margin-right: 10px;
}

.response {
    color: #98c379; 
    margin: 5px 0 15px 20px;
}

.highlight {
    color: #61afef; 
    font-weight: bold;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #ccd6f6;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    flex-grow: 1;
    caret-color: #c678dd; 
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #0d1117;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(198, 120, 221, 0.3);
    border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 120, 221, 0.6);
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background-color: var(--bg-dark); 
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.slide-track {
    display: flex;
    width: max-content;
    gap: 20px;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    background: #233554;
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
}

.skill-card i {
    font-size: 24px;
}

.skill-card span {
    color: var(--text-bright);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.row-1 { animation: scrollLeft 35s linear infinite; }
.row-2 { animation: scrollRight 40s linear infinite; }

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Projects Section */
.projects {
    padding: 100px 10%;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top center; 
    transition: 0.3s;
}

.side-by-side-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    opacity: 0; 
    transform: translateY(30px);
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple);
    box-shadow: 0 10px 30px -15px rgba(139, 92, 246, 0.2);
}

.project-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #1d2d50;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}

.project-card:hover .project-img img {
    opacity: 1;
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 18px;
    font-weight: bold;
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 24px;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tags span {
    font-size: 12px;
    color: var(--neon);
    background: rgba(100, 255, 218, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}


.links {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 20px; 
    flex-wrap: wrap; 
}


.github-link {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    display: inline-flex; 
    align-items: center;
    gap: 8px;
}

.github-link:hover {
    color: var(--purple);
}


.demo-link {
    color: var(--neon);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    display: inline-flex; 
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    background: rgba(100, 255, 218, 0.03);
}

.demo-link:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--neon);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.demo-link span {
    font-size: 10px;
}

/* Education Section */
.education {
    padding: 100px 10%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid #233554;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.timeline-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--purple);
    transform: translateX(10px);
    box-shadow: 0 10px 30px -15px rgba(139, 92, 246, 0.2);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.timeline-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--neon);
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.placeholder-logo {
    color: var(--bg);
    font-weight: bold;
    font-size: 14px;
}

.timeline-text h3 {
    color: var(--text-bright);
    font-size: 18px;
    margin-bottom: 4px;
}

.timeline-text h4 {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.timeline-date {
    color: var(--neon);
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}

.timeline-content p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-grade {
    display: inline-block;
    color: var(--text-bright);
    font-size: 13px;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.timeline-grade span {
    color: #fff;
    font-size: 15px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid #233554;
    border-radius: 5px;
    color: var(--text-bright);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--purple);
}

/*  Footer */
.main-footer {
    background: var(--bg-dark); 
    padding: 60px 10% 20px;
    border-top: 1px solid #233554;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--neon);
}

.main-footer p {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-bright);
    font-size: 20px;
    transition: 0.3s;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid var(--card-bg);
    padding-top: 20px;
    font-size: 13px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 0;
        gap: 30px; 
    }
    .hero-text-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-btns {
        justify-content: center;
    }
    .side-by-side-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Menu & Adjustments --- */


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; 
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-bright);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    
    .hamburger {
        display: flex;
    }

    
    .nav-socials {
        display: none; 
    }

    
    .nav-links {
        position: fixed;
        left: -100%; 
        top: 80px; 
        flex-direction: column;
        background-color: rgba(2, 12, 27, 0.98); 
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 80px); 
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

    .nav-links li {
        margin: 30px 0;
    }

    .nav-links a {
        font-size: 20px; 
    }

    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 80px;
    }
    .hero-text-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-btns {
        justify-content: center;
    }
    .side-by-side-grid {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        height: auto; 
        aspect-ratio: 16 / 9; 
    }
}