:root {
  /* Purples */
  --purple-dark: #2d0e44;
  --purple-mid: #481377;
  --purple-light: #9656ce;
  --purple-highlight: #701eb8;

  /* Accents */
  --pink-hot: #ff53d4;
  --pink-deep: #b81e9c;
  --pink-highlight: #ff40dc8c;

  /* Neutrals */
  --lavender-white: #f5ebff;
  --frosted: rgba(255,255,255,0.65);

  /* Shadows */
  --shadow-soft: rgba(40, 0, 70, 0.25);

  /* Text */
  --text-dark: #1b0a2e;
  --text-heading: #2d0e44;
  --text-light: #e7d6ff;
}
/* -------- RESET & BACKGROUND -------- */
body {
 margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  height: 100vh;

  background: linear-gradient(90deg, #9656ce, #5d288b, #481377, #9656ce, #5d288b);
  background-size: 300% 1000%; /* make gradient wider than screen */
  animation: unevenGradient 20s ease-in-out infinite alternate;
}

a {
  color: var(--pink-hot);
  font-weight: bold;
}

a :visited {
  color: var(--pink-deep);
  font-weight: bold;
}

@keyframes unevenGradient {
  0% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 100% 0%;
  }
}

/* -------- HEADER -------- */
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  background: var(--purple-mid);
  color:#fff;
  border-radius:0 0 15px 15px;
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
  position:sticky;
  top:0;
  z-index:10;
}
.site-header h1{
  font-size:28px;
  font-weight:700;
  text-shadow:1px 1px 4px rgba(0,0,0,0.3);
}

.site-header nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
}

.site-header nav a{
  margin-left:0;
  padding:6px 10px;
  border-radius:6px;
  line-height:1;
  text-decoration:none;
  color: var(--lavender-white);
  font-weight:600;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}
.site-header nav a:hover{
  text-shadow:1px 1px 3px rgba(0,0,0,0.3);
  transform: scale(1.12);
  color: var(--pink-hot);
}

/* -------- SECTIONS -------- */
.section{
  padding:60px 20px;
  max-width:1000px;
  margin:auto;
  background: var(--frosted);
  color: var(--text-dark);
  border-radius:15px;
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
  margin-bottom:40px;
}
.section h2{
  font-size:32px;
  margin-bottom:20px;
  color: var(--purple-mid);
  text-transform:uppercase;
  letter-spacing:1px;
  text-shadow:1px 1px 3px rgba(0,0,0,0.2);
}
.section p{
  max-width:700px;
  font-size:16px;
  color: var(--text-dark);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 20px; /* space between image and text */
}

.profile-pic {
  width: 200px;          /* adjust size */
  height: 200px;         /* keep it square for a perfect circle */
  border-radius: 50%;    /* makes it circular */
  object-fit: cover;     /* ensures image fills circle without distortion */
  border: 20px ridge  #481377; /* optional colored border */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

/* -------- ACCORDION -------- */
.accordion-item{
  margin-bottom:10px;
  border-radius:10px;
  overflow:hidden;
}
.accordion-header{
  width:100%;
  background: linear-gradient(90deg, var(--purple-mid), var(--purple-highlight));
  color: var(--lavender-white);
  border:none;
  padding:16px 20px;
  text-align:left;
  font-size:20px;
  font-weight:600;
  cursor:pointer;
  outline:none;
  transition: 0.01ms;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  border-radius:10px;
}
.accordion-header:hover{
  background: linear-gradient(90deg, var(--purple-light), var(--purple-highlight));
}
.accordion-panel{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease;
  margin-bottom: 10px;
}
.accordion-panel .media-grid{
  padding:15px 0;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
  gap:20px;
  padding: 20px; /* extra buffer so hovered images don’t clip */
  overflow: visible; /* ensures scaled images don’t get cut */
}

#modal .media-item:hover {
  transform: none !important;
  box-shadow: none !important;
  cursor: default;
}

.accordion-toggle {
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.accordion-item.active .accordion-toggle {
  transform: rotate(0deg);
}

.media-item{
  width: 100%;
  height: 220px; /* uniform tile height */
  object-fit: contain; /* fits artwork without cropping */
  border-radius: 12px;
  padding: 10px; /* adds space inside so tall images don’t touch edges */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.accordion-text {
  margin: 15px 0;
  font-size: 15px;
  line-height: 1.6;
}

.accordion-link {
  display: inline-block;
  margin-bottom: 15px;
  color: #547952;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.accordion-link:hover {
  color: #78ae75;
  text-decoration: underline;
}

.accordion-list {
    margin-top: 10px;
    padding-left: 20px;
    color:#1a1a1a;
}

.accordion-button {
  display: block;
  margin: 15px 0;
  padding: 10px 18px;
  min-width: min-content;
  max-width: 190px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-highlight));
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.accordion-button:hover {
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.media-item:hover{
  transform:scale(1.05);
  box-shadow:0 8px 20px rgba(0,0,0,0.3);
}

/* -------- MODAL VIEWER -------- */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  padding:20px;
  z-index:100;
}
.modal.show{display:flex;}
.modal-content{
  background:#e6f7e6;
  padding:20px;
  border-radius:15px;
  max-width:90%;
  max-height:90%;
  overflow:auto;
  position:relative;
  box-shadow:0 8px 25px rgba(0,0,0,0.4);
}

.modal-content img,
.modal-content iframe {
  max-width: 90vw;   /* never wider than 90% of viewport width */
  max-height: 80vh;  /* never taller than 80% of viewport height */
  width: auto;       /* keep natural width if smaller */
  height: auto;      /* keep natural height if smaller */
  display: block;
  margin: 0 auto;    /* center inside modal */
  border-radius: 12px;
  object-fit: contain; /* maintain aspect ratio without cropping */
}

.close{
  position:absolute;
  top:10px;
  right:15px;
  font-size:32px;
  font-weight:700;
  color:#333;
  cursor:pointer;
}

.file-list{margin-top:20px;}
.file-row{
  padding:12px;
  background:linear-gradient(90deg, #b7f2b0, #5ec36b);
  margin-bottom:10px;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#fff;
  font-weight:600;
  transition:0.3s;
}
.file-row:hover{
  transform:scale(1.02);
  box-shadow:0 8px 20px rgba(0,0,0,0.3);
}

.highlight {
  background: var(--pink-highlight);
  color: var(--purple-dark);
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.highlight:hover {
  background: rgba(255, 83, 212, 0.35);
}


.skills-overview {
  padding: 28px 22px;
  margin-bottom: 32px;
  background: var(--frosted);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(50,0,80,0.18);
}

.skills-overview h3 {
  color: #3c2064;
  margin-bottom: 12px;
}

.skills-list {
  list-style:none;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
  padding:0;
}


.skill {
  padding:14px 16px;
  border-radius:12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(40,0,80,0.22);
}

.skill-name {
  font-weight:700;
  color: var(--purple-dark);
}

.skill-projects {
  font-size:13px;
  color: var(--purple-mid);
  opacity:0.85;
}

.skill-courses {
  font-size: 13px;
  font-weight: 600;
  color: #ff53d4; 
  opacity: 0.9;
}

.pink {
  color: #ff53d4; 
}


body {
  min-height: 100vh;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    position:relative;
  }

  .site-header nav a{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    width: 100%;
    text-align: center;
  }

  .site-header nav a {
    margin-left: 0;
  }

  .about-content {
    flex-direction: column;   
    align-items: center;      
    text-align: center;       
    gap: 20px;               
    padding: 8px 12px;  
  }

  .about-content img.profile-pic,
  .profile-pic {
    margin: 0 auto;            
    width: 180px;             
    height: 180px;
    border-width: 14px;       
  }

  .about-content p {
    max-width: 100%;           
    box-sizing: border-box;
    padding: 0 6px;            
  }

  .section {
    padding: 40px 18px;   
  } 

  .about-content, .about-content * {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }
}   

@media (max-width: 600px) {
  .about-content {
    gap: 14px;
  }

  .about-content img.profile-pic,
  .profile-pic {
    width: 140px;
    height: 140px;
    border-width: 12px;
    transition: transform 0.2s ease;
  } 

  .profile-pic:hover { transform: none; } 

  .about-content p {
    font-size: 15px;
    line-height: 1.5;
    padding: 0 10px;
  }

  
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header nav a {
    margin-left: 10px;
    font-size: 14px;
  }
}

.skills-grid,
.skills-section .grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 2rem !important;
  width: 100%;
}
