/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light Mode Colors (Default) - White/Light Theme */
:root {
    --primary-color: #f59e0b;
    --secondary-color: #eab308;
    --accent-color: #fbbf24;
    --background: #F5EE9E;
    --surface: #fef3c7;
    --surface-alt: #F9F3B1;
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-tertiary: #78716c;
    --border-color: #fde68a;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --navbar-bg: #1c1917;
    --navbar-text: #fef3c7;
    --hero-bg: #ffffff;
    --card-bg: #ffffff;
    --news-to-footer-bg: #FA9F42;
}

/* Dark Mode Colors - Black Theme - Applied to html element during initial load */
html.dark-mode-loading,
html.dark-mode-loading body {
    --primary-color: #fbbf24;
    --secondary-color: #f59e0b;
    --accent-color: #eab308;
    --background: #0a0a0a;
    --surface: #171717;
    --surface-alt: #262626;
    --text-primary: #fef3c7;
    --text-secondary: #d6d3d1;
    --text-tertiary: #a8a29e;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.7);
    --navbar-bg: #000000;
    --navbar-text: #fef3c7;
    --hero-bg: linear-gradient(135deg, #000000 0%, #171717 100%);
    --card-bg: #171717;
}

/* Dark Mode Colors - Black Theme - Applied to body element after JS loads */
body.dark-mode {
    --primary-color: #fbbf24;
    --secondary-color: #f59e0b;
    --accent-color: #eab308;
    --background: #0a0a0a;
    --surface: #171717;
    --surface-alt: #262626;
    --text-primary: #fef3c7;
    --text-secondary: #d6d3d1;
    --text-tertiary: #a8a29e;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.7);
    --navbar-bg: #000000;
    --navbar-text: #fef3c7;
    --hero-bg: linear-gradient(135deg, #000000 0%, #171717 100%);
    --card-bg: #171717;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Container - Bootstrap container with custom max-width override */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Minimal Navigation Header - Branding and Theme Toggle Only */
.navbar {
    background-color: var(--navbar-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: none;
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    display: inline-block;
    vertical-align: middle;
}

.nav-link:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.nav-link[aria-current="page"] {
    color: var(--secondary-color);
    opacity: 1;
}

.nav-brand[aria-current="page"] {
    color: var(--primary-color);
}

.nav-brand {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--navbar-text);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--secondary-color);
}

.theme-toggle .bulb-icon {
    display: block;
    /* Apply color #FF8552 (orange) to bulb icon in light mode for better visual appearance */
    filter: invert(54%) sepia(77%) saturate(1847%) hue-rotate(336deg) brightness(102%) contrast(101%);
}

.theme-toggle .bulb-off-icon {
    display: none;
}

body.dark-mode .theme-toggle .bulb-icon {
    display: none;
}

body.dark-mode .theme-toggle .bulb-off-icon {
    display: block;
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    padding: 5rem 0 6rem;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 25px var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInScale 0.8s ease-out;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px var(--shadow-lg);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-bio {
    max-width: 750px;
    margin: 2rem 0;
    text-align: left;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

body.dark-mode .hero-bio {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-bio p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-bio p:last-child {
    margin-bottom: 0;
}

.hero-bio .centered {
    text-align: center;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.dark-mode .hero-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.hero-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    color: var(--background);
}
}

/* Sections */
.section {
    padding: 6rem 0 6rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--background);
}

.section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: -0.5px;
    position: relative;
    color: var(--text-primary);
    display: inline-block;
    padding-bottom: 12px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section:hover h2::after {
    width: 100%;
}

.content-box {
    width: 100%;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.section .content-box {
    margin-bottom: 4rem;
}

/* Education Section */
.education-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.education-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-item .date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border-radius: 6px;
}

.education-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.75rem;
}

/* News Section */
#news {
    padding-top: 4.5rem;
    background-color: var(--news-to-footer-bg);
}

/* Apply orange background to all sections after News in light mode */
#news ~ .section,
#news ~ .section.section-alt {
    background-color: var(--news-to-footer-bg);
}

/* Dark mode: keep original backgrounds for these sections */
html.dark-mode-loading #news,
html.dark-mode-loading #news ~ .section,
body.dark-mode #news,
body.dark-mode #news ~ .section {
    background-color: transparent;
}

.news-item {
    margin-bottom: 2rem;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.2rem;
}

/* Honors Grid */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.honor-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.honor-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 2px solid var(--border-color);
}

.honor-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.honor-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.project-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.project-status,
.project-year {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

.project-status {
    background: var(--surface);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.project-year {
    background: var(--surface);
    color: var(--text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
    gap: 0.5rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: var(--surface);
    transition: all 0.3s ease;
}

.project-link-icon:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

.project-link-icon svg {
    flex-shrink: 0;
}

.certificate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.certificate-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.honor-item {
    text-align: center;
}

/* Trivia Grid */
.trivia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.trivia-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.trivia-item:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.trivia-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: grayscale(20%);
}

.trivia-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.trivia-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle .menu-icon,
.mobile-menu-toggle .close-icon {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle .menu-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-menu-toggle .close-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile-menu-toggle.active .menu-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.mobile-menu-toggle.active .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-menu.mobile-open {
    display: flex;
}

/* Page wrapper for sticky footer */
.hero,
.section {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

.footer p {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Responsive Design - Mobile & Tablet Optimization */

/* Tablet (Portrait & Landscape) - 768px to 1024px */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 32px;
    }
    
    .section {
        padding: 3rem 0 3rem 0;
    }
    
    #news {
        padding-top: 3rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-bio {
        max-width: 90%;
        padding: 1.5rem;
    }
}

/* Tablet & Mobile - 768px and below */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 24px;
    }
    
    /* Navbar mobile layout */
    .navbar .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide nav menu by default on mobile, show as dropdown */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--navbar-bg);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 8px var(--shadow-lg);
        display: none;
        z-index: 999;
    }
    
    .nav-menu.mobile-open {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-of-type {
        border-bottom: none;
    }
    
    .theme-toggle {
        margin: 1rem 1.5rem;
        align-self: flex-start;
    }
    
    /* Minimal Header */
    
    /* Hero Section */
    .hero {
        padding: 3.5rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }

    .hero .subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .hero-bio {
        max-width: 100%;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .hero-bio p {
        font-size: 0.95rem;
    }
    
    .hero-links {
        gap: 1rem;
    }

    .hero-link {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }
    
    /* Sections */
    .section {
        padding: 2.5rem 0 2.5rem 0;
    }

    #news {
        padding-top: 2.5rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }
    
    /* Projects */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-row {
        margin-bottom: 2rem;
    }
    
    .project-row h3 {
        font-size: 1.2rem;
    }
    
    .project-links {
        gap: 0.75rem;
    }
    
    /* Project Content with Image - Responsive */
    .project-content-with-image {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        max-width: 400px;
    }
    
    /* Education */
    .education-item-compact {
        margin-bottom: 2rem;
    }
    
    /* Honors */
    .honors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .honor-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .certificate-link {
        align-self: flex-end;
    }
    
    /* Trivia */
    .trivia-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Minimal Header - Keep Horizontal */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav-brand {
        font-size: 1.15rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        margin: 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    
    .hero-bio {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .hero-bio p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .hero-links {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-link {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
    }
    
    /* Sections */
    .section {
        padding: 2rem 0 2rem 0;
    }
    
    #news {
        padding-top: 2rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* News */
    .news-item {
        margin-bottom: 1.5rem;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    
    /* Projects */
    .project-row {
        margin-bottom: 2rem;
    }
    
    .project-row h3 {
        font-size: 1.15rem;
    }
    
    .project-row p {
        font-size: 0.9rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-link-icon {
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Education */
    .education-item-compact {
        margin-bottom: 1.75rem;
    }
    
    .education-item-compact p {
        font-size: 0.9rem;
    }
    
    /* Honors */
    .honors-list {
        gap: 1.25rem;
    }
    
    .honor-row {
        gap: 0.5rem;
    }
    
    .honor-row p {
        font-size: 0.9rem;
    }
    
    .certificate-link {
        padding: 0.4rem;
    }
    
    .certificate-link svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hobbies */
    #trivia .content-box p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Trivia Grid (if used) */
    .trivia-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .trivia-item {
        padding: 1.5rem 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.65rem;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .hero-bio {
        padding: 1rem;
    }
}

/* New Styles for Updated Sections */

/* Project List (Row Layout) */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-row {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.dark-mode .project-row {
    background: rgba(255, 255, 255, 0.03);
}

.project-row:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

body.dark-mode .project-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.project-row:last-child {
    margin-bottom: 0;
}

.project-row h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-row p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-guidance {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

.project-guidance a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-guidance a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Project Content with Image */
.project-content-with-image {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-text {
    flex: 1;
}

.project-image {
    flex-shrink: 0;
    width: 300px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

/* Education Compact Style */
.education-item-compact {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

body.dark-mode .education-item-compact {
    background: rgba(255, 255, 255, 0.03);
}

.education-item-compact:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

body.dark-mode .education-item-compact:hover {
    background: rgba(255, 255, 255, 0.06);
}

.education-item-compact:last-child {
    margin-bottom: 0;
}

.education-item-compact p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.education-item-compact p:last-child {
    margin-bottom: 0;
}

.education-item-compact strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.4rem;
}

/* Honors List (Row Layout) */
.honors-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.honor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.dark-mode .honor-row {
    background: rgba(255, 255, 255, 0.03);
}

.honor-row:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

body.dark-mode .honor-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.honor-row p {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1.2rem;
}

.honor-row:last-child {
    margin-bottom: 0;
}

.certificate-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.certificate-link:hover {
    color: var(--secondary-color);
    background: var(--surface);
    transform: scale(1.1);
}

.certificate-link svg {
    flex-shrink: 0;
}

/* Hobbies Simple Text */
#trivia .content-box p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
}

/* Specializations Section */
.specialization-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.specialization-item {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

body.dark-mode .specialization-item {
    background: rgba(255, 255, 255, 0.03);
}

.specialization-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

body.dark-mode .specialization-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.specialization-item:last-child {
    margin-bottom: 0;
}

.specialization-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.specialization-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cert-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cert-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 168, 0, 0.3);
}

.cert-link img {
    display: block;
}

.specialization-org {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.org-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.org-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.org-links {
    display: inline;
}

.org-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.org-link:hover {
    color: var(--primary-color);
}

.org-separator {
    color: var(--text-secondary);
}

.coursera-icon,
.deeplearning-icon {
    flex-shrink: 0;
    color: var(--primary-color);
}

.issue-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.calendar-icon {
    flex-shrink: 0;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .specialization-org {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .honor-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .certificate-link {
        align-self: flex-end;
    }
}

/* Bullet Icon Styling */
.bullet-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}
