:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #242430;
    --text-primary: #f0f0f0;
    --text-secondary: #d0d0d0;
    --text-tertiary: #a0a0a0;
    --accent: #5dade2;
    --accent-hover: #3498db;
    --border: #2a2a3a;
    --border-light: #1f1f2a;
    --shadow: rgba(0, 0, 0, 0.4);
    --gradient-start: #1a1a24;
    --gradient-end: #0f0f13;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 20px 0;
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

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


.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(93, 173, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(93, 173, 226, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-profile-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-profile-image {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 20px 60px rgba(93, 173, 226, 0.25);
    z-index: 2;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-profile-image:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(93, 173, 226, 0.35);
}

.hero-decoration {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.08) 0%, rgba(93, 173, 226, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-visual {
    flex: 0 0 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding-top: 20px;
}

.section-title-with-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.section-title-with-logos .section-title {
    margin-bottom: 0;
}

.hero-affiliations {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.affiliation-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(93, 173, 226, 0.03) 100%);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    width: 200px;
    height: 100px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.affiliation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.08), transparent);
    transition: left 0.5s ease;
}

.affiliation-item:hover::before {
    left: 100%;
}

.affiliation-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(93, 173, 226, 0.15), 0 0 0 1px rgba(93, 173, 226, 0.1);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(93, 173, 226, 0.06) 100%);
}

.affiliation-logo {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 70px;
    object-fit: contain;
    opacity: 1;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.affiliation-item:hover .affiliation-logo {
    transform: scale(1.05);
    opacity: 0.95;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease;
}

.hero-line {
    display: inline-block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 600;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 173, 226, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}


.hero-decoration {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.12) 0%, rgba(93, 173, 226, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 48px;
    color: var(--accent);
    opacity: 0.15;
    animation: floatIcon 8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(93, 173, 226, 0.3));
    transition: all 0.3s ease;
    will-change: transform;
}

.floating-icon:hover {
    opacity: 0.35 !important;
    filter: drop-shadow(0 0 18px rgba(93, 173, 226, 0.5));
}

.floating-icon i {
    display: block;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-25px) translateX(10px) rotate(5deg);
        opacity: 0.22;
    }
    50% {
        transform: translateY(-50px) translateX(-8px) rotate(-5deg);
        opacity: 0.28;
    }
    75% {
        transform: translateY(-25px) translateX(-12px) rotate(3deg);
        opacity: 0.22;
    }
}


/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-number {
    font-size: 18px;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 2px;
}

/* About Section */
.about-content {
    width: 100%;
    display: block;
}

.about-text {
    width: 100%;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 100%;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
}

.about-intro {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
    opacity: 0.8;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Experience Section */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 0 4px var(--border);
}

.timeline-header {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.timeline-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 12px;
}

.timeline-company {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
}

.timeline-location {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 400;
    margin: 0 8px;
}

.timeline-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-left: auto;
}

.timeline-description {
    list-style: none;
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-description li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.project-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Fallback when image doesn't exist */
.project-image-container::before {
    content: '\f1c0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.2;
    color: var(--text-tertiary);
    z-index: 0;
}

.project-image-container img {
    position: relative;
    z-index: 1;
}

/* Hide fallback when image exists */
.project-image-container:has(.project-image[src]:not([src=""]))::before {
    display: none;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(93, 173, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay {
    flex-direction: column;
    gap: 12px;
}

.project-overlay i {
    font-size: 64px;
    color: white;
}

.project-overlay span {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.project-card-video {
    cursor: pointer;
}

.project-card-video:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 32px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.project-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.project-link-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 173, 226, 0.3);
}

.project-link-btn i {
    font-size: 24px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.project-date {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.project-description p {
    margin: 0;
    margin-bottom: 16px;
}

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

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

.tag {
    padding: 6px 14px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    display: inline-block;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
}

.skills-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.skills-category:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(93, 173, 226, 0.15);
    transform: translateX(8px);
}

.skills-category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    letter-spacing: 0.5px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    align-items: flex-start;
}

.skill-item {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.skill-item:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.15);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.education-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    position: relative;
}

.education-logo-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.education-logo {
    max-width: 220px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    /* Show original colors - absolutely no filters or color modifications */
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -o-filter: none !important;
    /* Ensure original colors are preserved */
    mix-blend-mode: normal;
}

/* If logo doesn't exist, show placeholder */
.education-logo-container:not(:has(img[src]))::before {
    content: '🏛️';
    font-size: 48px;
    opacity: 0.3;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.education-degree {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.education-gpa {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
}

.education-school {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.education-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.education-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.education-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.education-badge {
    padding: 4px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.education-medals {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(93, 173, 226, 0.05);
    border: 1px solid rgba(93, 173, 226, 0.2);
    border-radius: 12px;
}

.medal-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.medal-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.medal-content {
    flex: 1;
}

.medal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 6px 0;
}

.medal-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.medal-stat {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 8px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(93, 173, 226, 0.2);
    font-style: italic;
}

.education-activities {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.activities-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.activities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.activity-item {
    padding: 6px 14px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}


.education-courses {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.education-courses strong {
    color: var(--text-primary);
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.education-courses ul {
    list-style: none;
    padding-left: 0;
}

.education-courses li {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.education-courses li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Certifications Section */
.certifications-content {
    max-width: 100%;
    width: 100%;
}

.certifications-intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.certification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.certification-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateX(8px);
}

.certification-text {
    flex: 1;
}

.certification-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.certification-provider {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.certification-logo-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.certification-item:hover .certification-logo-container {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.certification-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-content {
    max-width: 100%;
}

.contact-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.contact-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(93, 173, 226, 0.2);
}

.contact-intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 16px;
}

.contact-link:hover {
    padding-left: 16px;
    border-color: var(--accent);
}

.contact-icon {
    font-size: 20px;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.contact-label {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 16px;
    color: var(--text-primary);
    margin-left: auto;
}

.contact-social {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.social-link i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: rgba(93, 173, 226, 0.05);
}

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

/* Assistive Arm Demo Section */
.demo-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.demo-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.demo-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.demo-date {
    font-size: 14px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.demo-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.demo-video-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 700px;
    object-fit: contain;
}

.demo-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    transform: scale(1.2);
    color: var(--accent);
}

.video-player {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 56px;
    }

    .projects-grid {
        gap: 30px;
    }

    .project-with-media {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-media-right {
        position: static;
    }
    
    .project-demo-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .container {
        padding: 0 24px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 0;
    }

    .section-title-with-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    .hero-affiliations {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .affiliation-item {
        width: 160px;
        height: 80px;
        padding: 12px;
    }
    
    .affiliation-logo {
        max-width: 140px;
        max-height: 55px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-container {
        text-align: center;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .certification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .certification-logo-container {
        width: 80px;
        height: 80px;
        align-self: flex-end;
    }

    .certification-name {
        font-size: 18px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-image-container {
        position: static;
        order: -1;
    }

    .contact-image {
        max-width: 100%;
    }

    .hero-visual {
        flex: 1;
        margin-top: 40px;
        gap: 30px;
    }

    .hero-profile-image {
        width: 260px;
        height: 260px;
    }

    .hero-decoration {
        width: 300px;
        height: 300px;
    }

    .hero-affiliations {
        flex-direction: row;
        max-width: 100%;
        gap: 10px;
        margin-top: 30px;
    }
    
    .affiliation-item {
        max-width: 160px;
        padding: 14px;
        flex: 1;
    }
    
    .affiliation-logo {
        max-width: 150px;
        max-height: 50px;
    }
    
    .northeastern-logo {
        max-width: 180px;
        max-height: 60px;
    }

    .experience-timeline {
        padding-left: 24px;
    }

    .timeline-item {
        padding-left: 24px;
    }

    .timeline-marker {
        left: -32px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }


    .section {
        padding: 80px 0;
    }

    .framework-logos-container {
        padding: 20px 0;
    }

    .framework-logo {
        min-width: 120px;
        padding: 15px 30px;
    }

    .framework-logo i {
        font-size: 36px;
    }

    .project-card-single {
        padding: 24px;
    }

    .demo-video-wrapper {
        margin-bottom: 30px;
    }
}

/* Demo Video Featured Section */
.demo-project-featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.demo-video-featured-container {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.demo-video-featured {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.demo-project-info {
    text-align: center;
    max-width: 800px;
}

.demo-project-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.demo-project-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.demo-project-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.demo-project-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Project Layout Styles */
.project-item {
    margin-bottom: 60px;
}

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

.project-demo-item {
    margin-bottom: 70px;
}

/* Mobile-first: one column; desktop gets text + media side-by-side (see min-width rule below) */
.project-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 969px) {
    .project-main-content {
        grid-template-columns: 1fr 420px;
    }
}

/* Lets the media column shrink so inner triptych stays 3-across instead of wrapping */
.project-main-content > .project-media-right {
    min-width: 0;
}

.project-content-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-media-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.project-demo-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: start;
    padding: 32px;
}

.project-demo-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-demo-video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-demo-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: contain;
}

.project-video-container-small {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.project-video-small {
    width: 100%;
    height: auto;
    display: block;
    max-height: 240px;
    object-fit: contain;
}

/* Three MuJoCo demos in one horizontal row */
.project-video-container-small.project-triptych-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
}

.project-video-container-small.project-triptych-container .project-triptych {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    align-items: stretch;
}

.project-video-container-small.project-triptych-container .project-triptych-panel {
    min-width: 0;
    line-height: 0;
    overflow: hidden;
}

.project-video-container-small.project-triptych-container .project-triptych-panel img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.project-pdf-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.project-pdf-embed {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
    background: white;
}

.pdf-full-view {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--bg-primary);
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pdf-full-view:hover {
    background: var(--bg-secondary);
    color: var(--accent-hover);
}

