@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* =========================================================
   BASE / THEME
   ========================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  text-decoration:none;
  border:none;
  outline:none;
  font-family:"Poppins",sans-serif;
}

:root{
  --bg-color:#000000;
  --second-bg-color:#1e1e1e;
  --main-color:#00bcd4;
  --white-color:#f5f5f5;
  --disables-color:#3c3c3c;

  --section-side-padding:2.5%;
  --timeline-max-width:160rem;
  --date-col-width:12rem;

  --card-border:rgba(255,255,255,.08);
  --card-border-active:rgba(0,188,212,.55);
  --card-glow:0 0 .8rem rgba(0,188,212,.18), 0 0 2.2rem rgba(0,188,212,.10);

  /* Helps anchor-scroll land below the fixed header */
  scroll-padding-top:10rem;
}

html{ font-size:62.5%; }
html,body{ height:100%; }

body{
  color:var(--white-color);
  margin:0;
  min-height:100vh;
  background:var(--bg-color);
}

/* =========================================================
   HEADER (frosted glass)
   ========================================================= */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:2rem 9%;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:.1rem solid rgba(255,255,255,.06);
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:100;
  flex-wrap:wrap;
  row-gap:1rem;
}

.logo{
  font-size:3rem;
  color:var(--white-color);
  font-weight:700;
  white-space:nowrap;
}

nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:2rem;
}

nav a{
  font-size:2rem;
  color:var(--white-color);
  font-weight:500;
  transition:.5s;
  margin:0;
  white-space:nowrap;
}

nav a:hover,
nav a.active{ color:var(--main-color); }

#menu-icon{
  font-size:4rem;
  display:none;
}

/* =========================================================
   SECTIONS (page switch behavior)
   ========================================================= */
section{
  position:absolute;
  width:100%;
  height:100%;
  padding:14rem var(--section-side-padding) 4rem;

  visibility:hidden;
  opacity:0;
  transform:translateY(1.2rem);
  transition: opacity .45s ease, transform .45s ease;

  /* Important: sections are hidden by default */
  overflow:hidden;
  scroll-margin-top:10rem;
}

section.active{
  visibility:visible;
  opacity:1;
  transform:translateY(0);

  /* The active section is the one that scrolls */
  overflow:auto;
}

/* =========================================================
   GAP BETWEEN CARDS (Education + Leadership)
   ========================================================= */
.education,
.leadership{
  display:flex;
  flex-direction:column;
  gap:2.5rem;
}

/* =========================================================
   HOME
   ========================================================= */
.home{
  display:flex;
  align-items:center;
  gap:5rem;
}

.home-detail h1{
  font-size:clamp(3.5rem,10vw,5.5rem);
}

.home-detail h2{
  display:inline-block;
  font-size:3.2rem;
  margin-top:-1rem;
}

.home-detail h2 span{
  position:relative;
  display:inline-block;
  color:transparent;
  -webkit-text-stroke:.07rem var(--main-color);
  animation:display-text 16s linear infinite;
  animation-delay:calc(-4s * var(--i));
}

@keyframes display-text{
  25%,100%{ display:none; }
}

.home-detail h2 span::before{
  content:attr(data-text);
  position:absolute;
  width:0;
  border-right:.2rem solid var(--main-color);
  color:var(--main-color);
  white-space:nowrap;
  overflow:hidden;
  animation:fill-text 4s linear infinite;
}

@keyframes fill-text{
  10%,100%{ width:0; }
  70%,90%{ width:100%; }
}

.home-detail p{
  font-size:1.8rem;
  margin:1rem 0 2.5rem;
  max-width:62rem;
  line-height:1.7;
}

.home-detail .btn-sci{
  display:flex;
  align-items:center;
}

.btn{
  display:inline-block;
  padding:1rem 3rem;
  background:var(--main-color);
  border:.2rem solid var(--main-color);
  border-radius:4rem;
  box-shadow:0 0 1rem var(--main-color);
  font-size:1.6rem;
  color:var(--bg-color);
  font-weight:500;
  transition:.5s;
}

.btn:hover{
  background:transparent;
  color:var(--main-color);
  box-shadow:none;
}

.home-detail .btn-sci .sci{ margin-left:2rem; }

.home-detail .btn-sci .sci a{
  display:inline-flex;
  padding:.8rem;
  border:.2rem solid var(--main-color);
  border-radius:50%;
  font-size:2rem;
  color:var(--main-color);
  margin:0 .8rem;
  transition:.5s;
}

.home-detail .btn-sci .sci a:hover{
  background:var(--main-color);
  color:var(--bg-color);
  box-shadow:0 0 1rem var(--main-color);
}

.home-img .img-box{
  position:relative;
  width:32vw;
  height:32vw;
  border-radius:50%;
  padding:.35rem;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

.home-img .img-box::before,
.home-img .img-box::after{
  content:'';
  position:absolute;
  width:50rem;
  height:50rem;
  background:conic-gradient(transparent,transparent,transparent,var(--main-color));
  transform:rotate(0deg);
  animation:rotate-border 10s linear infinite;
}

.home-img .img-box::after{ animation-delay:-5s; }

@keyframes rotate-border{ 100%{ transform:rotate(360deg); } }

.home-img .img-box .img-item{
  position:relative;
  width:100%;
  height:100%;
  border-radius:50%;
  z-index:1;
  overflow:hidden;
  background:transparent;
}

.home-img .img-box .img-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* =========================================================
   HEADINGS
   ========================================================= */
.heading{
  font-size:4.5rem;
  text-align:center;
  margin-bottom:3rem;
}
.heading span{ color:var(--main-color); }

/* =========================================================
   SUMMARY TEXT + NAV PILLS
   ========================================================= */
.summary-text{
  max-width:var(--timeline-max-width);
  margin:0 auto 1.2rem;
  padding:1.4rem 1.8rem;
  border-radius:1.2rem;
  background:rgba(255,255,255,.03);
  border:.1rem solid rgba(255,255,255,.06);
  font-size:1.8rem;
  line-height:1.7;
  opacity:.95;
}

.summary-nav{
  max-width:var(--timeline-max-width);
  margin:0 auto 2.4rem;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
}

.summary-nav a{
  display:inline-flex;
  align-items:center;
  gap:.8rem;
  padding:.9rem 1.3rem;
  border-radius:999px;
  font-size:1.55rem;
  color:var(--white-color);
  background:rgba(0,188,212,.10);
  border:.12rem solid rgba(0,188,212,.28);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.summary-nav a:hover{
  transform:translateY(-1px);
  background:rgba(0,188,212,.16);
  border-color:rgba(0,188,212,.45);
}

.summary-nav a::before{
  content:"";
  width:.7rem;
  height:.7rem;
  border-radius:50%;
  background:var(--main-color);
  box-shadow:0 0 0 .4rem rgba(0,188,212,.12);
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline{
  max-width:var(--timeline-max-width);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:2.5rem;
}

.timeline-item{
  display:grid;
  grid-template-columns:var(--date-col-width) 3.2rem 1fr;
  gap:2rem;
  align-items:stretch;
  scroll-margin-top:12rem;
}

.timeline-date{
  color:var(--main-color);
  font-size:1.8rem;
  font-weight:600;
  padding-top:.6rem;
}

.timeline-rail{
  position:relative;
  display:flex;
  justify-content:center;
  align-self:stretch;
  min-height:100%;
}

.timeline-rail::before{
  content:"";
  position:absolute;
  top:-1.25rem;
  bottom:-1.25rem;
  width:.35rem;
  border-radius:10rem;
  background:repeating-linear-gradient(
    to bottom,
    rgba(0,188,212,.95) 0,
    rgba(0,188,212,.95) .7rem,
    transparent .7rem,
    transparent 1.6rem
  );
}

.timeline-item:first-child .timeline-rail::before{ top:0; }
.timeline-item:last-child .timeline-rail::before{ bottom:0; }

.timeline-dot{
  width:1.4rem;
  height:1.4rem;
  border-radius:50%;
  margin-top:1.1rem;
  background:var(--main-color);
  box-shadow:0 0 0 .5rem rgba(0,188,212,.15);
}

.timeline-card{
  background:var(--second-bg-color);
  border-radius:1rem;
  padding:2.6rem 3.4rem; /* tuned: tighter than before */
  display:flex;
  flex-direction:column;
  border:.1rem solid var(--card-border);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.timeline-card:hover{
  border-color:var(--card-border-active);
  box-shadow:var(--card-glow);
  transform:translateY(-2px);
}

.timeline-item:hover .timeline-dot{
  box-shadow:0 0 0 .6rem rgba(0,188,212,.22);
}

.timeline-card:target{
  border-color:var(--card-border-active);
  box-shadow:var(--card-glow);
  transform:translateY(-2px);
}

.timeline-card h3{
  font-size:2.6rem;
  margin-bottom:.8rem;
}

.role-line{
  font-size:1.8rem;
  opacity:.95;
  margin-bottom:1rem;
  position:relative;
  padding-left:2rem;
}

.role-line::before{
  content:'';
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:.9rem;
  height:.9rem;
  background:var(--main-color);
  border-radius:50%;
}

.timeline-card .desc{
  font-size:1.8rem;
  line-height:1.7;
}

/* =========================================================
   CARD SPLIT (text left + media right)
   ========================================================= */
.card-split{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:2.4rem;
  align-items:start;
}

.card-left{ min-width:0; }
.card-right{ min-width:0; }

/* =========================================================
   READ MORE / READ LESS (Education + Leadership)
   Goals:
   - Collapsed: show a preview (no scrollbar inside the card)
   - Expanded: remove inner scrollbar, show full content
   - Expanded: hide right media and let text use full card width
   NOTE: scrolling happens on the SECTION, not inside the card
   ========================================================= */

/* Default: collapsed preview (no inner scrolling) */
.card-scroll{
  position:relative;          /* used for fade overlay */
  margin-top:.8rem;
  overflow:hidden;            /* no scrollbars inside the card */
  padding-right:0;            /* keep clean right edge */
  scroll-behavior:smooth;
}

/* Preview heights (tuned per section) */
.education .card-scroll{ max-height: clamp(24rem, 30vh, 36rem); }
.leadership .card-scroll{ max-height: clamp(24rem, 30vh, 38rem); }

/* Bottom fade hint (collapsed only) */
.card-scroll::after{
  content:"";
  position:sticky;
  bottom:0;
  left:0;
  width:100%;
  height:4.5rem;
  display:block;
  pointer-events:none;
  background:linear-gradient(to bottom,
    rgba(30,30,30,0),
    rgba(30,30,30,1)
  );
}

/* Hide the extra content until expanded */
.card-scroll .more{ display:none; }

/* Read more button (one per card in HTML) */
.read-more{
  margin-top:1.1rem;
  align-self:flex-start;
  background:rgba(0,188,212,.12);
  border:.12rem solid rgba(0,188,212,.35);
  color:var(--white-color);
  padding:.75rem 1.2rem;
  border-radius:999px;
  font-size:1.45rem;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.read-more:hover{
  transform:translateY(-1px);
  background:rgba(0,188,212,.18);
  border-color:rgba(0,188,212,.55);
}

/* Expanded: full story, no inner scrollbar */
.timeline-card.expanded .card-scroll{
  max-height:none;
  overflow:visible;     /* IMPORTANT: no scrollbar */
}

.timeline-card.expanded .card-scroll::after{ display:none; }
.timeline-card.expanded .card-scroll .more{ display:block; }

/* Expanded: single column layout (text takes full width) */
.timeline-card.expanded .card-split{
  grid-template-columns:1fr;
  gap:0;
}

.timeline-card.expanded .card-right{ display:none; }

/* Expanded: slightly tighter padding (optional aesthetic tweak) */
.timeline-card.expanded{
  padding:2.4rem 2.2rem;
}

/* Optional: remove role dot indentation in expanded view */
.timeline-card.expanded .role-line{
  padding-left:0;
}
.timeline-card.expanded .role-line::before{
  display:none;
}

/* Story subheadings inside the expanded text */
.story-title{
  margin:1.6rem 0 .6rem;
  font-size:1.7rem;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--main-color);
}

/* Paragraph spacing inside stories */
.desc.intro{ margin-bottom:1.2rem; }
.card-scroll .desc{ margin-bottom:1.1rem; }
.card-scroll .desc:last-child{ margin-bottom:0; }

/* =========================================================
   MINI CAROUSEL
   ========================================================= */
.mini-carousel{
  width:100%;
  overflow:hidden;
  border-radius:1.2rem;
}

.mini-track{
  display:flex;
  transition:transform 550ms cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}

/* Slides (wrapper) take full width */
.mini-track .media-wrapper{
  flex:0 0 100%;
}

/* Media sizing */
.card-media{
  width:100%;
  height:28rem;       /* consistent height for images & videos */
  object-fit:contain; /* images: NO crop */
  display:block;
}

/* Videos can fill more aggressively */
.card-media.video{
  object-fit:cover;
}

/* Wrapper for hover text */
.media-wrapper{
  position:relative;
  width:100%;
  border-radius:12px;
  overflow:hidden;
}

/* Hover overlay */
.media-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  opacity:0;
  display:flex;
  align-items:flex-end;
  padding:12px;
  transition:opacity 0.2s ease;
}

.media-overlay span{
  color:#fff;
  font-size:0.85rem;
  font-weight:500;
}

.media-wrapper:hover .media-overlay{
  opacity:1;
}

/* =========================================================
   RESEARCH LINK PILLS
   ========================================================= */
.paper-links{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:1.2rem;
}

.pill-link{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  font-size:1.5rem;
  padding:.7rem 1.1rem;
  border-radius:99rem;
  background:rgba(0,188,212,.12);
  border:.1rem solid rgba(0,188,212,.25);
  color:var(--white-color);
  transition:.2s;
}

.pill-link:hover{
  background:rgba(0,188,212,.18);
  transform:translateY(-1px);
}

/* =========================================================
   PROJECTS (UNCHANGED)
   ========================================================= */
.portfolio-container{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:3rem;
}

.portfolio-detail{ display:none; }
.portfolio-detail.active{ display:block; }

.portfolio-box .numb{
  font-size:8rem;
  -webkit-text-stroke:.07rem var(--white-color);
  color:transparent;
  line-height:1;
}

.portfolio-box h3{
  font-size:3.5rem;
  margin:.8rem 0 2rem;
}

.portfolio-box p{ font-size:1.8rem; line-height:1.7; }

.portfolio-box .tech{
  margin:2rem 0;
  color:var(--main-color);
  border-bottom:.1rem solid var(--white-color);
  padding-bottom:2rem;
}

.portfolio-box .live-github a{
  position:relative;
  display:inline-flex;
  padding:1.3rem;
  font-size:3rem;
  color:var(--white-color);
  border-radius:50%;
  background:var(--second-bg-color);
  transition:.5s;
}

.portfolio-box .live-github a:hover{ color:var(--main-color); }
.portfolio-box .live-github a:first-child{ margin-right:1.5rem; }

.portfolio-box .live-github a span{
  position:absolute;
  top:-60%;
  left:50%;
  transform:translateX(-50%) scale(.9);
  font-size:1.6rem;
  white-space:nowrap;
  padding:.5rem 1rem;
  border-radius:.6rem;
  pointer-events:none;
  background:var(--white-color);
  color:var(--bg-color);
  opacity:0;
  transition:.2s;
}

.portfolio-box .live-github a:hover span{
  top:-70%;
  opacity:1;
  transform:translateX(-50%) scale(1);
}

/* === PROJECTS: fix cropping === */
/* ===== PROJECTS carousel: robust sliding (fixes last slide clipping) ===== */

.portfolio-box .portfolio-carousel{
  width:100%;
  height:clamp(28rem, 32vw, 45rem);
  border-radius:1rem;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.02);
}

/* Use flex instead of grid so translateX(-100%) works perfectly */
.portfolio-carousel .img-slide{
  display:flex;
  height:100%;
  transition:transform .5s ease;
  will-change:transform;
}

/* Each slide is exactly 100% width */
.portfolio-carousel .img-item{
  flex:0 0 100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;              /* spacing INSIDE slide (instead of gap) */
  box-sizing:border-box;
}

.portfolio-carousel .img-item img{
  width:100%;
  height:100%;
  object-fit:contain;        /* no crop */
  object-position:center;
  border-radius:1rem;
  display:block;
}



.portfolio-box .navigation{
  text-align:right;
  margin-top:2rem;
}

.portfolio-box .navigation button{
  display:inline-flex;
  padding:.4rem;
  background:var(--second-bg-color);
  border:.2rem solid var(--main-color);
  border-radius:.6rem;
  font-size:4rem;
  color:var(--main-color);
  cursor:pointer;
}

.portfolio-box .navigation button.disabled{
  border-color:var(--second-bg-color);
  color:var(--disables-color);
  cursor:not-allowed;
}

.portfolio-box .navigation .arrow-right{ margin-left:1.5rem; }

/* =========================================================
   SKILLS + CERTS
   ========================================================= */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr));
  gap:2rem;
  margin-bottom:3rem;
}

.skills-grid-bottom{ margin-top:3rem; }

.skill-card{
  background:var(--second-bg-color);
  border-radius:1rem;
  padding:2.8rem;
  text-align:center;
}

.skill-card i{
  font-size:5.2rem;
  color:var(--main-color);
  margin-bottom:1rem;
}

.skill-card h4{
  font-size:2rem;
  font-weight:600;
}

/* certificates carousel */
.cert-carousel{
  position:relative;
  max-width:110rem;
  margin:0 auto;
  overflow:hidden;
  border-radius:1rem;
}

.cert-track{
  display:flex;
  transition:transform 550ms cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}

.cert-slide{
  flex:0 0 100%;
  width:100%;
}

.cert-card{
  background:var(--second-bg-color);
  border-radius:1rem;
  padding:2.5rem;
  display:block;
  color:var(--white-color);
  text-align:center;
  transition:transform .2s, box-shadow .2s;
}

.cert-card:hover{
  transform:translateY(-2px);
  box-shadow:0 0 1.2rem rgba(0,188,212,.15);
}

.cert-img{
  width:100%;
  height:44rem;
  object-fit:contain;
  background:rgba(0,0,0,.18);
  border-radius:1rem;
  display:block;
  margin-bottom:1.2rem;
}

.cert-card h4{
  font-size:2.2rem;
  margin-top:1.6rem;
}

.cert-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:4.4rem;
  height:4.4rem;
  border-radius:50%;
  background:rgba(30,30,30,.75);
  border:.14rem solid rgba(0,188,212,.45);
  color:var(--main-color);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.cert-arrow i{ font-size:3.4rem; }

.cert-arrow:hover{
  transform:translateY(-50%) scale(1.04);
  background:rgba(30,30,30,.92);
  border-color:rgba(0,188,212,.75);
}

.cert-prev{ left:1.2rem; }
.cert-next{ right:1.2rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-text{
  max-width:95rem;
  margin:0 auto 2.5rem;
  font-size:1.8rem;
  line-height:1.8;
  text-align:center;
}

.about-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(28rem, 1fr));
  gap:2rem;
  max-width:110rem;
  margin:0 auto;
}

.about-photo{
  height:20rem;
  background:var(--second-bg-color);
  border-radius:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.6rem;
  opacity:.9;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-container{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:3rem;
}

.contact-container .contact-box:first-child{ align-self:center; }

.contact-box h2{ font-size:4.5rem; }
.contact-box p{ font-size:1.8rem; line-height:1.7; }
.contact-box .desc{ margin:1.5rem 0 2.5rem; }

.contact-box .contact-detail{
  display:flex;
  align-items:center;
  margin:2rem 0;
}

.contact-detail i{
  display:inline-flex;
  background:var(--second-bg-color);
  color:var(--main-color);
  font-size:3rem;
  padding:1.2rem;
  border-radius:.6rem;
  margin-right:1.5rem;
}

.contact-detail .detail p:first-child{ color:var(--main-color); }

.contact-box form{
  background:var(--second-bg-color);
  padding:2.5rem 3.5rem 3.5rem;
  border-radius:1rem;
  text-align:center;
}

.contact-box .heading{ font-size:3.5rem; }

.contact-box .field-box{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea{
  padding:1.5rem;
  background:var(--bg-color);
  border:.15rem solid var(--bg-color);
  border-radius:1.6rem;
  color:var(--white-color);
  font-size:1.6rem;
}

.contact-box .field-box textarea{
  grid-column:1/-1;
  height:26rem;
  resize:none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus{
  border-color:var(--main-color);
}

.contact-box .btn{
  margin-top:1.2rem;
  cursor:pointer;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media screen and (max-width:1200px){
  html{ font-size:55%; }
}

@media screen and (max-width:992px){
  header{ padding:2rem 4%; }
  section{ padding:14rem 4% 4rem; }
}

@media screen and (max-width:810px){
  .contact-box .field-box{ grid-template-columns:1fr; }
}

@media screen and (max-width:768px){
  #menu-icon{ display:block; }

  nav{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    padding:1rem 0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(12px);
    border-top:.1rem solid rgba(255,255,255,.06);
    text-align:center;
    display:none;
    flex-direction:column;
    gap:0;
  }

  nav.active{ display:flex; }
  nav a{ display:block; margin:2.2rem 0; }

  .home{
    flex-direction:column-reverse;
    justify-content:center;
    gap:2rem;
  }

  .home-img .img-box{ width:35rem; height:35rem; }

  .portfolio-container,
  .contact-container{
    grid-template-columns:1fr;
  }

  .portfolio-container .portfolio-box:first-child{ order:1; }

  .timeline-item{
    grid-template-columns:1fr;
  }
  .timeline-date{ padding:0; }
  .timeline-rail{ display:none; }

  .card-split{
    grid-template-columns:1fr;
  }

  .card-media{
    height:auto;
    max-height:none;
  }

  .cert-img{ height:30rem; }
}

@media screen and (max-width:600px){
  .home-img .img-box{ width:30rem; height:30rem; }
  .contact-box .field-box{ grid-template-columns:1fr; }
}

@media screen and (max-width:450px){
  html{ font-size:50%; }
}