@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --text: #f4f4f4;
    --text-secondary: #b8b8b8;
    --muted: #7a7a7a;
    --accent: #5ab8ff;
    --accent-hover: #4a9fe6;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #020617, #0f172a, #020617);
    background-attachment: fixed;
    margin-left: 260px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

body::before {
    background: rgba(90, 184, 255, 0.25);
    top: -100px;
    left: -100px;
}

body::after {
    background: rgba(90, 184, 255, 0.15);
    bottom: -100px;
    right: -100px;
}

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: calc(100vh - 40px);
    margin: 20px;
    padding: 2rem 0;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    overflow-y: auto;
    transition: left 0.3s ease;
}

.sidebar-menu {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.sidebar-menu a.active {
    background: rgba(90,184,255,0.15);
    color: var(--accent);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

section {
    margin: 50px auto;
    max-width: 1000px;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    min-height: 360px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: 0.3s ease;
}

section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(90,184,255,0.15);
}

#home, #about, #skills, #projects, #research {
    min-height: 500px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

#home h1 {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    background: linear-gradient(90deg, #5ab8ff, #a5d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#home h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.home-content {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-left h6 {
    font-family: 'Inter', sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    min-height: 70px;
    font-size: 1rem;
    opacity: 0.85;
}

.home-left h1 {
    margin-bottom: 0.6rem;
}

.home-left h4 {
    margin-bottom: 0.4rem;
}

.subtitle {
    margin-bottom: 1.2rem;
}

#typewriter {
    font-size: 1.2rem;
    font-weight: 500;
    color: #7cc9ff;
    display: inline-block;
    min-width: 320px;
    text-align: center;
}

#typewriter::after {
    content: "|";
    margin-left: 4px;
    color: var(--accent);
    animation: blink 0.8s infinite;
}

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

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

.btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #5ab8ff, #3b82f6);
    color: #fff;
    transition: all 0.25s ease;
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(255,255,255,0.3);
    text-decoration: none;
}

.subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn:hover {
    box-shadow: 0 0 35px rgba(90,184,255,0.7);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.about-container,
.skills-box,
.projects-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    min-height: 260px;
    display: flex;
    gap: 20px;
    border-radius: 15px;
}

.skills-container,
.projects-container,
.research-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section {
    padding: 50px 20px;
}

#about h1, #skills h1, #projects h1, #research h1, #education h1 {
    margin-bottom: 1.5rem;
}

.about-content h2 {
    margin-bottom: 0.5rem;
}

.intro-text {
    font-size: 1.15rem;
    font-weight: 500;
}

.about-content {
    max-width: 100%;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

#education {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.education-content {
    max-width: 650px;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

.education-content h3 {
    margin-bottom: 0.5rem;
}

.education-content p {
    margin: 0.3rem 0;
}

.edu-year {
    opacity: 0.75;
    font-size: 0.95rem;
}

.education-content:hover {
    transform: translateY(-3px);
    transition: 0.3s ease;
}

.cta-container {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
}

.projects-item:hover,
.skills-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 25px rgba(90,184,255,0.2);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255,255,255,0.05);
    padding: 1.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    transition: 0.3s;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #7cc9ff;
}

.skill-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255,255,255,0.06);
    padding: 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #7cc9ff;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.tools {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent);
}

.project-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-card:hover, .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-color: rgba(90,184,255,0.4);
}

.research-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.research-card {
    background: rgba(255,255,255,0.06);
    padding: 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    transition: 0.3s;
}

.research-card h3 {
    font-size: 1.2rem;
    color: #7cc9ff;
    margin-bottom: 0.4rem;
}

.publication {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.research-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.research-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.research-link:hover {
    text-decoration: underline;
}

.research-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90,184,255,0.4);
}

#footer {
    margin: 50px auto;
    max-width: 1000px;
    padding: 1.5rem 0;
    background: transparent;
    backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(90,184,255,0.08);
    color: var(--text);
    font-size: 1.2rem;
    transition: 0.25s ease;
}

.social-icons a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

h1, h2, h3 {
    line-height: 1.2;
}

.menu-toggle {
    display: none; 

    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;

    width: 40px;
    height: 36px;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    gap: 5px;

    padding: 6px;
}


.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;

    transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle:active {
    transform: scale(0.95);
}

body.sidebar-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.sidebar-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.sidebar-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    body {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    #sidebar {
        transform: translateX(-100%);
        top: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 2rem 1rem !important;
        border-radius: 0 !important;
        background: rgba(15, 23, 42, 0.97) !important;
        overflow-y: auto !important;
        z-index: 1000;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    body.sidebar-open #sidebar {
    transform: translateX(0);
}
}