:root {
    --primary: #6366f1;
    --primary-alt: #4f46e5;
    --background: #0f172a;
    --surface: #1e293b;
    --on-surface: #f8fafc;
    --on-surface-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

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

.section {
    padding: 8rem 0;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--on-surface-muted);
    font-weight: 500;
    transition: 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--on-surface-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn.secondary {
    background: var(--surface);
    color: var(--on-surface);
}

.btn.secondary:hover {
    background: #2d3e5a;
}

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

.image-wrapper {
    width: 400px;
    height: 400px;
    padding: 1rem;
    border-radius: 2rem;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

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

.project-card {
    overflow: hidden;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--on-surface-muted);
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags span {
    background: var(--surface);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-category {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
}

.skill-category h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Contact Form */
#contact .container {
    max-width: 700px;
}

.contact-card {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--on-surface-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: var(--on-surface);
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer p {
    color: var(--on-surface-muted);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons i {
    font-size: 1.5rem;
    color: var(--on-surface-muted);
    transition: 0.3s;
}

.social-icons i:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 1s ease forwards;
}

.hero-text h1 {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-btns {
    animation: fadeInUp 1s ease forwards 0.3s;
    opacity: 0;
}

.hero-image {
    animation: fadeInUp 1s ease forwards 0.5s;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--on-surface-muted);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--on-surface-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.card-padding {
    padding: 2.5rem;
}

.location-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.resume-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.resume-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--on-surface-muted);
}

.resume-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.hobbies h4 {
    margin-bottom: 1rem;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.exp-card {
    position: relative;
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--surface);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--glass-border);
}

.company {
    color: var(--on-surface-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Honors & Volunteering */
.honors-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.award-list {
    list-style: none;
}

.award-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 1rem;
    transition: 0.3s;
}

.award-list li:hover {
    transform: translateX(10px);
    background: #2d3e5a;
}

.award-list i {
    color: var(--primary);
    font-size: 1.25rem;
}

.vol-item {
    margin-bottom: 1.5rem;
}

.vol-item h4 {
    color: var(--on-surface);
    margin-bottom: 0.25rem;
}

.vol-item p {
    color: var(--on-surface-muted);
    font-size: 0.9rem;
}

/* Contact Info */
.contact-info-direct {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-direct p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.contact-info-direct i {
    color: var(--primary);
}

/* Animations & Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .experience-grid,
    .honors-flex {
        grid-template-columns: 1fr;
    }
}