/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e0e7ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #e0e7ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

#heroWaves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

/* Make Learn More buttons larger in hero and project cards */
.hero .btn-primary,
.project-expand-btn {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-primary:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-group {
    width: min(100%, 390px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.profile-group .profile-image {
    width: 200px;
    height: 200px;
}

.github-activity {
    width: 100%;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background: rgba(29, 24, 65, 0.28);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(24, 20, 56, 0.18);
}

.github-activity-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.github-activity-heading h2 { font-size: 1.05rem; }
.github-activity a { color: #e9e7ff; font-size: 0.82rem; }
.github-stat { display: flex; flex-direction: column; margin: 0 0 0.75rem; }
.github-stat span, .activity-range-label { font-size: 0.78rem; opacity: 0.8; }
.github-stat strong { font-size: 0.98rem; line-height: 1.4; overflow-wrap: anywhere; }
.github-stat strong a { font-size: inherit; }
.activity-range-label { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.activity-range-label strong { color: white; font-size: 0.82rem; opacity: 1; }
#activity-days { width: 100%; accent-color: #e5e0ff; cursor: pointer; }
.activity-window-note { margin: 0.15rem 0 0; font-size: 0.68rem; line-height: 1.4; opacity: 0.68; }

.profile-image-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2d3748;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.8;
}

.about-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    color: #4c51bf;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
}

/* CV Section */
.cv {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.cv-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2d3748;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.cv-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.cv-item:hover {
    transform: translateX(5px);
}

.cv-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.cv-location {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cv-download {
    text-align: center;
}

/* Projects Section */
.projects {
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    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(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #a8d5e2 0%, #7fb3d3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ASCII overlays on project cards */
.sofi-fish-ascii,
.project-ascii {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0.25rem 0;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1;
    white-space: pre;
}

.sofi-fish-ascii {
    font-size: 0.65rem;
    top: 0;
    transform: translateX(-50%);
}

/* Adversary lab – plane */
.adversary-ascii {
    font-size: 0.45rem;
}

/* Hyperloop – train/track */
.hyperloop-ascii {
    font-size: 0.4rem;
}

/* HRC2 – robot */
.hrc2-ascii {
    font-size: 0.38rem;
}

/* Game of Life – cubes */
.gameoflife-ascii {
    font-size: 0.4rem;
}

/* Original Design Prototype – ODP house */
.odp-ascii {
    font-size: 0.6rem;
}

/* Household CAD – Unicode watch art */
.household-cad-ascii {
    font-size: 0.3rem;
    line-height: 1.05;
}

/* Torque wrench – Unicode block art */
.torque-wrench-ascii {
    font-size: 0.22rem;
    line-height: 1.05;
}

/* System Dynamics – ball on ramp Unicode art */
.systems-ascii {
    font-size: 0.2rem;
    line-height: 1.05;
}

/* Fluid Mechanics – Unicode flow art */
.fluids-ascii {
    font-size: 0.3rem;
    line-height: 1.05;
}

/* Heat Transfer – ASCII critter */
.heat-transfer-ascii {
    font-size: 0.6rem;
    line-height: 1.05;
}

/* Mechatronics – ASCII critter */
.mechatronics-ascii{
    font-size: 0.6rem;
    line-height: 1.05;
}


.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-placeholder {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.project-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4c51bf;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background-color: white;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.project-link:hover {
    color: white;
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Classes Section */
.classes {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Personal Section */
.personal {
    background-color: white;
}

.personal-content {
    max-width: 1000px;
    margin: 0 auto;
}

.personal-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.personal-intro p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.interest-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.interest-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Publications Section */
.publications {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.publications-content {
    max-width: 1000px;
    margin: 0 auto;
}

.publication-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.publication-intro p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.publications-list {
    margin-bottom: 3rem;
}

.publication-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.publication-header h3 {
    color: #2d3748;
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.publication-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.publication-details p {
    margin-bottom: 0.8rem;
    color: #4a5568;
    line-height: 1.6;
}

.publication-details strong {
    color: #2d3748;
}

.publication-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.research-interests {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.research-interests h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.interest-tag {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4c51bf;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.interest-tag:hover {
    transform: translateY(-2px);
}

/* Reading Section Styles */
.reading-card {
    grid-column: 1 / -1;
    text-align: left;
}

.reading-year-buttons {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.reading-year-btn {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    border: 2px solid #667eea !important;
    background-color: white !important;
    color: #667eea !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reading-year-btn:hover {
    background-color: #667eea !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.reading-year-btn.active {
    background-color: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* Blog Section Styles */
.blog-card {
    grid-column: 1 / -1;
    text-align: left;
}

.blog-title-buttons {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-title-btn {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    border: 2px solid #667eea !important;
    background-color: white !important;
    color: #667eea !important;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
}

.blog-title-btn:hover {
    background-color: #667eea !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.blog-title-btn.active {
    background-color: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.blog-post-section {
    animation: fadeIn 0.3s ease-in;
}

.blog-post-content {
    margin-top: 1.25rem;
}

.blog-post-content p {
    font-size: 1.02rem;
    color: #4a5568;
    line-height: 1.8;
}

.books-section {
    animation: fadeIn 0.3s ease-in;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.book-category {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.book-category h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.book-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-list li {
    color: #4a5568;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 0.95rem;
    line-height: 1.4;
}

.book-list li:last-child {
    border-bottom: none;
}

.current-reading {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-left-color: #4c51bf;
}

.current-book {
    color: #4c51bf !important;
    font-weight: 500;
    font-style: italic;
}

.current-book::before {
    content: "📖 ";
    margin-right: 0.5rem;
}

/* Responsive adjustments for reading section */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .book-category {
        padding: 1rem;
    }
}

/* Gym Section Styles */
.gym-card {
    grid-column: 1 / -1;
    text-align: left;
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.workout-day {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.today-workout {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-left-color: #4c51bf;
}

.workout-day h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.workout-content h5 {
    color: #4a5568;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.workout-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
}

.workout-label {
    font-weight: 500;
    color: #4a5568;
}

.workout-value {
    font-weight: 600;
    color: #2d3748;
}

.exercise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exercise-list li {
    color: #4a5568;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.exercise-list li:last-child {
    border-bottom: none;
}

.workout-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.workout-summary {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid #38a169;
    grid-column: 1 / -1;
}

.workout-summary h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.progress-value {
    font-size: 1rem;
    font-weight: 600;
    color: #38a169;
}

/* Responsive adjustments for gym section */
@media (max-width: 768px) {
    .workout-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .workout-day {
        padding: 1rem;
    }
    
    .workout-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
}

.classes-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.class-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2d3748;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.class-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.class-item:hover {
    transform: translateX(5px);
}

/* Semester Grid Styles */
.semester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.semester-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.semester-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.semester-title {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 0.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.course-item-small {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.course-item-small:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4c51bf;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.class-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.class-institution {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        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;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cv-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .classes-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .publication-header h3 {
        min-width: auto;
    }
    
    .interests-tags {
        justify-content: flex-start;
    }
    
    .semester-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #667eea;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.modal-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}

.modal-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 15px 0 0 15px;
}

.modal-image-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-image-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modal-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.modal-image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.modal-image-card-caption {
    padding: 0.8rem;
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    font-weight: 500;
}

.modal-image-card {
    cursor: pointer;
}

/* Image Enlargement Modal */
.image-modal-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.9);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.image-close {
    color: white;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2001;
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-close:hover,
.image-close:focus {
    color: #667eea;
    background: rgba(102, 126, 234, 0.8);
}

.enlarged-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Video styling */
.modal-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0.5rem 0;
}

.modal-video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0.5rem 0;
}

.modal-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.modal-video-caption {
    padding: 0.8rem;
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    font-weight: 500;
}

.modal-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-details {
    margin-bottom: 1.5rem;
}

.modal-details h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.modal-details p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.modal-links .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    border: 2px solid #667eea;
    min-width: 120px;
    text-align: center;
}

.modal-links .btn-primary {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.modal-links .btn-primary:hover {
    background-color: #5568d3;
    border-color: #5568d3;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 15px 15px 0 0;
        height: 200px;
    }
    
    .modal-text {
        padding: 1.5rem;
    }
}

