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

:root {
    --bg: #000;
    --text: #ffffff;
    --text-light: #cccccc;
    --accent: #66b2ff;
    --glass-bg: rgba(255,255,255,0.10);
    --glass-hover: rgba(255,255,255,0.18);
    --glass-border: rgba(255,255,255,0.25);
    transition: background 0.3s, color 0.3s;
}

.light-theme {
    --bg: #ffffff;
    --text: #000000;
    --text-light: #444444;
    --accent: #1a73e8;
    --glass-bg: rgba(0,0,0,0.06);
    --glass-hover: rgba(0,0,0,0.10);
    --glass-border: rgba(0,0,0,0.15);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

section {
    padding: 60px 0;
}   

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text);
}

html {
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    padding: 15px 0;

    display: flex;
    align-items: center;
    background: transparent;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.theme-toggle,
.menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
}


.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 120px;
    margin-top: 50px;
}

.hero-text {
    flex: 1;
}

.hero-hello {
    font-size: 1.2rem;
    color: var(--text);
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.hero-role {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hero-description {
    max-width: 500px;
    color: var(--text-light);
}

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

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-border);
}

.about-section .container {
    width: min(90%, 1200px);
    margin: 0 auto;
    text-align: left;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-intro,
.about-details {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-list {
    margin-top: 15px;
    padding-left: 20px;
}

.about-list li {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1rem;
}

.skill-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: center;
}

.skill img {
    width: 60px;
    margin-bottom: 10px;
    transition: 0.3s ease;
}

.skill p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.skill img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 35px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #000;
    display: block;
}

.project-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: var(--text);
    padding: 20px;

    opacity: 0;
    transition: 0.3s ease;
    overflow-y: auto;
}

.project-card:hover .project-info {
    opacity: 1;
}

#contact h2 {
    text-align: center;
    margin-bottom: 25px;
}

#contact form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact label {
    font-size: 0.95rem;
    color: var(--text-light);
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 1rem;
    resize: none;
}

#contact textarea {
    min-height: 120px;
}

#contact button {
    padding: 12px;
    background-color: var(--accent);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

#contact button:hover {
    opacity: 0.85;
}

#footer {
    padding: 40px 0;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-socials img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: 0.3s ease;
    cursor: pointer;
}

.footer-socials img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.back-to-top {
    font-size: 1.6rem;
    color: var(--text);
    text-decoration: none;
    transition: 0.3s ease;
}

.back-to-top:hover {
    opacity: 0.7;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: none;
    transition: background 150ms;
    padding: 20px;
}

.glass:hover {
    background: var(--glass-bg);
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .glass {
        padding: 18px;
    }
}

.cursor {
    font-weight: bold;
    margin-left: 3px;
    color: var(--accent);
    animation: blink 0.7s steps(1) infinite;
}

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

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    gap: 25px;
    z-index: 999;

    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;

    transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

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


@media (max-width: 1024px) {
    .hero-section .container {
        padding-top: 100px;
        gap: 30px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    section {
        padding: 40px 0;
    }

    .glass {
        padding: 18px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
    }

    .mobile-nav {
        display: flex;
        width: 70%;
        backdrop-filter: blur(15px);
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
        margin-top: 80px;
        padding-top: 80px;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-role {
        font-size: 1.3rem;
    }

    .hero-description {
        margin: 0 auto;
    }

    .about-section .container {
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card img {
        height: 180px;
    }

    #contact h2 {
        font-size: 1.7rem;
    }

    #contact form {
        padding: 18px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.navbar.scrolled {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 480px) {

    .hero-name {
        font-size: 2rem;
    }

    .hero-image img {
        width: 180px;
        height: 180px;
    }

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

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