/* ===== Theme ===== */
:root{
  --bg:#e5e5e5;
  --panel:#efefef;
  --line:#cfcfcf;
  --text:#1f1f1f;
  --muted:#6a6a6a;
  --brand:#0c3fa1;
  --accent:#0b65c2;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* ===== Layout ===== */
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:260px;
  background:var(--panel);
  border-right:1px solid var(--line);
  padding:28px 20px;
}
.main{ margin-left:260px; padding:24px 0 0; }

/* ===== Sidebar brand ===== */
.brand-lines span{
  display:block; font-weight:800; letter-spacing:6px;
  color:var(--brand); font-size:28px; line-height:1.05;
}
.tagline{ margin-top:8px; color:var(--muted); font-size:14px; }

/* ===== Side nav ===== */
.sidenav{ margin-top:26px; }
.sidenav a{
  display:block; padding:12px 0; color:var(--text); text-decoration:none;
  border-top:1px solid var(--line);
}
.sidenav a:last-child{ border-bottom:1px solid var(--line); }
.sidenav a:hover{ color:var(--accent); }
.sidenav a.active{ color:var(--accent); font-weight:600; }

/* ===== Slider (index) ===== */
.slider{
  position:relative;
  width:min(1120px, calc(100vw - 320px));
  margin:0 auto; background:#000; overflow:hidden;
  aspect-ratio:16/9; box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.slides{ width:100%; height:100%; position:relative; }
.slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .35s ease;
}
.slide.current{ opacity:1; }
.nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.75); border:1px solid var(--line);
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; color:#222;
}
.nav-btn:hover{ background:#fff; }
.prev{ left:14px; } .next{ right:14px; }

/* Thumbnails */
.thumbs{
  width:min(1120px, calc(100vw - 320px));
  margin:14px auto 0; display:flex; gap:14px; align-items:center;
  overflow-x:auto; padding:0 6px 8px;
}
.thumb{ border:0; padding:0; background:none; cursor:pointer; flex:0 0 auto; }
.thumb img{
  display:block; width:140px; height:90px; object-fit:cover;
  border:1px solid var(--line); box-shadow:0 3px 8px rgba(0,0,0,.12);
}
.thumb.current img{ outline:3px solid var(--accent); outline-offset:2px; }

/* ===== Footer ===== */
.site-footer {
  max-width: 1120px;       /* keep width capped */
  width: 100%;             /* let it span naturally */
  margin: 22px auto 24px;  /* center horizontally */
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.footer-socials {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.icon {
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f7f7f7;
  border: 1px solid var(--line);
}
.icon:hover {
  background: #fff;
  color: var(--accent);
}

/* Bottom-right tiny icons */
.corner-icons {
  position: fixed;
  right: 22px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 4;
}
.corner-icons .icon {
  width: 26px;
  height: 26px;
  background: #fff;
}


/* ===== Page titles ===== */
.page-title{
  text-align:center; letter-spacing:6px; text-transform:uppercase;
  font-size:38px; margin:6px 0 10px; color:var(--brand);
}

/* ===== Contact page ===== */
.contact-wrap{
  width:min(900px, calc(100vw - 340px));
  margin:0 auto 28px; padding:8px 16px;
}
.contact-line{ text-align:center; margin:0 0 10px; color:var(--text); }
.contact-line .divider{ margin:0 10px; color:var(--muted); }
.contact-socials{ display:flex; gap:12px; justify-content:center; margin:6px 0 18px; }
.contact-socials .icon{ width:30px; height:30px; background:#f7f7f7; }
.card{
  background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:18px; margin:16px 0; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.card h2{ margin:0 0 10px; font-size:18px; letter-spacing:1px; color:var(--text); }

/* Forms */
.form{ max-width:720px; margin:0 auto; }
.form input, .form textarea, .form select{
  width:100%; padding:12px 14px; margin:8px 0 12px;
  border:1px solid var(--line); border-radius:6px; background:#fff;
  font-size:15px; outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form textarea{ min-height:140px; resize:vertical; }
.form input:focus, .form textarea:focus, .form select:focus{
  border-color:var(--accent); box-shadow:0 0 0 3px rgba(11,101,194,.12);
}
.form button{
  display:block; margin:8px auto 0; padding:12px 28px;
  background:#000; color:#fff; border:0; border-radius:8px; cursor:pointer;
}
.form button:hover{ opacity:.92; }
.form-note{ margin:6px 0 0; font-size:12px; color:var(--muted); text-align:center; }
.form-msg{ margin:10px 0 0; font-size:14px; text-align:center; color:var(--accent); }

/* ===== About page ===== */
.about-wrap{
  width:min(1120px, calc(100vw - 320px));
  margin:0 auto 40px; padding:8px 16px;
}
.about-content{ display:flex; gap:28px; align-items:flex-start; }
.about-img{ flex:0 0 280px; border-radius:8px; box-shadow:0 6px 16px rgba(0,0,0,.12); }
.about-text{ flex:1; }
.about-text p{ margin:0 0 16px; font-size:16px; line-height:1.7; }
.about-wrap .page-title{ text-align:left; margin-bottom:24px; }
@media(max-width:820px){
  .about-content{ flex-direction:column; }
  .about-img{ max-width:360px; margin:0 auto; }
}
/* About page photo */
.about-img {
  width: 250px;       /* fixed width */
  height: 250px;      /* fixed height */
  object-fit: cover;  /* crop to fit box without distortion */
  border-radius: 8px; /* optional: rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-right: 24px; /* space between photo and text */
}


/* ===== Interests page ===== */
.interests-wrap{ width:min(1120px, calc(100vw - 320px)); margin:0 auto 40px; padding:8px 16px; }
.interests-gallery{ column-count:3; column-gap:16px; margin-bottom:32px; }
.interests-gallery img{ width:100%; margin-bottom:16px; border-radius:8px; display:block; box-shadow:0 4px 10px rgba(0,0,0,.12); }
@media(max-width:1000px){ .interests-gallery{ column-count:2; } }
@media(max-width:600px){ .interests-gallery{ column-count:1; } }
.interests-text h2{ margin-top:0; font-size:20px; color:var(--brand); letter-spacing:1px; }
.interests-text p{ margin:0 0 16px; font-size:16px; line-height:1.7; }

.interests-video {
  text-align: center;   /* center heading + video */
  margin: 30px 0;
}

.interests-video video {
  max-width: 600px;     /* cap the size */
  width: 80%;           /* scale for smaller screens */
  height: auto;         /* keep proportions */
  border-radius: 10px;  /* optional: rounded corners */
}


/* Lightbox */
.lightbox{ 
  display:flex; 
  position:fixed; 
  inset:0; 
  background:rgba(255,255,255,0.85);
  justify-content:center; 
  align-items:center; 
  z-index:9999;
  opacity:0; 
  pointer-events:none; 
  transition:opacity .35s ease; 
}
.lightbox.show{ 
  opacity:1; 
  pointer-events:auto; 
}
.lightbox-content{ 
  max-width:90%; 
  max-height:80%; 
  border-radius:6px; 
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
  transform:scale(0.97); 
  transition:transform .35s ease; 
}
.lightbox.show .lightbox-content{ 
  transform:scale(1); 
}

/* Heart button */
.heart-btn{ 
  position:absolute; 
  top:20px; 
  left:30px; 
  font-size:28px; 
  background:none; 
  border:none; 
  cursor:pointer; 
  color:#444; 
  transition:color .2s; 
}
.heart-btn.active{ 
  color:var(--accent); 
}

/* Close button (X) */
.lightbox .close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:2.5rem;
  line-height:1;
  font-weight:700;
  color:#000;
  cursor:pointer;
  user-select:none;
  z-index:1002;
  transition:color .2s;
}
.lightbox .close:hover{ color:#e60000; }

/* Prev / Next arrows */
.lightbox .prev,
.lightbox .next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:50px;
  height:50px;
  border-radius:50%;
  font-size:2.4rem;
  font-weight:700;
  color:#000;
  background:rgba(255,255,255,0.75);
  cursor:pointer;
  user-select:none;
  z-index:1001;
  transition:background .25s, color .25s;
}
.lightbox .prev{ left:20px; }
.lightbox .next{ right:20px; }

.lightbox .prev:hover,
.lightbox .next:hover{
  background:rgba(0,0,0,0.75);
  color:#fff;
}


/* ===== Resume ===== */
.resume-wrap{ width:min(900px, calc(100vw - 340px)); margin:0 auto 40px; padding:8px 16px; }
.resume-section{ margin-bottom:40px; }
.resume-section h2{ margin-bottom:20px; font-size:20px; color:var(--brand); border-bottom:1px solid var(--line); padding-bottom:6px; }
.timeline{ border-left:2px solid var(--line); padding-left:20px; margin-left:10px; }
.timeline-item{ position:relative; margin-bottom:28px; display:flex; gap:16px; }
.timeline-item::before{ content:""; position:absolute; left:-31px; top:8px; width:12px; height:12px; background:var(--accent); border-radius:50%; }
.timeline-logo img{ width:50px; height:50px; border-radius:6px; object-fit:cover; }
.timeline-content h3{ margin:0 0 6px; font-size:17px; color:var(--text); }
.timeline-dates{ font-size:13px; color:var(--muted); margin-bottom:6px; }
.skills-list{ list-style:none; display:flex; flex-wrap:wrap; gap:10px 18px; padding:0; margin:0; }
.skills-list li{ background:#fff; border:1px solid var(--line); border-radius:6px; padding:6px 12px; font-size:14px; }



/* ===== Portfolio ===== */
.portfolio-wrap{ width:min(1100px, calc(100vw - 340px)); margin:0 auto 40px; padding:8px 16px; }
.portfolio-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.project-card{ perspective:1000px; height:320px; }
.card-inner{ position:relative; width:100%; height:100%; transition:transform 0.6s; transform-style:preserve-3d; border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.project-card:hover .card-inner{ transform:rotateY(180deg); }
.card-front, .card-back{ position:absolute; inset:0; backface-visibility:hidden; border-radius:10px; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:16px; text-align:center; }
.card-front img{ width:100%; height:200px; object-fit:cover; border-radius:6px; margin-bottom:10px; }
.card-front h3{ margin:0; font-size:16px; color:var(--brand); }
.card-back{ transform:rotateY(180deg); justify-content:flex-start; padding:20px; }
.card-back p{ font-size:14px; margin-bottom:12px; color:var(--text); }
.tags span{ display:inline-block; background:#f7f7f7; border:1px solid var(--line); border-radius:6px; font-size:12px; padding:4px 8px; margin:0 6px 6px 0; color:var(--muted); }
.btn{ display:inline-block; margin-top:auto; background:var(--accent); color:#fff; padding:8px 14px; border-radius:6px; text-decoration:none; font-size:13px; }
.btn:hover{ background:#084b96; }
.github-cta{ text-align:center; margin-top:36px; font-size:15px; }
.github-cta a{ color:var(--accent); font-weight:600; }

/* ===== Responsive ===== */

/* Default hidden for mobile nav */
.mobile-header { display: none; }
.mobile-menu { display: none; }   /* add this */

/* Mobile overrides */
@media (max-width: 900px){
  .sidebar { position: static; width: 100%; }
  .main { margin: 0; }
  .slider, .thumbs, .site-footer { width: 100%; }
}

@media (max-width: 768px){
  .sidebar { display: none; }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .hamburger {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
  }

  /* Smooth slide + fade for mobile nav */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;     /* stays pinned to the viewport */
    top: 60px;           /* same as your mobile-header height */
    left: 0;
    width: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    z-index: 999;        /* make sure it stays on top */
  }

  .mobile-menu.show {
    max-height: 400px; /* adjust as needed */
    opacity: 1;
  }

  .mobile-menu a {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
  }

  .mobile-menu a:hover {
    background: #fff;
    color: var(--accent);
  }

  /* Layout fixes */
  .main { margin: 0; padding: 18px 14px; width: 100%; }
  .resume-wrap, .portfolio-wrap, .interests-wrap, .about-wrap, .contact-wrap {
    width: 100%; margin: 0 auto; padding: 0 10px;
  }
  .page-title { font-size: 28px; letter-spacing: 4px; text-align: center; }

  /* Mobile stacking */
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-content { flex-direction: column; }
  .about-img { max-width: 360px; margin: 0 auto 16px; }
  .about-text { text-align: center; }
  .interests-gallery { column-count: 2; gap: 10px; }
}

@media (max-width: 600px){
  .interests-gallery { column-count: 1; }
}

.solarwind-showcase {
  margin-top: 3rem;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.solarwind-showcase h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.solarwind-showcase p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.embed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.embed-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.embed-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  max-width: 90%;
}

/* Responsive layout for mobile */
@media (max-width: 800px) {
  .embed-grid {
    grid-template-columns: 1fr;
  }
}


.research-section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.embed-container {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.figure-placeholder {
  text-align: center;
  margin: 2rem 0;
}

.figure-placeholder img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.caption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.5rem;
}

.book-section {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  background: var(--card-bg, #fafafa);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.book-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #222);
}

.book-section p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-secondary, #444);
}

.book-btn {
  display: inline-block;
  background-color: #0077cc;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.book-btn:hover {
  background-color: #005fa3;
}


/* End of style.css */