/* CSS Variables */
:root {
  --white: #ffffff;
  --darkGrey: #373a36;
  --lightGrey: #e6e2dd;
  --pastelPeach: #d48166;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  /*background: var(--darkGrey);*/
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(212, 129, 102, 0.08) 0%,
      transparent 50%
    ),
    var(--darkGrey);
  color: var(--white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/Body.jpg") center/cover;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}
.btn,
.btn:visited,
.btn:link {
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn:active {
  transform: translateY(-1px);
  outline: none;
  box-shadow: none;
  -webkit-outline: none;
  outline: none;
}

.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-primary {
  background: var(--pastelPeach);
  border-color: transparent;
  color: var(--darkGrey);
}

.btn-outline {
  background: transparent;
}

/*Hero Section*/
.hero {
  padding: 4rem 1.5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-image img {
  max-width: 100%;
  max-height: 720px;
  width: auto;
  height: auto;
  object-fit: contain;
  /*border-radius:24px;
    box-shadow:0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;*/
}

/*.hero-image img:hover{
    transform: scale(1.03);
}*/

.hero-text {
  flex: 1 1 420px;
  min-width: 280px;
  margin-top: 4rem;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.highlight-name {
  color: var(--pastelPeach);
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--lightGrey);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/*Scroll Indicator*/
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pastelPeach);
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {
  0%,
  20% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(15px);
  }
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/*Skills Section*/
.skills {
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.skills-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.skills-inner h2 {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.skill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.skill-card.active {
  border-color: rgba(212, 129, 102, 0.85);
  box-shadow: 0 18px 45px rgba(212, 129, 102, 0.14);
}

.skill-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--white);
  font-size: 1.05rem;
  text-align: left;
}

.skill-header:hover {
  background: rgba(212, 129, 102, 0.12);
}

.skill-title {
  color: var(--white);
  font-weight: 600;
}

.skill-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pastelPeach);
}

.skill-card.active .skill-header {
  background: rgba(212, 129, 102, 0.14);
}

.skill-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.32s ease,
    padding 0.32s ease;
  padding: 0 1rem;
  margin-bottom: 0;
  width: 100%;
}

.skill-card.active .skill-content {
  max-height: 260px;
  padding: 0.75rem 1rem 1rem;
}

.skill-card.active .skill-toggle {
  transform: rotate(45deg);
}

.skill-content ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin: 0 auto;
}

.skill-content li {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--lightGrey);
}

/*Projects Section*/
.projects {
  padding: 3rem 1.5rem;
  background: var(--darkGrey);
  background: url("images/Projects BG.png") no-repeat center center/cover;
}

.projects-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.projects-inner h2 {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.04) opacity(50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-top: 1rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 1rem 1.5rem 0.5rem;
  color: var(--white);
}

.project-card p {
  margin: 0 1.5rem 1rem;
  color: var(--lightGrey);
}

.project-buttons {
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-top: 1rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 1rem 1.5rem 0.5rem;
  color: var(--white);
}

.project-card p {
  margin: 0 1.5rem 1rem;
  color: var(--lightGrey);
}

.project-buttons {
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

/*About Me Section*/
.about {
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.about-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 420px;
  min-width: 280px;
  margin-top: 5rem;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.about-text p {
  color: var(--lightGrey);
  line-height: 1.75;
  max-width: 800px;
  font-size: 1.2rem;
}

.about-img {
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/*.about-img img{
    width:100%;
    max-width:360px;
    max-height:520px;
    height:auto;
    object-fit:contain;
    border:6px solid var(--pastelPeach);
    border-radius:18px;
    /*box-shadow:0 24px 60px rgba(0,0,0,.35);
}*/

.about-photo {
  width: 100%;
  max-width: 360px;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  border: 6px solid var(--pastelPeach);
  border-radius: 24px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-photo:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 35px 70px rgba(212, 129, 102, 0.25);
}

/* Contact Section */
.contact {
  padding: 3rem 1.5rem 4rem;
  background:
    radial-gradient(circle at top, rgba(212, 129, 102, 0.18), transparent 26%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.06)
    );
}

.contact-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-header h2 {
  font-size: 2.5rem;
  color: var(--white);
}

.subhead {
  color: var(--pastelPeach);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-copy {
  color: var(--lightGrey);
  max-width: 760px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-panel,
.contact-sidecard {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.contact-panel {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-label {
  color: var(--pastelPeach);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-panel h3 {
  color: var(--white);
  font-size: 1.8rem;
}

.contact-panel p {
  color: var(--lightGrey);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-points {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  color: var(--lightGrey);
}

.contact-points a {
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(212, 129, 102, 0.18);
  color: var(--pastelPeach);
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-sidecard {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-number {
  color: var(--pastelPeach);
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-label {
  color: var(--lightGrey);
  line-height: 1.45;
}

/* Media Queries*/
/*Hero Section*/
@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image,
  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/*Skills Section*/
@media (max-width: 860px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/*About Me Section*/
@media (max-width: 860px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img,
  .about-text {
    width: 100%;
  }
}

/*Contact Section*/
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/*Responsive Design*/
@media (max-width: 1024px) {
  .skills-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/*860px*/
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image,
  .hero-text {
    width: 100%;
  }

  .hero-text {
    margin-top: 0;
  }

  .hero-image {
    order: -1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img,
  .about-text {
    width: 100%;
  }

  .about-text {
    margin-top: 2rem;
  }

  .about-img {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .project-buttons {
    justify-content: center;
  }
}

/*640px*/
@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .skills,
  .projects,
  .about,
  .contact {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-panel {
    padding: 1.25rem;
  }

  .contact-panel h3 {
    font-size: 1.5rem;
  }

  .project-card h3 {
    margin: 1rem 1.25rem 0.5rem;
  }

  .project-card p {
    margin: 0 1.25rem 1rem;
  }

  .project-buttons {
    padding: 0 1.25rem 1.25rem;
  }
}

/*520px*/
@media (max-width: 520px) {
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/*400px*/
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.85rem;
  }

  .hero-buttons,
  .contact-actions,
  .project-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .skill-header {
    padding: 1rem 1.1rem;
  }

  .contact-points li {
    border-radius: 14px;
  }
}

/*Short viewports*/
@media (max-height: 520px) and (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 3rem 1.5rem;
  }
}
