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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

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

.main-content {
    margin-top: 80px;
    position: relative;
}

.main-content::after {
    content: "";
    display: table;
    clear: both;
}

.text-content {
    /* Text will wrap around the floated image */
}

/* Paragraph spacing for text content */
.text-content p {
    margin-bottom: 20px;
}

/* Header spacing for recommendations page */
.text-content h2 {
    margin-top: 5px;
}

.name {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #000;
}

.first-name {
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 5px 0 20px 0;
    justify-content: center;
}

.social-link {
    color: #666;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #333;
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.social-link svg {
    width: 32px;
    height: 32px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a3737;
    margin-bottom: 30px;
    line-height: 1.4;
}

.description {
    font-size: 1rem;
    line-height: 1.7;
}

.description p {
    margin-bottom: 20px;
}

.cv-link {
    color: #A51C30;
    text-decoration: none;
    font-weight: 500;
}

.cv-link:hover {
    text-decoration: underline;
}

.research-interests {
    list-style: none;
    margin: 25px 0;
}

.research-interests li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.research-interests li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: bold;
}

.media-links {
    list-style: none;
    margin: 25px 0;
}

.media-links li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.media-links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: bold;
}

.media-links a {
    color: #A51C30;
    text-decoration: none;
}

.media-links a:hover {
    text-decoration: underline;
}

blockquote {
    border-left: 4px solid #A51C30;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    background-color: #fafafa;
    padding: 20px;
    border-radius: 4px;
}

blockquote p {
    margin-bottom: 10px !important;
}

.image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    float: right;
    width: 300px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 85px;
}

.profile-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-info p {
    margin-bottom: 5px;
}

.contact-info p:first-child {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-top: 40px;
    }
    
    .name {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .text-content {
        margin-right: 0;
    }
    
    .image-content {
        float: none;
        width: auto;
        margin-left: 0;
        margin-top: 30px;
    }
    
    .main-content::after {
        display: block;
        clear: both;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
}

/* Projects Section */
.projects-section {
    text-align: left;
    border-top: 2px solid #000;
    padding-top: 20px;
}

.projects-section h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Research Section */
.research-section {
    margin-bottom: 70px;
    text-align: left;
}

.research-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 10px 0 0 35px;
}


.research-section p {
    margin-bottom: 20px;
    margin-left: 35px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Email Typewriter */
.email-typewriter {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95em;
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    color: #333;
}

/* Page Links */
.page-link {
    color: #A51C30;
    text-decoration: none;
    font-weight: 500;
}

.page-link:hover {
    text-decoration: underline;
}

/* Page Navigation */
.page-nav {
    margin-bottom: 30px;
}

.page-nav .page-link {
    font-size: 0.95rem;
    display: inline-block;
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-item:hover {
    border-color: #A51C30;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.1);
    transform: translateY(-2px);
}

.article-thumbnail {
    flex-shrink: 0;
}

.article-thumbnail img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.article-content {
    flex: 1;
}

.article-content h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-authors {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-venue {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.pdf-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pdf-btn:hover {
    background-color: #555;
}

/* Media List */
.media-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.media-item {
    padding: 25px;
    background-color: #2d3748;
    border-radius: 8px;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.media-item:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
}

.media-item h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.media-description {
    color: #cbd5e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.media-meta {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Recommendations Page Lists */
.text-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.text-content ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.text-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .projects-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .projects-section h2 {
        margin-bottom: 5px;
    }
    
    .research-section {
        margin-top: 30px;
        padding-top: 5px;
    }
    
    .text-content h2 {
        margin-top: 5px;
    }
    
    .article-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-thumbnail {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .name {
        font-size: 2rem;
        text-align: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .article-item, .media-item {
        padding: 15px;
    }
    
    .text-content h2 {
        margin-top: 0px;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 70px;
    top: -10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 85px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: #000;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 10px;
    width: 4px;
    height: 4px;
    background: #000000;
    border: 3px solid #000000;
    border-radius: 50%;
}

.timeline-date {
    position: absolute;
    left: -70px;
    top: 6px;
    width: 55px;
    text-align: right;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    color: #000000;
    display: inline-block;
}

.timeline-content {
    background: transparent;
}

@media (max-width: 768px) {
    /* Remove timeline styling for mobile */
    .timeline {
        padding-left: 0;
    }
    .timeline::before {
        display: none; /* Hide the vertical line */
    }
    .timeline-item {
        margin-bottom: 40px;
    }
    .timeline-item::before {
        display: none; /* Hide the timeline dots */
    }
    .timeline-date {
        display: none; /* Hide timeline dates on mobile */
    }
    
    /* Reduce spacing around the horizontal line for mobile */
    .projects-section {
        margin-bottom: -30px;
    }
    
    /* Make research section text span full width on mobile */
    .research-section h3 {
        margin-left: 0 !important;
    }
    
    .research-section p {
        margin-left: 0 !important;
    }
}

.kronacash-image {
    display: block;
    max-width: 900px;
    width: 100%;
    margin: 32px auto 32px 60px;
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.kronacash-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 32px 20px 32px 55px;
    max-width: 100%;
}

.kronacash-gallery-image {
    flex: 1;
    max-width: 270px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

@media (max-width: 768px) {
    .kronacash-gallery {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0 20px -3px;
    }
    
    .kronacash-gallery-image {
        max-width: 100%;
    }
}

.particle-tracking-gif {
    display: block;
    max-width: 940px;
    width: 100%;
    margin: 20px auto 5px 40px;
    background: #fff;
} 

.slow-light-gif {
    display: block;
    max-width: 870px;
    width: 100%;
    margin: 20px auto 20px 90px;
}

blockquote {
    margin-left: 40px;
}

.title-with-logos {
    position: relative;
}

.kronohealth-logos {
    position: absolute;
    margin-right: 12px;
    top: 50%;
    right: 0;
    transform: translateY(-60%);
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
}

.kronohealth-logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-right: -10px;
    margin-top: 20px;
}

.cern-logo-container {
    position: absolute;
    top: 50%;
    margin-right: 20px;
    right: 0;
    transform: translateY(-60%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cern-logo {
    height: 64px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-right: -10px;
    margin-top: 20px;
}

.duke-logo {
    height: 80px;
    width: auto;
    margin-right: 5px;
    margin-top: 20px;
}

.duke-logo-container {
    position: absolute;
    top: 50%;
    margin-right: 23px;
    right: 0;
    transform: translateY(-60%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dqc-logo {
    height: 60px;
    margin-right: -12px;
    width: auto;
    margin-top: 20px;
}

.princeton-logo-container {
    position: absolute;
    top: 50%;
    right: 0;
    margin-right: 40px;
    transform: translateY(-60%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.princeton-logo {
    height: 64px;
    width: auto;
    margin-right: -10px;
    margin-top: 20px;
}

.harvard-logo-container {
    position: absolute;
    top: 50%;
    right: 0;
    margin-right: 40px;
    transform: translateY(-60%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.harvard-logo {
    height: 75px;
    width: auto;
    margin-right: -35px;
    margin-top: 45px;
}

.mit-logo-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-55%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mit-logo {
    height: 200px;
    width: auto;
    margin-right: 10px;
    margin-top: 20px;
}

.ibm-logo-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-60%);
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
}

.ibm-logo {
    height: 100px;
    width: auto;
    margin-right: -30px;
    margin-top: 20px;
}

.mitibm-logo {
    height: 90px;
    width: auto;
    margin-right: -10px;
    margin-top: 35px;
}

.image-pair {
    display: flex;
    gap: 20px;
    margin: 10px 10px -20px 20px;
    max-width: 870px;
}

.image-pair img {
    flex: 1;
    max-width: 50%;
    margin-left: 20px;
    height: auto;

}

.image-pair img[alt="Superconducting quantum topology"] {
    object-fit: contain;
    height: 500px;
    margin-left: 50px;
}

.image-pair img[alt="Quantum computer"] {
    height:500px;
    width: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.spot-video {
    display: block;
    max-width: 50%;
    width: 100%;
    height: auto;
    margin: 20px auto 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-pair {
    display: flex;
    gap: 20px;
    margin: 20px auto 20px 150px;
    max-width: 700px;
}

.video-pair .spot-video {
    flex: 1;
    max-width: 50%;
    margin: 0;
}

.spin-locking-gif {
    display: block;
    max-width: 800px;
    width: 100%;
    margin: 20px -10px 20px 110px;
    background: #fff;
}

.benchmarking-video {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 20px auto 20px 230px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.inkwell-logo-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-60%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.inkwell-logo {
    height: 70px;
    width: auto;
    margin-right: -10px;
    margin-top: 30px;
}

.inkwell-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #512b04ff;
    font-size: 2.2rem;
    display: inline-block;
    margin-top: 60px;
    margin-right: -20px;
    vertical-align: middle;
}

.responsive-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 25px 0 0 40px;
}
.responsive-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 99%;
  height: 95%;
}

.NaCs-image {
    display: block;
    max-width: 900px;
    width: 100%;
    margin: 20px auto 0 65px;
    background: #fff;
}

.vacuum-chamber-section {
  margin: 30px 0 30px 70px;
  max-width: 900px;
}

.top-panel {
  margin-bottom: 20px;
}

.vacuum-chamber-video {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin-left: 150px;
}

.bottom-panel {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.chamber-image-left, .chamber-image-right {
  flex: 1;
  max-width: 48%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.chamber-image-left {
  object-fit: cover;
  object-position: center;
  height: 350px;
}

@media (max-width: 768px) {
  .vacuum-chamber-section {
    margin: 20px 0 20px 20px;
  }
  
  .bottom-panel {
    flex-direction: column;
    gap: 15px;
  }
  
  .chamber-image-left, .chamber-image-right {
    max-width: 100%;
  }
  
  /* Mobile logo positioning - must be at end to override desktop styles */
  .title-with-logos {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
  }
  
  .harvard-logo-container {
    position: static !important;
    transform: none !important;
    margin: 0 0 8px 0 !important;
    order: -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    top: auto !important;
    right: auto !important;
  }
  
  .mit-logo-container,
  .ibm-logo-container,
  .princeton-logo-container,
  .duke-logo-container,
  .cern-logo-container,
  .kronohealth-logos,
  .inkwell-logo-container {
    position: static !important;
    transform: none !important;
    margin: 0 0 15px 0 !important;
    order: -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    top: auto !important;
    right: auto !important;
  }
  
  .harvard-logo {
    margin: 0 !important;
    height: 65px !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
  }
  
  .ibm-logo,
  .mitibm-logo {
    margin: 0 !important;
    height: 90px !important;
    margin-top: -15px !important;
    margin-right: 45px !important;
    margin-bottom: -5px !important;
  }
  
  .mit-logo {
    margin: 0 !important;
    height: 170px !important;
    margin-top: -75px !important;
    margin-right: 27px !important;
    margin-bottom: -70px !important;
  }
  
  .princeton-logo {
    margin: 0 !important;
    height: 75px !important;
    margin-top: -15px !important;
    margin-right: 0 !important;
    margin-bottom: -10px !important;
  }
  
  .dqc-logo {
    margin: 0 !important;
    height: 60px !important;
    margin-top: -1px !important;
    margin-right: 0 !important;
    margin-bottom: -3px !important;
  }

  .duke-logo {
    margin: 0 !important;
    height: 90px !important;
    margin-top: -30px !important;
    margin-right: 180px !important;
    margin-bottom: -25px !important;
  }

  .cern-logo {
    margin: 0 !important;
    height: 60px !important;
    margin-top: -20px !important;
    margin-right: 40px !important;
    margin-bottom: -5px !important;
  }
  
  .kronohealth-logo,
  .inkwell-logo {
    margin: 0 !important;
    height: 50px !important;
    margin-top: -15px !important;
    margin-right: 0 !important;
    margin-bottom: -7px !important;
  }
  
  .inkwell-logo-text {
    margin: 0 !important;
    font-size: 1.8rem !important;
    margin-top: -15px !important;
    margin-right: -15px !important;
    margin-bottom: -25px !important;
  }
  
  /* Fix NaCs image and vacuum chamber video for mobile */
  .NaCs-image {
    max-width: 100% !important;
    margin: 20px 0 !important;
    width: 100% !important;
  }
  
  .vacuum-chamber-section {
    margin: 20px 0 !important;
    max-width: 100% !important;
  }
  
  .vacuum-chamber-video {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Fix other research images and videos for mobile */
  .particle-tracking-gif {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px 0 5px 0 !important;
  }
  
  .slow-light-gif,
  .spin-locking-gif {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px 0 !important;
  }
  
  .benchmarking-video,
  .spot-video {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px 0 !important;
  }
  
  .video-pair {
    flex-direction: column !important;
    margin: 20px 0 !important;
    max-width: 100% !important;
  }
  
  .video-pair .spot-video {
    max-width: 100% !important;
    margin: 10px 0 !important;
  }
  
  .image-pair {
    flex-direction: column !important;
    gap: 15px !important;
    margin: 20px 0 !important;
    max-width: 100% !important;
  }
  
  .image-pair img {
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .kronacash-image {
    margin: 20px 0 !important;
    max-width: 100% !important;
  }
  
  .responsive-video-container {
    margin: 20px 0 !important;
  }
  
  /* Fix blockquote margin for mobile */
  blockquote {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Move superconducting topology graph left on mobile */
  .image-pair img[alt="Superconducting quantum topology"] {
    margin-left: -10px !important;
  }
}