html {
  scroll-behavior: smooth;
}

 :root {
      --bg-color: #0a0d1c;
      --surface-color: #0B192F;
      --primary-accent: #12f9ce;
      --text-primary: #ccd6f6;
      --text-muted: #8892b0;
      --text-white: #ffffff;
      --text-high: #F2F2F5;
      --bg-start: #37245b;  /* deep purple */
      --bg-end:   #1b2a44;  /* dark navy */
      --page-bg:  linear-gradient(120deg,#37245b 0%,#1b2a44 100%);
    }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Global Styles*/
body, ul, li, a, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 90%;
}

  a {
      color: var(--primary-accent);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }


  header, footer {
      background: #000428;  
      background: -webkit-linear-gradient(to right, #004e92, #000428);  
      background: linear-gradient(to right, #004e92, #000428); 

      padding: 1rem 0;
    }

  #white{
      color: var(--text-white);
    }




/*Navigation */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
 background: #000428;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #004e92, #000428); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
padding: 10px 0;
width: 100%;
}


.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav .logo img {
  display: block;         
  height: 4.5rem;         
  width: auto;            
  object-fit: contain;    
}

.main-nav .nav-links {
  display: flex;
  list-style: none;
}

.main-nav .nav-links li {
  margin: 0 10px;
}

.main-nav .nav-links a {
  color: var(--primary-accent); /* Updated hyperlink text color */
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: auto;
}

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

.main-nav .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.main-nav .hamburger span {
  background-color: var(--primary-accent);
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: all 0.3s ease;

}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary-accent);
  transition: transform 0.3s;
  background-color: var(--surface-color);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}


.footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    color: #12f9ce;
    text-align: center;
  }
  
  .footer h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #12f9ce;
  }
  
  .footer ul {
    list-style: none;
    padding: 0;
  }
  
  .footer a {
    color: #12f9ce;
    text-decoration: none;
  }
  
  .footer a:hover {
    text-decoration: underline;
  }
  
  .footer-logo {
    max-width: 120px;
    margin-top: 0.5rem;
  }

  .footer-column .logo {
  display: flex;
  justify-content: center;  
  align-items: center;      
}

  .footer-column .logo img {
  height: 4.5rem;         
  width: auto;            
  object-fit: contain;   
}
  
  /* Center logo column on small screens */
  .footer-copy {
    display: flex;
    flex-direction: column;
    align-items: start;
  }



/* Hero Section */
  #home {
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100vh;
      padding: 0 1rem;
    }

    #home h4 {
      color: var(--primary-accent);
      font-family: 'Fira Mono', monospace;
      font-size: 1rem;
      margin-bottom: 1rem;
    }

    #home h1 {
      font-size: clamp(2.5rem, 8vw, 4rem);
      font-weight: 800;
      margin: 0 0 1rem 0;
      line-height: 1.2;
    }

    #home p {
      max-width: 600px;
      color: var(--text-muted);
      font-size: 1.2rem;
    }

  
/* About Section */
#about {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 2rem;
      padding: 4rem 1rem;
      background-color: var(--bg-color);
    }

    #about h2 {
      font-size: 2rem;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 1rem;
    }

    #about .numbered-heading {
      color: var(--primary-accent);
      font-family: 'Fira Mono', monospace;
      font-size: 1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
       grid-column: 1 / -1;
 
    }


     #about .numbered-heading::after {
      content: "";
      display: block;
      flex: 1;
      height: 1px;
      background-color: var(--text-muted);
      margin-left: 1rem;
           background: linear-gradient(
    90deg,
    var(--text-muted) 0%,
    var(--text-muted) 45%,
    rgba(255,255,255,0.8) 50%,
    var(--text-muted) 55%,
    var(--text-muted) 100%
  );
  background-size: 200% 100%;
  animation: shine-line 2s infinite ease-in-out;
    }
    
@keyframes shine-line {
  0%   { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

    #about p {
      color: var(--text-primary);
      line-height: 1.6;
    }

    #about img {
      width: 100%;
      max-width: 300px;
      border-radius: 8px;
       border: 4px double #12f9ce;
  transition: transform 0.6s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    }

#about img:hover {
  transform: scale(1.05) rotate(360deg);
  filter: none;
}

/* ====== Experience Section ====== */

#experience {
  padding: 80px 20px;
}

#experience .numbered-heading {
      color: var(--primary-accent);
      font-family: 'Fira Mono', monospace;
      font-size: 1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
    }

     #experience .numbered-heading::after {
      content: "";
      display: block;
      flex: 1;
      height: 1px;
      background-color: var(--text-muted);
      margin-left: 1rem;
           background: linear-gradient(
    90deg,
    var(--text-muted) 0%,
    var(--text-muted) 45%,
    rgba(255,255,255,0.8) 50%,
    var(--text-muted) 55%,
    var(--text-muted) 100%
  );
  background-size: 200% 100%;
  animation: shine-line 2s infinite ease-in-out;
    }
    
@keyframes shine-line {
  0%   { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}


.experience-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 32px;
  align-items: start;
  margin-bottom: 3.5rem;
}

.experience-item .logo {
  width: 100%;
  object-fit: contain;
}

.experience-item .company {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.experience-item .role {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  justify-items: start; 
  text-align: left;  
}

.experience-item .date {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.experience-item .description {
  list-style-type: disc;
  padding-left: 1.25rem;
  line-height: 1.6;
}



/* Education Section */

  #education .numbered-heading {
      color: var(--primary-accent);
      font-family: 'Fira Mono', monospace;
      font-size: 1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
    }

     #education .numbered-heading::after {
      content: "";
      display: block;
      flex: 1;
      height: 1px;
      background-color: var(--text-muted);
      margin-left: 1rem;

       background: linear-gradient(
    90deg,
    var(--text-muted) 0%,
    var(--text-muted) 45%,
    rgba(255,255,255,0.8) 50%,
    var(--text-muted) 55%,
    var(--text-muted) 100%
  );
  background-size: 200% 100%;
  animation: shine-line 2s infinite ease-in-out;
    }

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

.education-section {
    padding: 2rem 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
  }
  
  .education-section h1,h2,h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-high);
  }

  .education-section h4 {
    color: var(--text-primary);
  }
  
  .education-grid {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Skills column is larger */
    gap: 2rem;
  }
  
  .education-column,
  .skills-column {
    background-color: var(--bg-color);
    padding: 1.5rem;
    /* border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  }
  
  .education-column h3,
  .skills-column h3 {
    margin-bottom: 1rem;
    color: var(--text-white);
  }
  
  .education-column ul,
  .skills-column ul {
    list-style: none;
    padding: 0;
  }
  
  .education-column li,
  .skills-column li {
    margin-bottom: 0.5rem;
  }
  
.school {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.school-logo {
  width: 90px;
  height: 70px;
  margin-right: 1rem;
  border-radius: 50%;
}

.school h4 {
  margin: 0;
  color: var(--text-high);
}

.school ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.tabs-wrapper {
  display: grid;
  justify-items: center;
  align-items: start;
  width: 100%;
  gap: 1rem;
}

.skills-grid h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skills-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-grid li {
  margin-bottom: 0.5rem;
}

/* Hide radio buttons */
.tabs-wrapper input[type="radio"] {
  display: none;
}

/* Tab label container */
.tab-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

/* Each label as a button */
.tab-labels label {
  background-color: var(--surface-color);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  
}

/* Active state */
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"],
#tab4:checked ~ .tab-labels label[for="tab4"] {
  background-color: var(--primary-accent);
  color: var(--surface-color);
}

/* Tab content area */
.tab-panels {
  display: grid;
  justify-items: center;
  align-items: center;
  width: 100%;
}

/* Each content panel */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#tab1:checked ~ .tab-panels .tab-panel:nth-of-type(1),
#tab2:checked ~ .tab-panels .tab-panel:nth-of-type(2),
#tab3:checked ~ .tab-panels .tab-panel:nth-of-type(3),
#tab4:checked ~ .tab-panels .tab-panel:nth-of-type(4) {
  display: block;
}

/* Make icons/grid content responsive */
.tab-panel img {
  max-width: 100%;
  height: auto;
}

/* Skills icon layout */
.tab-panel img,
.tab-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Soft skills style */
.soft-skills {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-primary);
}
.soft-skills li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.tab-labels {
  display: grid;
  justify-items: center;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

  .tab-labels label {
    width: 50%;
    text-align: center;
  }
/* Projects Section */
  #portfolio .numbered-heading {
      color: var(--primary-accent);
      font-family: 'Fira Mono', monospace;
      font-size: 1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
    }

     #portfolio .numbered-heading::after {
      content: "";
      display: block;
      flex: 1;
      height: 1px;
      background-color: var(--text-muted);
      margin-left: 1rem;
           background: linear-gradient(
    90deg,
    var(--text-muted) 0%,
    var(--text-muted) 45%,
    rgba(255,255,255,0.8) 50%,
    var(--text-muted) 55%,
    var(--text-muted) 100%
  );
  background-size: 200% 100%;
  animation: shine-line 2s infinite ease-in-out;
    }
    
@keyframes shine-line {
  0%   { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

    #sectionPin {
    height: 200vh;
    overflow: visible;
    view-timeline-name: --section-pin-tl;
    view-timeline-axis: block;
  }

  .pin-wrap-sticky {
    height: 100vh;
    width: 100vw;
    position: sticky;
    top: 0;
    overflow-x: hidden;
  }

  .pin-wrap {
    height: 100vh;
    width: 250vmax;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    will-change: transform;
    animation: linear move forwards;
    animation-timeline: --section-pin-tl;
    animation-range: contain 0% contain 100%;
  }

  @keyframes move {
    to {
      transform: translateX(calc(-100% + 100vw));
    }
  }

/* Fallback for browsers that do NOT support scroll-driven animation or horizontal scroll */
@supports not (animation-timeline: auto) {
  #sectionPin .pin-wrap {
    display: grid !important;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 2rem 0;
    animation: none !important;
    flex-direction: unset !important;
    will-change: unset !important;
    overflow-x: unset !important;
  }

  /* Place first 3 projects in the first row, next 4 in the second row */
  #sectionPin .project:nth-child(1) { grid-row: 1; grid-column: 1; }
  #sectionPin .project:nth-child(2) { grid-row: 1; grid-column: 2; }
  #sectionPin .project:nth-child(3) { grid-row: 1; grid-column: 3; }
  #sectionPin .project:nth-child(4) { grid-row: 2; grid-column: 1; }
  #sectionPin .project:nth-child(5) { grid-row: 2; grid-column: 2; }
  #sectionPin .project:nth-child(6) { grid-row: 2; grid-column: 3; }
  #sectionPin .project:nth-child(7) { grid-row: 3; grid-column: 2; }

  #sectionPin .project {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
  }
}

    .project {
    display: flex;
    flex-direction: column;
    justify-content: center;           /* Vertically center content */
    align-items: center;               /* Horizontally center content */
    background-color: #0B192F;         /* Ensure background is #0B192F */
    width: 500px;
    flex-shrink: 0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    min-height: 380px;                 /* Adjust as needed for your content */
  }
  
  /* Ensure inner content (like h3, tags) is not squished */
  .project h3,
  .project .tags {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .project h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
  }

  .project img {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
  }

  .tag {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'Fira Mono', monospace;
  color: #fff;
  background: rgba(0,0,0,0.2);
  border: 1px solid transparent;
  border-radius: 999px;
  /* gradient border like the button */
  background-clip: padding-box;
  /* extra wrapper for gradient border */
  box-shadow: 0 0 0 1px;
  box-shadow: 0 0 0 1px #7285be inset, 0 0 5px rgba(114,133,190,0.5);
  overflow: hidden;
  animation: glow 3s ease-in-out infinite;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  animation: shine 2s infinite ease-in-out;
}

@keyframes shine {
  0%   { left: -75%; }
  50%  { left: 125%; }
  100% { left: 125%; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(114,133,190,0.4), 0 0 0 1px #7285be inset; }
  50%      { box-shadow: 0 0 15px rgba(114,133,190,0.8), 0 0 0 1px #7285be inset; }
}

  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


    /* contact section */
  #contact .numbered-heading {
      color: var(--primary-accent);
      font-family: 'Fira Mono', monospace;
      font-size: 1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
    }

     #contact .numbered-heading::after {
      content: "";
      display: block;
      flex: 1;
      height: 1px;
      background-color: var(--text-muted);
      margin-left: 1rem;
           background: linear-gradient(
    90deg,
    var(--text-muted) 0%,
    var(--text-muted) 45%,
    rgba(255,255,255,0.8) 50%,
    var(--text-muted) 55%,
    var(--text-muted) 100%
  );
  background-size: 200% 100%;
  animation: shine-line 2s infinite ease-in-out;
    }
    
@keyframes shine-line {
  0%   { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

    #contact {
  padding: 4rem 0;
  text-align: center;
}

.typing {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  width: 1ch;
  animation: blink 0.7s steps(1) infinite;
}

/* blink the cursor */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

#contact .contact-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-white);
}

#contact .contact-form {
  max-width: 600px;
  margin: 0 auto;
}

#contact .form-fieldset {
  border: 2px solid var(--primary-accent);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact .form-legend {
  padding: 0 1rem;
  font-size: 1.25rem;
  color: var(--primary-accent);
}

#contact label {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
}

#contact input,
#contact textarea {
  padding: 1rem;
  background-color: var(--surface-color);
  border: 1px solid var(--primary-accent);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  resize: vertical;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: var(--text-muted);
}

#contact button {
  background-color: var(--primary-accent);
  color: var(--bg-color);
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #52e0c4;
}

#contact .form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}


#contact .g-recaptcha {
  margin-top: 1rem;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* mobile Styles */
@media (max-width: 768px) {
  .main-nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #000428;  
    background: -webkit-linear-gradient(to right, #004e92, #000428);  
    background: linear-gradient(to right, #004e92, #000428); 
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    padding: 1.2rem 0.5rem;
  }

  .main-nav .nav-links li {
    margin: 16px 0;
  }

  .main-nav .hamburger {
    display: flex;
  }
  .main-nav .hamburger span {
    background-color: var(--primary-accent);
  }

  /* when open, slide down */
  .main-nav.menu-open .nav-links {
    max-height: 400px; /* large enough for all links */
  }

  /* animate hamburger → “X” */
  .main-nav .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .main-nav .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .main-nav .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
.about-grid {
    grid-template-columns: 1fr; /* Stack into a single column */
    text-align: center;
  }
 #about.container {
    grid-template-columns: 1fr !important;
    text-align: left;
    width: 100%;
    justify-content: center;
    align-items: center;
    display: grid;
  }
  #about > div:first-child,
  #about .about-text {
    width: 90%;
    text-align: left;
    justify-content: left;
    align-items: left;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
  }

    #about img {
      display: none;
    }

 .experience-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Space between each experience-item */
  }
  .experience-item {
    grid-template-columns: 1fr;
    row-gap: 24px;
    text-align: center;
    justify-items: center;
    margin-bottom: 0; /* gap handles spacing */
  }
  .experience-item .logo {
    width: 80px;
    margin: 0 auto 0.5rem auto;
    display: block;
  }
.experience-item .company{
     text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }


 .experience-item .role {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .experience-item .date {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .experience-item .content {
    max-width: 600px;
    width: 100%;
  }
  .experience-item .description {
    text-align: left;
    margin: 0 auto;
    padding-left: 0;
  }

  .education-grid {
    grid-template-columns: 1fr; /* Stack into a single column */
  }



.skills-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
  }
  .skills-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
  }
  .skills-grid > div {
    width: 90%; 
    max-width: 350px;
    margin-bottom: 1.5rem;
  }

    .tab-labels {
    flex-direction: column;
    align-items: stretch;
  }
  .tab-labels label {
    text-align: center;
    width: 100%;
  }

  .footer-copy {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin: 0.5rem auto 0;
  }

 .tabs {
    flex-direction: column;
  }
  /* Projects Section - Mobile Optimization */

  #sectionPin {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .pin-wrap-sticky {
    position: static;
    height: auto;
    width: 100%;
  }

  .pin-wrap {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    animation: none;
  }

  .project {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 1rem 0.5rem;
  }

  .project img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
#contact .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  #contact .form-fieldset {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
  }

}


/* Styles for iPad dimensions (portrait and landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    font-size: 1.1rem;
  }

  .container {
    max-width: 900px;
    padding: 0 24px;
  }

  #about {
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    padding: 3rem 1rem;
  }

  .education-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 0.5rem;
  }

  .skills-column,
  .education-column {
    padding: 0.1rem;
  }

  .main-nav .logo {
    font-size: 1.2rem;
  }

  .project {
    width: 350px;
    padding: 0.75rem;
  }

   /* Tablet grid for portfolio section */
  #sectionPin .pin-wrap {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 2rem 0;
    animation: none;
    flex-direction: unset;
    will-change: unset;
  }

  /* Place first 3 projects in the first row, next 4 in the second row */
  #sectionPin .project:nth-child(1) { grid-row: 1; grid-column: 1; }
  #sectionPin .project:nth-child(2) { grid-row: 1; grid-column: 2; }
  #sectionPin .project:nth-child(3) { grid-row: 1; grid-column: 3; }
  #sectionPin .project:nth-child(4) { grid-row: 2; grid-column: 1; }
  #sectionPin .project:nth-child(5) { grid-row: 2; grid-column: 2; }
  #sectionPin .project:nth-child(6) { grid-row: 2; grid-column: 3; }
  #sectionPin .project:nth-child(7) { grid-row: 3; grid-column: 2; }

  #sectionPin .project {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
  }

  .footer {
    padding: 1.5rem;
    gap: 1rem;
  }
}






