:root {
    /* Color Palette */
    --bg-color: #050505;
    --bg-card: rgba(20, 20, 22, 0.7);
    --text-main: #f0f0f0;
    --text-muted: #9ca3af;
    --accent-light: #00f2fe;
    --accent-dark: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.4);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Metrics */
    --max-width: 1100px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: auto; /* GSAP handle smooth scrolling */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.05), transparent 50%);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}

.section-title.left-align {
    text-align: left;
}

.accent-text {
    background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 2rem;
}

.main-content {
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.nav-resume-btn {
    border: 1px solid var(--accent-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: var(--accent-light) !important;
    transition: var(--transition);
}

.nav-resume-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background: var(--text-main);
    color: #000;
    border: none;
}

.primary-btn:hover {
    transform: scale(1.05);
    background: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.secondary-btn:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-pin-container {
    width: 100%;
    height: 100vh;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/image/hero_bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, #050505 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    margin-top: 60px;
    will-change: transform, opacity;
}

.profile-container {
    margin-bottom: 1.5rem;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid var(--accent-light);
    box-shadow: 0 0 35px var(--accent-glow), inset 0 0 20px rgba(0, 0, 0, 0.5);
    background: var(--bg-color);
    filter: contrast(1.15) brightness(0.9) saturate(1.1);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.6);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -2px;
}

.hero h2 {
    font-size: 2.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section (Pinned) */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 80vh;
}

.about-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-main);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-light);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    width: 16px;
    height: 16px;
    background: var(--accent-light);
    border-radius: 50%;
    transform: translateX(-50%);
    top: 5px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-light);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-content ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.timeline-content li strong {
    color: var(--text-main);
}

.tech-stack-mini {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.skill-card i {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.skill-card span {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.project-info {
    padding: 3rem 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: 20px;
    font-weight: 500;
}

.project-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Education & Awards */
.edu-awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.edu-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.edu-card h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

.edu-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.awards-list {
    list-style: none;
    margin-top: 2rem;
}

.awards-list li {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
}

.awards-list li i {
    color: var(--accent-light);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* Contact Section */
.contact {
    text-align: center;
    padding-bottom: 8rem;
}

.contact p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
    }
    .hero-content { 
        margin-top: 120px; 
        padding-bottom: 2rem;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
    .hero p { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.4; }
    .profile-pic { width: 130px; height: 130px; }
    .about-container { grid-template-columns: 1fr; gap: 3rem; }
    .edu-awards-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
}
