.mobile-hero {
  display: none;
}

html {
  scroll-snap-type: y mandatory;
}
.section {
  scroll-snap-align: start;
}

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.portfolio-section.parallax {
  background-attachment: fixed;
}



/* Reset & Base Styles */
body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: #f2f2f2;
}

.section {
  padding: 80px 50px;
  text-align: center;
}



h2 {
  font-size: 28px;
  margin-bottom: 20px;
  white-space: nowrap;
}

p {
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: transparent;
  z-index: 100;
}

.mobile-image-container{
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  padding-right: 5rem;
}

#contact-button {
  background-color: #fff;
  color: #000;
  padding: 10px 24px;
  border-radius: 12px;

}

.separator {
  padding: 3rem;
  margin-top: 3rem;
}


button {
  cursor: pointer;
}

.hi {
  text-align: left;
}

#logo {
  height: 100px;
  width: 100px;
}

#logowhite{
  height: 100px;
  width: 100px;
  display: none;
}

.navbar a {
  padding-right: 2rem;
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.contact-button {
  border: 1px solid #000;
  padding: 5px 10px;
  border-radius: 20px;
}



/* Hero Section with Diagonal Split */
.desktop-hero {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* gives card-like shadow */
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center top;
}


.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000;
  padding-left: 16rem;
  background-color: #f2f2f2;
}

.hero-right {
  position: relative;
  width: 50%;
  overflow: hidden;
  z-index: 1;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Diagonal animated overlay */
.hero-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(-75deg, #000, #1f2c31, #000, #000);
  background-size: 400% 400%;
  animation: heroGradientShift 5s ease infinite;
  z-index: 0;
}

/* Place the image on top of the animated background */
.hero-right img {
  position: relative;
  z-index: 1;
  width: 85%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  position: absolute;
  bottom: -1.3rem;
  left: 40%;
  /* default was 50% */
  transform: translateX(-50%);
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


#beg1 {
  font-size: 2rem;
}

#beg2 {
  font-size: 4rem;
  padding-bottom: -90px;
  white-space: nowrap;
  z-index: 22;
}

#beg3 {
  font-size: 0.8rem;
  /* adjust to 0.9rem, 0.8rem, etc. as needed */
  font-weight: 400;
  color: #555;
}

#beg4 {
  margin-top: -0.7rem;
}

.hero-left h1 {
  font-size: 36px;
  margin: 10px 0;
  text-shadow: 1px 1px 3px rgb(0, 0, 0);
  
}

.hero-left h3 {
  font-weight: normal;
  color: #555;
}

.social-icons {
  margin-top: 2rem;
}

.spotify-card {
  margin-bottom: -10rem;
}

#beg1,
#beg2,
#beg4 {
  transition: font-size 0.3s ease;
}





.social-icons a {
  margin-right: 10px;
  font-size: 20px;
}

.social-icons a {
  color: white;
  margin: 3rem 8px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons img {
  width: 3.5rem;
  height: 2.5rem;
  object-fit: contain;
  padding: 4px;
  margin-top: 3rem;
}


/* About Section */
#about {
  background-color: #f2f2f2;
}

.about-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.about-cards .card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 200px;
}

/* Skills Section */
/* Container for the entire skills section */
#skills {
  background-color: #f2f2f2;
  padding: 40px 0;
}

/* Skills content box */
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  margin: 5px;
}

/* Title box at the top */
.skills-title {
  text-align: center;
  font-size: 24px;
  letter-spacing: 2px;
  border: 2px solid #000;
  padding: 10px 20px;
  display: inline-block;
  margin: 0 auto 30px;
}

/* Section subtitle (e.g. Using Now, Learning) */
.skills-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.skills-section h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #111;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

/* Grid layout for skill icons */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 50px 80px;
  /* Increase spacing between rows and columns */
  justify-items: center;
  align-items: center;
  margin-top: 20px;
}


/* Individual skill item */
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Skill icon */
.skill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Skill label */
.skill p {
  margin: 0;
  font-size: 14px;
}

/* Optional subtext below skill name */
.skill small {
  font-size: 12px;
  color: #555;
}

#portf{
  border-color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 items per row */
  gap: 10rem;
  padding: 5rem 0;
}

.portfolio-item {
  height: 18rem;
  background-color: #111;
  color: white;
  display: flex;
  margin-top: 8rem;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 15px 15px 20px rgba(207, 4, 4, 0.877);
}


.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-section {
  background-image: url('images/back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  color: white;
  /* make text stand out */
}

.portfolio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  /* dark overlay for readability */
  z-index: -1;
}



/* Contact Section */
#contact {
  background-color: #f2f2f2;
}

#contact {
  display: flex;
  flex-direction: column;
  /* stack elements vertically */
  align-items: center;
}

#contact * {
  display: flex;
  flex-direction: column;
  /* stack elements vertically */
  align-items: center;
  /* horizontal centering */
  min-height: 20px;
}

#about_button {
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-top: none;
  border-right: 4px solid black;
  border-bottom: none;
  border-left: 4px solid black;
  background-color: transparent;
  width: 10rem;
  height: 2rem;
  font-weight: bold;
}

form * {
  margin-top: 1rem;
  width: 30rem;
}

.textall {
  font-family: Georgia, 'Times New Roman', Times, serif
}

.contact-section form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section input,
.contact-section textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  background-color: transparent;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid black;
  border-left: 2px solid black;


}

.contact-section button {
  padding: 10px;
  border: none;
  background: transparent;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 auto;
  margin-top: 2rem;

}

footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-icons a {
  color: white;
  margin: 0 8px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #0077ff;
}

input[type="text"] {
  background-color: transparent;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid black;
  border-left: 2px solid black;
}

#last_but {
  border-top: none;
  border-right: 4px solid black;
  border-bottom: none;
  border-left: 4px solid black;
  background-color: transparent;
  width: 10rem;
  font-weight: bold;
}


input[type="email"] {
  background-color: transparent;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid black;
  border-left: 2px solid black;
}

textarea {
  border-top: none;
  border-right: none;
  border-bottom: 5px solid black;
  border-left: 5px solid black;
  resize: vertical;
  height: 7rem;
}

.text_title {
  border: #000;
  border-style: solid;
  width: 18rem;
  text-align: center;
  border: 5px solid black;
  padding: 20px 12px;
  margin: auto;
  margin-bottom: 2rem;
  letter-spacing: 10px;


}


.back-to-top {
  text-decoration: none;
  color: #ccc;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

.back-to-top:hover {
  color: #fff;
}

.services-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f2f2f2;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.services-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}



@media (min-width: 769px) {
  .service-box:nth-child(3) {
    flex: 0 0 100%;
    max-width: 60%;
    min-width: 300px;
  }
}


.service-box {
  flex: 0 0 45%;
  /* roughly half width, to fit two per row */
  max-width: 45%;
  max-width: 300px;
  background-color: #000;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 50px;
  margin-bottom: 1rem;
}

.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-box p {
  font-size: 1rem;
  color: #ffffffc9;
}

#study {
  display: block;
}

.services-container .row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  transition: background 0.4s;
}

.skill:hover img {
  filter: drop-shadow(0 0 10px #000);
  transform: scale(1.1);
  transition: 0.3s;
}

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: #000;
  width: 0%;
  z-index: 9999;
}

#formMessage {
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  max-width: 100%;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

#formMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#formMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#formMessage.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.port-text {
  background: rgba(0, 0, 0, 0.65);
  padding: 1rem;
  text-align: center;
  border-radius: 0 0 16px 16px;
  color: red;
}

.port-desc {
  font-size: 0.85rem;
  font-weight: normal;
  margin-top: 0.5rem;
  color: #ddd;
  line-height: 1.4;
}

.port-text:hover {
  color: #ff0000; /* Slightly deeper red on hover */
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

.hero-left{
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}


@media (max-width: 1024px) {
  .port-text{
    font-size: 0.9rem;
    padding: 0.2rem;
  }
  .port-desc{
    font-size: 0.6rem;
  }
  
  /* General resets */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body,
  html {
    overflow-x: hidden;
  }

  /* Layout containers */
  .container,
  .section,
  .spotify-card,
  .portfolio-grid,
  form,
  .services-container {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Services section */
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  .social-icons img {
    filter: brightness(0) invert(1); /* Makes icons white */
    transition: opacity 0.3s ease;
  }

  .service-box {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    width: 95%;
    margin: 0.5rem 0;
  }

  /* Navbar */

  #logo{
    display: none;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
  }
  .nav-right {
    display: none; /* Hide nav links on mobile */
  }

  #logowhite {
    display: block;
  }

  #beg3-mobile {
    font-size: 0.9rem;
    margin-top: 2rem;
    font-weight: 400;
    color: #555;
    text-shadow: none
  }

  .typed-cursor {
    display: none;
  }
  

  .logo img {
    height: 2rem;
    padding-left: 0.5rem;
  }
  .desktop-hero {
    display: none;
  }
  
  /* Ensure hero-right is properly displayed */
  @keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Mobile Hero with Full Gradient Background */
  .mobile-hero {
    display: block;
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(-70deg, #000, #1f2c31, #000, #000);
    background-size: 400% 400%;
    animation: heroGradientShift 5s ease infinite;
  }
  
  .mobile-hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    /* background-image: url('images/Subject\(1\).webp'); */
    background-size: cover;
    background-position: bottom center;
    z-index: 0;
    filter: brightness(0.8);
  }
  
  .mobile-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
    color: white;
    padding-bottom: 4rem;
    
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
  }
  .diagonal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(20deg, rgba(0,0,0,0.9) 30%, transparent 60%);
    z-index: 1;
  }
  
  .mobile-hero-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
  }
  
  .mobile-hero-content h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
  }
  
  .mobile-hero-content h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
  }
  
  .mobile-social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
  }
  
  .mobile-social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }
  
  .mobile-social-icons a:hover img {
    opacity: 1;
  }
  .spotify-card {
    display: none;
  }

  /* Skills grid */
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .skill-item {
    padding: 1rem;
    text-align: center;
  }

  /* Form */
  form * {
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .contact-section form {
    width: 100%;
    padding: 0 1rem;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .portfolio-item {
    margin-top: 2rem;
    width: 100%;
  }

  .text_title {
    padding: 1rem 0.25rem;
    font-size: 1.2rem;
  }

  #about_button,
  #last_but {
    width: 80%;
  }

  .parallax {
    background-attachment: scroll;
  }
  
}