
:root {
    --bg-color: #0a192f;
    --bg-light: #112240;
    --bg-lightest: #233554;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --accent: #00f5d4;
    --accent-tint: rgba(0, 245, 212, 0.1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Space Mono', "Fira Code", monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --nav-height: 100px;
    --nav-scroll-height: 70px;
}


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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-lightest);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--bg-lightest);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}


.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;

}

/* Custom Cursor Blob */
.cursor-blob {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-tint) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out;
    filter: blur(50px);
}


a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

.section-title {
    font-size: clamp(26px, 5vw, 32px);
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    white-space: nowrap;
    font-family: var(--font-mono);
}


.section-title::before {
    position: relative;
    bottom: 0px;
    counter-increment: section;

    margin-right: 10px;
    color: var(--accent);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 400;
}

/* Line after section heading */
.section-title::after {
    content: "";
    display: block;
    position: relative;
    top: -5px;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--bg-lightest);
}


.profile-img {
    width: 154px;
    object-fit: cover;

}

.education-card {
    position: relative; /* needed for badge positioning */
}

/* Badge */
.edu-badge {
    position: absolute;
    top: 15px;
    right: 15px;

    font-size: 12px;
    font-family: var(--font-mono);

    color: #00f5d4;
    border: 1px solid #00f5d4;

    padding: 4px 10px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blinking dot */
.edu-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #00f5d4;
    border-radius: 50%;

    animation: blink 1.2s infinite;
}

/* Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}



@media (max-width: 768px) {
    .section-title::after {
        width: 100%;
    }
}

.btn {
    display: inline-block;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-size: 14px;
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover,
.btn:focus,
.btn:active {
    background-color: var(--accent-tint);
    outline: none;
}

/* Layout Container */
main {
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    padding: 0 150px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1080px) {
    main {
        padding: 0 100px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 25px;
    }
}

.section {

    padding: 50px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


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

#navbar.scrolled {
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

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

.nav-link {
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-main);
}

.nav-link span {
    color: var(--accent);
    margin-right: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #navbar {
        padding: 0 25px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10;
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: var(--accent);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        height: 100vh;
        width: min(75vw, 400px);
        background-color: var(--bg-light);
        box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
        transition: var(--transition);
        padding: 50px 10px;
    }

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

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

    .menu-toggle.active span:first-child {
        transform: rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}


.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.hero-greeting {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 30px;
    font-size: clamp(14px, 5vw, 16px);
}

.hero-name,
.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    line-height: 1.1;
}

.hero-name {
    color: var(--text-main);
}

.hero-title {
    color: var(--text-muted);
    margin-top: 10px;
}

.hero-desc {
    margin-top: 20px;
    max-width: 540px;
    font-size: clamp(16px, 4vw, 20px);
    color: var(--text-muted);
}

.hero-cta {
    margin-top: 50px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}


.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 18px;
}

.about-image {
    position: relative;
    max-width: 300px;
}

.img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 4px;
    background-color: var(--accent);
    /* Lift effect */
    transition: var(--transition);
}

.img-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 2px solid var(--accent);
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: var(--transition);
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.img-wrapper:hover {
    transform: translate(-4px, -4px);
}

.img-wrapper:hover .img-placeholder {
    filter: none;
    mix-blend-mode: normal;
}

.img-wrapper:hover::after {
    transform: translate(8px, 8px);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}



@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
     .edu-badge {
        position: static;   /* remove absolute */
        display: inline-flex;
        margin-bottom: 10px;
    }

    .about-image {
        margin: 50px auto 0;
        width: 70%;
    }
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: var(--text-main);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent);
}

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

.project-overline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 16px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    flex-grow: 1;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.project-tech li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 15px;
    margin-bottom: 5px;
}

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

.skill-category-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-badge {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border: 1px solid var(--bg-lightest);
}

.skill-badge:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.skill-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

.skills-section.active .skill-badge {
    animation: fadeInUp 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.skill-badge {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 100px;
}

.contact-heading {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 50px;
    font-size: 18px;
}

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

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-lightest);
    border-radius: 4px;
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.contact-form label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
    pointer-events: none;
}

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

.contact-form input:focus+label,
.contact-form input:not(:placeholder-shown)+label,
.contact-form textarea:focus+label,
.contact-form textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: var(--bg-color);
    padding: 0 5px;
    color: var(--accent);
}

.contact-form button {
    margin-top: 10px;
    align-self: center;
}

/* Contact Reveal animation */
.contact-section .slide-up-form {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.contact-section.active .slide-up-form {
    opacity: 1;
    transform: translateY(0);
}

.contact-section.active .form-group:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-section.active .form-group:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-section.active .form-group:nth-child(3) {
    transition-delay: 0.3s;
}

.contact-section.active button {
    transition-delay: 0.4s;
}


footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

footer p {
    font-family: var(--font-mono);
    font-size: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}