:root {
    --main-bg: #18181a;
    --header-bg: #1c1c1e;
    --card-bg: #232326;
    --accent: #0a84ff;
    --text: #f5f5f7;
    --subtle: #a1a1aa;
    --border: #232326;
    --radius: 14px;
    --shadow: 0 2px 16px rgba(0,0,0,0.18);
    --highlight: #ffd60a;
}
span.highlight{
    color: var(--highlight);
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
p, h1, li{
    color: white;
}
body {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    /* Add dark stock image background with overlay */
    background: 
        linear-gradient(rgba(20,20,30,0.85), rgba(20,20,30,0.92)),
        url('../assets/bg-dark-stock.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.01em;
}
/* Frosted glass effect for header/navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 5vh;
    z-index: 100;
    background: rgba(28,28,30,0.65);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--shadow);
    border-bottom: 1.5px solid rgba(255,255,255,0.08);
    padding: 20px 0 12px 0;
    color: white;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 0 24px;
}

.profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    background: #222;
    transition: box-shadow 0.22s, transform 0.22s;
}

.profile-photo:hover {
    box-shadow: 0 0 0 4px var(--accent), 0 8px 32px rgba(10,132,255,0.10);
    transform: scale(1.06) rotate(-2deg);
}

.subtitle {
    color: var(--subtle);
    font-size: 1.2rem;
    margin-top: 6px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.social-links a {
    color: var(--accent);
    font-size: 1.3rem;
    margin-right: 16px;
    text-decoration: none;
    transition: color 0.2s;
    filter: drop-shadow(0 1px 4px rgba(10,132,255,0.10));
    transition: color 0.2s, transform 0.18s;
}
.social-links a:hover {
    color: var(--highlight);
    transform: scale(1.18) rotate(-6deg);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus {
    background: var(--accent);
    color: #fff;
}

main {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

section {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    background: 
        linear-gradient(rgba(30,30,40,0.92), rgba(30,30,40,0.96)),
        url('../assets/bg-dark-section.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 0;
    box-shadow: none;
    padding: 0 32px;
    margin: 0;
    border: none;
}

section > * {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    margin-bottom: -5vh;
    margin-top: 20px;
}


section#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: var(--card-bg);
}

section#home .profile-header {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

section#home .about-me {
    max-width: 600px;
    background: rgba(35,35,38,0.60);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    padding: 32px 24px;
    margin-top: 18px;
    border: 1.5px solid rgba(255,255,255,0.07);
    transition: box-shadow 0.2s;
}

section#home .about-me:hover {
    box-shadow: 0 8px 32px rgba(10,132,255,0.10);
}
section#experience h2{
    margin-top: 5vh;
}
section#experience .project-list{
    display: flex;
    align-items: center;
}
section#contact h2{
    margin-bottom: 5px;
}
section#education h2{
    margin-bottom: 5px;
}
@media (max-width: 900px) {
    section#home .about-me {
        max-width: 100%;
    }
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.project-card {
    background: rgba(35,35,38,0.65);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1.5px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 32px rgba(10,10,30,0.18);
    padding: 20px 18px;
    flex: 1 1 260px;
    min-width: 220px;
    transition: transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1), background 0.22s;
}

.project-card:hover, .education-card:hover {
    background: rgba(35,35,38,0.82);
    box-shadow: 0 8px 40px 0 rgba(10,132,255,0.13);
    transform: translateY(-10px) scale(1.035);
    border-color: var(--accent);
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

/* Project card pop effect */
.card-pop {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(10,132,255,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline {
    border-left: 2.5px solid var(--accent);
}

.timeline-item {
    background: rgba(35,35,38,0.50);
    border-radius: var(--radius);
    padding: 18px 18px 10px 18px;
    margin-bottom: 20px;
    margin-left: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 1px solid rgba(255,255,255,0.05);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.timeline-item:hover {
    box-shadow: 0 8px 32px rgba(10,132,255,0.09);
}

.timeline-item h3 {
    margin-bottom: 2px;
    color: var(--highlight);
    font-size: 1.1rem;
}

.company {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
}

.date {
    color: var(--subtle);
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
}

.education-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(35,35,38,0.65);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: var(--text);
    font-size: 1.1rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 32px rgba(10,10,30,0.18);
    margin-bottom: 24px;
    min-height: 70px;
}
.edu-logo-col {
    width: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edu-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(10,132,255,0.07);
}
.education-card > div:last-child {
    flex: 1;
}
@media (max-width: 600px) {
    .education-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 10px;
    }
    .edu-logo-col {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }
    .edu-logo {
        width: 38px;
        height: 38px;
    }
}
/* Fade-in animation for sections */
.pre-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Nav underline effect */
.nav-underline {
    box-shadow: 0 2px 0 0 var(--accent) inset;
}

footer {
    text-align: center;
    color: var(--subtle);
    font-size: 1rem;
    padding: 32px 0 16px 0;
    background: transparent;
}

/* Custom scrollbar styling */
body, main, section {
    scrollbar-width: thin;
    scrollbar-color: #232326 #18181a;
}

/* Chrome, Edge, Safari */
body::-webkit-scrollbar,
main::-webkit-scrollbar,
section::-webkit-scrollbar {
    width: 10px;
    background: #18181a;
}

body::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb,
section::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #232326 60%, #0a84ff 100%);
    border-radius: 8px;
    border: 2px solid #18181a;
    box-shadow: 0 2px 8px rgba(10,132,255,0.10);
    transition: background 0.2s;
}

body::-webkit-scrollbar-thumb:hover,
main::-webkit-scrollbar-thumb:hover,
section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, #0a84ff 40%, #ffd60a 100%);
}

.resume-btn {
    display: inline-block;
    padding: 0 6px;
    margin-left: 2px;
    background: none;
    color: var(--accent);
    font-size: 1.3rem;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s, transform 0.18s;
    vertical-align: middle;
    backdrop-filter: none;
}
.resume-btn:hover, .resume-btn:focus {
    color: var(--highlight);
    background: none;
    transform: scale(1.18) rotate(-6deg);
    box-shadow: none;
}

.contact-form {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--radius);
    box-shadow: none;
    padding: 0;
    border: none;
    margin-bottom: 18px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    box-sizing: border-box;
}
.contact-form input,
.contact-form textarea {
    background: #18181a;
    color: var(--text);
    border: 1px solid #232326;
    border-radius: var(--radius);
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 10px;
    box-shadow: none;
    transition: border 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 1.5px solid var(--accent);
    background: #232326;
}
.contact-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 0;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    box-shadow: none;
    letter-spacing: 0.02em;
    margin-top: 4px;
}
.contact-form button:hover, .contact-form button:focus {
    background: var(--highlight);
    color: #18181a;
}
.contact-info {
    list-style: none;
    margin-top: 14px;
    padding: 0;
    color: var(--subtle);
    font-size: 1rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.contact-info a:hover {
    color: var(--highlight);
    text-decoration: underline;
}
#contact h2 {
    text-align: center;
    
}
@media (max-width: 600px) {
    .contact-form, .contact-info {
        max-width: 98vw;
        padding: 0;
    }
}
