/* Basic Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #0a0a0a; color: #ffffff; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
header { position: fixed; top: 0; width: 100%; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(10px); z-index: 1000; padding: 20px 0; transition: all 0.3s ease; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 2rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -1px; }
.logo span { color: #eb0028; }
.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a { color: #ffffff; text-decoration: none; font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #eb0028; transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.cta-button { background: linear-gradient(135deg, #eb0028, #ff4a5e); color: white; padding: 12px 24px; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(235, 0, 40, 0.3); }
.burger { display: none; cursor: pointer; }
.hero { height: 100vh; display: flex; align-items: center; position: relative; text-align: center; }
.hero-content { position: relative; z-index: 2; animation: fadeInUp 1s ease-out; }
.hero h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: 1.1; margin-bottom: 30px; background: linear-gradient(135deg, #ffffff, #ff4a5e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.5rem; max-width: 800px; margin: 0 auto 40px; opacity: 0.9; animation: fadeInUp 1s ease-out 0.3s both; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; animation: fadeInUp 1s ease-out 0.6s both; }
.primary-btn, .secondary-btn { padding: 18px 36px; border: 2px solid transparent; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.primary-btn { background: linear-gradient(135deg, #eb0028, #ff4a5e); color: white; }
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(235, 0, 40, 0.4); }
.secondary-btn { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.3); }
.secondary-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.view-all-container { text-align: center; margin-top: 60px; }

/* Floating Elements */
.floating-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.float-element { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, rgba(235, 0, 40, 0.2), rgba(255, 74, 94, 0.2)); animation: float 8s ease-in-out infinite; }
.float-element:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.float-element:nth-child(2) { top: 60%; right: 8%; animation-delay: 3s; width: 80px; height: 80px; }
.float-element:nth-child(3) { bottom: 10%; left: 25%; animation-delay: 5s; width: 40px; height: 40px; }

/* General Section Styling */
.section-title { text-align: center; font-size: 3rem; font-weight: 900; margin-bottom: 20px; background: linear-gradient(135deg, #ffffff, #ff4a5e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { text-align: center; font-size: 1.2rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Event Info Section */
.event-info { padding: 100px 0; background: #111111; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 60px; }
.event-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px; text-align: center; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.event-card:hover { transform: translateY(-10px); border-color: rgba(235, 0, 40, 0.3); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.event-icon { font-size: 3rem; margin-bottom: 20px; line-height: 1; }
.event-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.event-card p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

/* Speakers Section */
.speakers { padding: 100px 0; background: #0a0a0a; }
.speakers-grid, .speakers-grid-full { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.speaker-card { background: #111; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; }
.speaker-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(235, 0, 40, 0.1); border-color: rgba(235, 0, 40, 0.2); }
.speaker-avatar { width: 120px; height: 120px; border-radius: 50%; background-size: cover; background-position: center; margin: 0 auto 20px; border: 4px solid #eb0028; }
.speaker-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.speaker-title { color: rgba(255, 255, 255, 0.7); font-weight: 500; font-size: 0.9rem; }
/* New Page Styles */
.page-header { padding: 140px 0 60px; text-align: center; background: #111; }
.page-header h1 { font-size: 4rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.page-content { padding: 80px 0; }
.content-container { max-width: 900px; }
.content-container h2 { font-size: 2.5rem; color: #eb0028; margin-bottom: 1.5rem; border-left: 4px solid #eb0028; padding-left: 1rem; }
.content-container p, .content-container li { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 1rem; }
.content-container ul { list-style: none; padding-left: 0; }
.content-container li { margin-bottom: 1.5rem; }
.content-divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 60px 0; }
.contact-info li { margin-bottom: 1rem; }
.contact-info a { color: #eb0028; text-decoration: none; }
/* Detailed Schedule Page */
.schedule-list.detailed .time { font-weight: 700; color: #eb0028; font-size: 1.2rem; margin-bottom: 0.5rem; }
.schedule-list.detailed .event { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.schedule-list.detailed .desc { color: rgba(255,255,255,0.7); }
.schedule-list { list-style: none; max-width: 800px; margin: 0 auto; border-left: 2px solid #eb0028; padding-left: 40px; }
.schedule-list li { padding: 25px 0; position: relative; }
.schedule-list li::before { content: ''; position: absolute; left: -49px; top: 35px; width: 16px; height: 16px; border-radius: 50%; background: #eb0028; border: 3px solid #0a0a0a; }

/* Team Page */
.team-department { margin-bottom: 60px; }
.team-department h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.team-department p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.team-member-card { background: #111; border: 1px solid rgba(255,255,255,0.1); padding: 20px; text-align: center; border-radius: 10px; }
.team-member-avatar { width: 80px; height: 80px; border-radius: 50%; background: #333; margin: 0 auto 1rem; }
.team-member-card h3 { font-size: 1.1rem; }

/* Footer */
footer { background: #0a0a0a; padding: 60px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: #eb0028; margin-bottom: 20px; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.7); text-decoration: none; line-height: 1.6; transition: color 0.3s ease; }
.footer-section a:hover { color: #eb0028; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }

/* Footer */
footer { background: #0a0a0a; padding: 60px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: #eb0028; margin-bottom: 20px; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.7); text-decoration: none; line-height: 1.6; transition: color 0.3s ease; }
.footer-section a:hover { color: #eb0028; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }


.page-content .primary-btn {
    margin-top: 20px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .cta-button { display: none; }
    .burger { display: block; }
    .hero h1, .page-header h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
}


.speaker-avatar {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    height: auto;
}

.speaker-avatar img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.speaker-avatar img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: none;
}



/* Speaker-specific adjustments */
.speaker-avatar img[alt="Dr. Milan LaBrey"] {
    object-position: center 2%; /* push down */
    transform: scale(0.95);      /* zoom out slightly */
}

.speaker-avatar img[alt="Dr. Mohammed Al-Obaydee"] {
    object-position: center 5%; /* push down */
}

.speaker-avatar img[alt="Assoc. Prof. Ts. Dr. Tan Chin Ike"] {
    object-position: center 5%; /* push down */
}

.speaker-avatar img[alt="Zhao Xiang Teh"] {
    object-position: center 5%; /* push down */
}

.speaker-avatar img[alt="Suresh Sankaran Srinivasan"] {
    object-position: center 5%; /* push down */
}

.speaker-avatar img[alt="Prashasth Baliga"] {
    object-position: center 5%; /* push down */
    transform: scale(0.95);      /* zoom out slightly */
}

/* Speakers: responsive, consistent image frames */
.speakers-grid,
.speakers-grid-full{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.speaker-card{
  background:#111;
  border:1px solid rgba(255,255,255,.1);
  border-radius:20px;
  padding:30px;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position:relative;
  overflow:hidden;
}

.speaker-card:hover{
  transform:translateY(-5px);
  box-shadow:0 15px 40px rgba(235,0,40,.1);
  border-color:rgba(235,0,40,.2);
}

/* Use aspect-ratio on the frame so images scale cleanly on mobile */
.speaker-avatar{
  width:100%;
  aspect-ratio:16/10;
  border-radius:0;
  overflow:hidden;
}

.speaker-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border:0;
  border-radius:0;
}

/* Taller crop on small screens for better composition */
@media (max-width: 768px){
  .speaker-avatar{aspect-ratio:4/5}
}

/* Speaker-specific nudges */
.speaker-avatar img[alt="Dr. Milan LaBrey"]{
  object-position:center 2%;
  transform:scale(.95);
}

.speaker-avatar img[alt="Dr. Mohammed Al-Obaydee"]{
  object-position:center 5%;
}

.speaker-avatar img[alt="Assoc. Prof. Ts. Dr. Tan Chin Ike"]{
  object-position:center 5%;
}

.speaker-avatar img[alt="Zhao Xiang Teh"]{
  object-position:center 5%;
}

.speaker-avatar img[alt="Suresh Sankaran Srinivasan"]{
  object-position:center 5%;
}

.speaker-avatar img[alt="Prashasth Baliga"]{
  object-position:center 5%;
  transform:scale(.95);
}

/* Speaker Cards - Grid */
.speakers-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Card Container */
.speaker-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(235,0,40,0.1);
  border-color: rgba(235,0,40,0.2);
}

/* Image Wrapper */
.speaker-avatar {
  width: 100%;
  aspect-ratio: 16 / 10;   /* keeps a wide ratio on desktop */
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 1rem;
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  border: none;
}

/* On small screens, use portrait-ish ratio */
@media (max-width: 768px) {
  .speaker-avatar {
    aspect-ratio: 4 / 5;
  }
}

<style>
  .speakers-grid-full{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
  }

  .speaker-card{
    background:#111;
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    padding:30px;
    text-align:center;
    transition:all .3s ease;
    overflow:hidden;
  }
  .speaker-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(235,0,40,.1);
    border-color:rgba(235,0,40,.2);
  }

  .speaker-avatar{
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    border-radius:0;
    margin-bottom:1rem;
  }
  .speaker-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border:0;
    border-radius:0;
    display:block;
  }

  @media (max-width:768px){
    .speaker-avatar{aspect-ratio:4/5}
  }

  .speaker-avatar img[alt="Dr. Milan LaBrey"]{
    object-position:center 2%;
    transform:scale(.95);
  }
  .speaker-avatar img[alt="Dr. Mohammed Al-Obaydee"]{
    object-position:center 5%;
  }
  .speaker-avatar img[alt="Assoc. Prof. Ts. Dr. Tan Chin Ike"]{
    object-position:center 5%;
  }
  .speaker-avatar img[alt="Zhao Xiang Teh"]{
    object-position:center 5%;
  }
  .speaker-avatar img[alt="Suresh Sankaran Srinivasan"]{
    object-position:center 5%;
  }
  .speaker-avatar img[alt="Prashasth Baliga"]{
    object-position:center 5%;
    transform:scale(.95);
  }
</style>






/* Mobile Navigation - Complete Fix */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        transition: right 0.3s ease;
        z-index: 999;
        display: flex !important;
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: white;
    }
    
    .burger {
        display: block !important;
        z-index: 1001;
        cursor: pointer;
    }
    
    .burger div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.toggle .line2 {
        opacity: 0;
    }
    
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    header .cta-button {
        display: none;
    }
}