* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

  body, html {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #222;
    color: #fff;
  }

  .container {
    display: flex;
    align-items: center; /* vertically center content */
    justify-content: space-between;
    height: 100vh;
    padding: 0 3rem;
  }

  .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top:100px;
    padding-bottom: 30px;
    padding-left: 60px;
    margin-left:1rem;

  }

  .left h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
  }

  .left h2 {
    font-size: 1.5em;
    color: #ccc;
    margin-top:10px;
  }

  .social-links {
      display: flex;
      gap: 30px;
    }

    .social-links a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 70px;
      margin-top: 2rem;
      height: 70px;
      border: 2px solid #cdd5da; /* border color */
      border-radius: 50%;
      color: #cdd5da; /* icon color */
      font-size: 32px;
      transition: 0.3s ease;
    }

    .social-links a:hover {
      background-color: #cdd5da;
      color: #2d3b41;
      transform: scale(1.1);
    }

  .resume-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ccc; /* outline color */
    color: #ccc;
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    }

  .resume-button:hover {
    background-color: #7777;
    transform: translateY(-2px);
  }


  #viewer-container {
    flex: 1;
    height: 80vh; /* adjust as needed */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  canvas {
    width: 100%;
    height: 100%;
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(34, 34, 34, 0.6);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  body.loaded .navbar {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
  } 



  /* Logo */
  .logo {
    width: 32px;
    height: auto;
  }

  /* Hamburger toggle (hidden on desktop) */
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle .hamburger {
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
  }
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
  }
  .nav-toggle .hamburger::before { top: -8px; }
  .nav-toggle .hamburger::after  { top:  8px; }

  /* 2.2 Desktop menu */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2em;
    margin-right:auto;
    padding-left:12%;
  }
  .nav-links .menu {
    display: flex;
    gap: 3em;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    position: relative;
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.25em 0;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: #ccc;
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  .nav-links a.active {
    color: #7abaff;
  }

  /* Social icons */
  .socialmedia {
    display: flex;
    gap: 1em;
    margin-left:90%;
  }

  #interaction-prompt {
    position: absolute;
    bottom: 60px; /* you can tweak this */
    left: 32%;
    transform: translateX(-50%);
    background: rgba(50, 50, 50, 0.8);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    pointer-events: none;
  }


  @keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  }

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

  body.loaded .social-links,
  body.loaded .left h1,
  body.loaded .left h2,
  body.loaded #viewer-container,
  body.loaded #interaction-prompt {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
  }

  /* Add staggered delay to each item */
  body.loaded .navbar {
    animation-delay: 0.2s;
  }
  body.loaded .left h1 {
    animation-delay: 0.4s;
  }
  body.loaded .left h2:nth-of-type(1) {
    animation-delay: 0.6s;
  }
  body.loaded .left h2:nth-of-type(2) {
    animation-delay: 0.8s;
  }
  body.loaded .left h2:nth-of-type(3) {
    animation-delay: 1s;
  }
  body.loaded .social-links{
    animation-delay: 1.1s;
  }
  body.loaded #viewer-container {
    animation-delay: 1.2s;
  }
  body.loaded #interaction-prompt {
    animation-delay: 1.6s;
  }

  /* Ensure no flashing before animation starts */
  .resume-button,
  .left h1,
  .left h2,
  #viewer-container,
  #interaction-prompt {
    opacity: 0;
  }

  .about-section {
  background-color: #222; /* same as rest of page */
  padding: 80px 10%;
  text-align: left;
  display: flex;
  justify-content: left;
  align-items: center;
  }

  .about-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .about-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #eee;
    text-align: center;
  }

  .about-section p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #ccc;
  }

  .fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
  }

  .fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .projects-section {
  padding: 4rem 2rem;
  text-align: center;
  }
  .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #eee;
  }
  .projects-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .project-card {
    width: 100%;
    max-width: 380px;
    flex: 1 1 400px;
    background-color: transparent;
    border: 2px solid #eee;
    border-radius: 16px; /* Add padding so the content doesn't touch border */
    padding: 1rem;
    color: #fff;
    box-shadow: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-5px);
    border-color: #7abaff;
  }

  .project-image {
     width: 100%;
    height: 100%;
    object-fit: cover;     /* ensures image fully fills the frame */
    object-position: center;
    display: block;
  }

  .project-image-container {
    width: 100%;
    height: 200px;              /* fixed height for all image slots */
    border-radius: 12px;
    overflow: hidden;
    background-color: #00000010; /* optional subtle bg */
    margin-bottom: 1rem;
  }
  .project-content {
    padding-top: 1.5rem;
    text-align: left;
  }
  .project-category {
    color: #7abaff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }
  .project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }
  .project-tags {
    margin-bottom: 0.75rem;
  }
  .tag {
    display: inline-block;
    background-color: #ccc;
    color: #333;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .project-content p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
  }
  .other-projects-section {
    padding: 4rem 9rem;
    text-align: center;
  }

  .other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 2rem 1rem;
    justify-items: center;
  }

  .other-project-card {
    width: 100%;
    max-width: 280px;
    background-color: transparent;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 1rem;
    color: #fff;
    box-shadow: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .other-project-card:hover {
    transform: translateY(-5px);
    border-color: #7abaff;
  }

  .other-project-card .project-image-container {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #00000010;
    margin-bottom: 1rem;
  }

  .other-project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .other-project-card .project-category {
    color: #7abaff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .other-project-card .project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .other-project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .other-project-card .tag {
    display: inline-block;
    background-color: #ccc;
    color: #333;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
  }
  .experience-section {
    padding: 4rem 9rem;
    
  }

  .experience-card {
    max-width: 60rem;
    display: flex;
    border: 2px solid #eee;
    color: #ddd;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .experience-card:hover {
    transform: translateY(-5px);
    border-color: #7abaff;
  }

  .experience-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
    background-color: #eee;
    align-items: center;
  }


  .experience-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .experience-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }

  .experience-role {
    color: #7abaff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .experience-meta {
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
    color: #eee;
  }

  .experience-description {
    margin-top:1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
  }

  .connect-section {
    padding: 4rem 2rem;
    text-align: center;
    background: transparent; /* same as other sections */
  }

  .connect-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .connect-icons a {
    color: #bbb;
    font-size: 2rem; /* size of icons */
    transition: color 0.3s ease, transform 0.2s ease;
  }

  .connect-icons a:hover {
    color: #7abaff; /* matches theme hover */
    transform: scale(1.15);
  }




  
  /* === Mobile version === */
@media (max-width: 768px) {

  body, html {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #222;
    color: #fff;
  }

  .container {
    display: flex;
    align-items: center; /* vertically center content */
    justify-content: space-between;
    height: 100vh;
    width:100%;
    background-color: red;
  }

  .left {
    flex: 1;
   

    
    margin-top:100px;
   
    

  }

  .left h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
  }

  .left h2 {
    font-size: 1.5em;
    color: #ccc;
    margin-top:10px;
  }

  .social-links {
      display: flex;
      gap: 30px;
    }

    .social-links a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 70px;
      margin-top: 2rem;
      height: 70px;
      border: 2px solid #cdd5da; /* border color */
      border-radius: 50%;
      color: #cdd5da; /* icon color */
      font-size: 32px;
      transition: 0.3s ease;
    }

    .social-links a:hover {
      background-color: #cdd5da;
      color: #2d3b41;
      transform: scale(1.1);
    }

  .resume-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ccc; /* outline color */
    color: #ccc;
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    }

  .resume-button:hover {
    background-color: #7777;
    transform: translateY(-2px);
  }


  #viewer-container {
    flex: 1;
    height: 50vh; /* adjust as needed */
    width:10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: blue;
    margin-top:100px;
  }

  canvas {
    width: 100%;
    height: 100%;
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(34, 34, 34, 0.6);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  body.loaded .navbar {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
  } 



  /* Logo */
  .logo {
    width: 32px;
    height: auto;
  }

  /* Hamburger toggle (hidden on desktop) */
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle .hamburger {
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
  }
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
  }
  .nav-toggle .hamburger::before { top: -8px; }
  .nav-toggle .hamburger::after  { top:  8px; }

  /* 2.2 Desktop menu */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2em;
    margin-right:auto;
    padding-left:12%;
  }
  .nav-links .menu {
    display: flex;
    gap: 3em;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    position: relative;
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.25em 0;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: #ccc;
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  .nav-links a.active {
    color: #7abaff;
  }

  /* Social icons */
  .socialmedia {
    display: flex;
    gap: 1em;
    margin-left:90%;
  }


  @keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  }

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

  body.loaded .social-links,
  body.loaded .left h1,
  body.loaded .left h2,
  body.loaded #viewer-container,
  body.loaded #interaction-prompt {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
  }

  /* Add staggered delay to each item */
  body.loaded .navbar {
    animation-delay: 0.2s;
  }
  body.loaded .left h1 {
    animation-delay: 0.4s;
  }
  body.loaded .left h2:nth-of-type(1) {
    animation-delay: 0.6s;
  }
  body.loaded .left h2:nth-of-type(2) {
    animation-delay: 0.8s;
  }
  body.loaded .left h2:nth-of-type(3) {
    animation-delay: 1s;
  }
  body.loaded .social-links{
    animation-delay: 1.1s;
  }
  body.loaded #viewer-container {
    animation-delay: 1.2s;
  }
  body.loaded #interaction-prompt {
    animation-delay: 1.6s;
  }

  /* Ensure no flashing before animation starts */
  .resume-button,
  .left h1,
  .left h2,
  #viewer-container,
  #interaction-prompt {
    opacity: 0;
  }

  .about-section {
  background-color: #222; /* same as rest of page */
  padding: 80px 10%;
  text-align: left;
  display: flex;
  justify-content: left;
  align-items: center;
  }

  .about-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .about-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #eee;
    text-align: center;
  }

  .about-section p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #ccc;
  }

  .fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
  }

  .fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .projects-section {
  padding: 4rem 2rem;
  text-align: center;
  }
  .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #eee;
  }
  .projects-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .project-card {
    width: 100%;
    max-width: 380px;
    flex: 1 1 400px;
    background-color: transparent;
    border: 2px solid #eee;
    border-radius: 16px; /* Add padding so the content doesn't touch border */
    padding: 1rem;
    color: #fff;
    box-shadow: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-5px);
    border-color: #7abaff;
  }

  .project-image {
     width: 100%;
    height: 100%;
    object-fit: cover;     /* ensures image fully fills the frame */
    object-position: center;
    display: block;
  }

  .project-image-container {
    width: 100%;
    height: 200px;              /* fixed height for all image slots */
    border-radius: 12px;
    overflow: hidden;
    background-color: #00000010; /* optional subtle bg */
    margin-bottom: 1rem;
  }
  .project-content {
    padding-top: 1.5rem;
    text-align: left;
  }
  .project-category {
    color: #7abaff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }
  .project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }
  .project-tags {
    margin-bottom: 0.75rem;
  }
  .tag {
    display: inline-block;
    background-color: #ccc;
    color: #333;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .project-content p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
  }
  .other-projects-section {
    padding: 4rem 9rem;
    text-align: center;
  }

  .other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 2rem 1rem;
    justify-items: center;
  }

  .other-project-card {
    width: 100%;
    max-width: 280px;
    background-color: transparent;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 1rem;
    color: #fff;
    box-shadow: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .other-project-card:hover {
    transform: translateY(-5px);
    border-color: #7abaff;
  }

  .other-project-card .project-image-container {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #00000010;
    margin-bottom: 1rem;
  }

  .other-project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .other-project-card .project-category {
    color: #7abaff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .other-project-card .project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .other-project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .other-project-card .tag {
    display: inline-block;
    background-color: #ccc;
    color: #333;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
  }
  .experience-section {
    padding: 4rem 9rem;
    
  }

  .experience-card {
    max-width: 60rem;
    display: flex;
    border: 2px solid #eee;
    color: #ddd;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .experience-card:hover {
    transform: translateY(-5px);
    border-color: #7abaff;
  }

  .experience-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
    background-color: #eee;
    align-items: center;
  }


  .experience-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .experience-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }

  .experience-role {
    color: #7abaff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .experience-meta {
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
    color: #eee;
  }

  .experience-description {
    margin-top:1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
  }

  .connect-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: blue; /* same as other sections */
  }

  .connect-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .connect-icons a {
    color: #bbb;
    font-size: 2rem; /* size of icons */
    transition: color 0.3s ease, transform 0.2s ease;
  }

  .connect-icons a:hover {
    color: #7abaff; /* matches theme hover */
    transform: scale(1.15);
  }


}





  









