/* Base Styles and Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background-color: #111111;
  color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff9e2c;
}

ul {
  list-style: none;
}

.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

/* Header Styles */
header {
  padding: 20px 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(5px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 30px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #f5f5f5;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  background-color: #ffffff;
  width: 100%;
}

.resume-link {
  color: #ff9e2c;
  display: flex;
  align-items: center;
  gap: 5px;
}

.resume-link::after {
  background-color: #ff9e2c;
}

.resume-link .icon {
  width: 16px;
  height: 16px;
}

/* Main Content Styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 160px 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.mobile-hero {
  display: none;
}

.gradient-text {
  font-family: "Borel", cursive;
  line-height: 0;
  background: linear-gradient(90deg, #ff9e2c, #ff2c55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 5px;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-header .icon {
  color: #626262;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  color: #626262;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-bottom: 80px;
}

.projects-grid.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  transition: transform 0.3s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.project-image {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  background-color: #333;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  transition: transform 0.4s ease;
}

.project-image-link:hover .project-image {
  transform: scale(1.05);
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.project-info a:hover h3 {
  color: #ff9e2c;
}

.project-info p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: #aaa;
}

/* Section Spacing */
section {
  margin-bottom: 100px;
}

/* Accordion Styles */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: #ff9e2c;
}

.accordion-header:hover .toggle-btn {
  color: #ff9e2c;
}

.accordion-icon {
  margin-right: 15px;
}

.accordion-icon .icon {
  color: #ff9e2c;
}

.accordion-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 16px;
  flex-grow: 1;
}

.accordion-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  max-height: 0;
  padding: 0 0 0 35px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-content {
  max-height: 1000px;
  padding: 15px 0 15px 35px;
  margin: 5px 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  padding: 5px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.accordion-item.open .toggle-btn {
  transform: rotate(45deg);
  color: #ff9e2c;
}

/* Journey Section */
.journey-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  text-align: center;
  margin: 0 0px 0;
}

.journey-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.journey-section h2 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
  font-size: 2.1rem;
  margin-bottom: 0;
}

.journey-section p {
  font-size: 1rem;
  color: #aaa;
  max-width: 500px;
  margin: 0 auto 50px;
}

.journey-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.journey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.journey-card:hover {
  transform: translateY(-10px);
  border-color: #ff9e2c;
}

.journey-image {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  border-radius: 50%;
  overflow: hidden;
}

.journey-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

/* Footer Styles */
footer {
  padding: 30px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
}

.copyright {
  font-size: 12px;
  color: #777;
}

.email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #777;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .projects-grid.three-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-cards {
    gap: 20px;
  }

  .journey-card {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .hero h1:not(.mobile-hero):not(.about-hero-heading) {
    display: none;
  }

  .mobile-hero {
    display: block;
    font-size: 1.7rem;
  }

  .projects-grid,
  .projects-grid.three-columns {
    grid-template-columns: 1fr;
  }

  .journey-cards {
    gap: 15px;
  }

  .journey-card {
    width: 150px;
    padding: 15px;
  }

  .journey-image {
    width: 80px;
    height: 80px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .name {
    display: none;
  }

  .logo {
    position: static;
    transform: none;
    margin: 0;
  }

  .logo img {
    height: 24px;
  }

  nav ul {
    gap: 15px;
  }

  .nav-link {
    font-size: 13px;
  }

  .resume-link .icon {
    width: 14px;
    height: 14px;
  }

  .hero {
    padding: 150px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .journey-cards {
    flex-direction: column;
    align-items: center;
  }

  .journey-card {
    width: 100%;
    max-width: 200px;
  }

  .mobile-hero {
    font-size: 1.5rem;
  }
}

/* About Page Styles */
.about-content {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #cccccc;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 2rem;
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ff9e2c;
}

.skill-category ul {
  list-style-type: none;
}

.skill-category li {
  margin-bottom: 0.5rem;
  color: #cccccc;
  position: relative;
  padding-left: 1.5rem;
}

.skill-category li::before {
  content: "•";
  color: #ff9e2c;
  position: absolute;
  left: 0;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.about-image:hover .profile-image {
  transform: scale(1.02);
}

.contact-section {
  text-align: center;
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.contact-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #cccccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .about-content {
    padding: 40px 0;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .contact-section {
    padding: 60px 0;
  }
}

/* About Hero Section */
.about-hero {
  padding: 100px 0 40px 0;
  text-align: center;
  background: none;
  max-width: 100vw;
}

.about-hero-heading {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-transform: none;
}

.about-hero-heading .gradient-text {
  font-family: "Borel", cursive;
  background: linear-gradient(90deg, #ff9e2c, #ff2c55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 5px;
}

.about-image-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
}

.about-image-card {
  background: #18181c;
  border-radius: 24px;
  overflow: hidden;
  width: calc((100% - 40px) / 3);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes jiggle {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-4deg);
  }
  40% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-2deg);
  }
  80% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.about-image-card:hover {
  animation: jiggle 0.4s;
  z-index: 2;
}

@media (max-width: 992px) {
  .about-image-cards {
    gap: 14px;
  }
  .about-image-card {
    height: 180px;
  }
  .about-hero-heading {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .about-image-card {
    width: 100%;
    height: 160px;
  }
}

/* Bottom Sheet Styles */
.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.bottom-sheet.active {
  display: flex;
}
.bottom-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: opacity 0.3s;
}
.bottom-sheet-content {
  position: relative;
  z-index: 2;
  background: #18181c;
  border-radius: 0;
  width: 100vw;
  max-width: 100vw;
  height: 90vh;
  min-height: 320px;
  margin: 0 auto;
  padding: 24px 0 24px 0;
  box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.18);
  animation: bottomSheetIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
}
@keyframes bottomSheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.bottom-sheet-close {
  position: sticky;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
  align-self: flex-end;
  margin-right: 24px;
  margin-bottom: -32px;
  padding: 5px 14px;
  border-radius: 100%;
  background-color: #111;
}
.bottom-sheet-close:hover {
  color: #ff9e2c;
}
.bottom-sheet-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin-bottom: 32px;
  display: block;
}
.bottom-sheet-title {
  display: none;
}
.bottom-sheet-desc {
  color: #fff;
  font-size: 0.95rem;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: "Space Grotesk", sans-serif;
  padding: 0 20px;
}
@media (max-width: 1200px) {
  .bottom-sheet-image {
    max-width: 90vw;
  }
  .bottom-sheet-desc {
    max-width: 90vw;
  }
}
@media (max-width: 576px) {
  .bottom-sheet-content {
    max-width: 100vw;
    padding: 20px 0 16px 0;
    height: 80vh;
  }
  .bottom-sheet-image {
    max-width: 98vw;
  }
  .bottom-sheet-desc {
    font-size: 0.98rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-to-top .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
