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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Use default cursor behavior for all elements */
* {
    cursor: default;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 50vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    color: white;
    position: relative;
    z-index: 0;
}

.hero-content {
    width: 100%;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    position: relative;
}

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.bio {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.section {
    padding: 5rem 0;
    scroll-margin-top: 6rem;
    position: relative;
    z-index: 1;
}

#awards.section,
#internships.section,
#projects.section {
    padding-top: 0.25rem;
}

#skills.section {
    padding-top: 0.1rem;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #3498db;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
    font-family: Arial, sans-serif !important;
    font-variant-numeric: normal !important;
    font-feature-settings: "tnum" 0, "lnum" 0, "pnum" 1 !important;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.tag {
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.academics-content,
.athletics-content,
.volunteering-content {
    display: grid;
    gap: 3rem;
}

.achievements,
.sports-highlights,
.service-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card,
.sport-card,
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover,
.sport-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-card i,
.sport-card i,
.service-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.achievement-card h3,
.sport-card h3,
.service-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.photo-gallery {
    margin-top: 2rem;
}

.photo-gallery h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

/* Media recognition links */
.media-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.media-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Specific positioning for food-volunteer1 image to show head/top portion */
img[src*="food-volunteer1.jpeg"] {
    object-position: center top;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

.contact-item i {
    color: #3498db;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image img {
        width: 250px;
        height: 250px;
    }
    
    .profile-text h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .achievements,
    .sports-highlights,
    .service-highlights {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-text h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image img {
        width: 200px;
        height: 200px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat {
        padding: 0.75rem;
        margin: 0 0.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #3498db;
}

.year {
    display: block;
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 600;
    margin-top: 0.5rem;
}

.coursework-section {
    margin-top: 1rem;
}

.coursework-section h3 {
    text-align: center;
}

.clubs-section,
.internship-section {
    margin-top: 3rem;
}

.internships-content {
    display: grid;
    gap: 3rem;
}

.internship-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.internship-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.internship-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.internship-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
}

.experience-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.experience-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.coursework-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
}

.coursework-grid .course-item:nth-child(1) {
    grid-column: 1;
    justify-self: start;
}

.coursework-grid .course-item:nth-child(2) {
    grid-column: 1;
}

.coursework-grid .course-item:nth-child(3) {
    grid-column: 1;
}

.coursework-grid .course-item:nth-child(n+2):nth-child(-n+3) {
    grid-row: 2;
}

.coursework-grid .course-item:nth-child(4),
.coursework-grid .course-item:nth-child(5),
.coursework-grid .course-item:nth-child(6) {
    grid-row: 3;
}

.coursework-grid .course-item:nth-child(n+7) {
    grid-row: 4;
}

@supports (display: grid) {
    .coursework-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: min-content;
    }
    
    .coursework-grid .course-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        justify-self: stretch;
    }
    
    .coursework-grid .course-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .coursework-grid .course-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .coursework-grid .course-item:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .coursework-grid .course-item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }
    
    .coursework-grid .course-item:nth-child(6) {
        grid-column: 3;
        grid-row: 3;
    }
    
    .coursework-grid .course-item:nth-child(7) {
        grid-column: 1;
        grid-row: 4;
    }
    
    .coursework-grid .course-item:nth-child(8) {
        grid-column: 2;
        grid-row: 4;
    }
    
    .coursework-grid .course-item:nth-child(9) {
        grid-column: 3;
        grid-row: 4;
    }
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.course-item,
.club-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-item:hover,
.club-item:hover {
    transform: translateY(-3px);
}

.course-item strong,
.club-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.club-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.course-item .year,
.club-item .year {
    display: inline;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.ap-score {
    display: block;
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


/* Specific positioning for academic-honors image to fit entire image within block */
img[src*="academic-honors.jpeg"] {
    object-fit: contain !important;
    object-position: center center !important;
}

.photo-gallery {
    margin-top: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.award-card:hover {
    transform: translateY(-3px);
}

.award-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.award-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.award-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.award-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.award-item .year {
    display: inline;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.award-item p {
    margin-top: 0.5rem;
    color: #555;
}

@media (max-width: 768px) {
    .coursework-grid,
    .clubs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .coursework-grid .course-item:nth-child(1),
    .coursework-grid .course-item:nth-child(2),
    .coursework-grid .course-item:nth-child(3),
    .coursework-grid .course-item:nth-child(4),
    .coursework-grid .course-item:nth-child(5),
    .coursework-grid .course-item:nth-child(6),
    .coursework-grid .course-item:nth-child(7),
    .coursework-grid .course-item:nth-child(8),
    .coursework-grid .course-item:nth-child(9) {
        grid-column: 1 !important;
        grid-row: auto !important;
        justify-self: stretch !important;
        max-width: none !important;
    }
    
    .projects-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .academics-content,
    .athletics-content,
    .volunteering-content {
        gap: 2rem;
    }
    
    .achievements {
        grid-template-columns: 1fr;
    }
}

.nav-link {
  cursor: pointer;
}

.back-to-top-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    text-decoration: none;
    color: white;
}

.back-to-top i {
    font-size: 0.8rem;
}