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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --border: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 300px;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.profile-image {
    margin-bottom: 30px;
    width: 180px;
    height: 180px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.placeholder-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    border: 4px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.placeholder-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.profile-photo {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 10px;
}

.location i {
    color: var(--accent);
}

.stanford-logo {
    height: 36px;
    width: auto;
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Contact Bubble */
.contact-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(153, 27, 27, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-bubble:hover::before {
    left: 100%;
}

.contact-bubble:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(153, 27, 27, 0.2) 100%);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

.contact-bubble i {
    font-size: 18px;
    color: var(--accent);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.social-btn i {
    font-size: 20px;
}

.social-btn[data-platform="github"]:hover {
    border-color: #6e5494;
    box-shadow: 0 5px 20px rgba(110, 84, 148, 0.3);
}

.social-btn[data-platform="linkedin"]:hover {
    border-color: #0077b5;
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.3);
}

.social-btn[data-platform="instagram"]:hover {
    border-color: #e4405f;
    box-shadow: 0 5px 20px rgba(228, 64, 95, 0.3);
}

.social-btn[data-platform="facebook"]:hover {
    border-color: #1877f2;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.3);
}

/* About Section */
.about-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

/* Projects Section */
.projects-section {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.projects-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
}

/* Banner Container */
.banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 0;
    overflow: hidden;
}

#bannerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 2;
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 36px;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-btn {
        justify-content: center;
    }

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

    .container {
        padding: 40px 15px 300px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(239, 68, 68, 0.3);
    color: var(--text-primary);
}

