/* =========================
   GENERAL SETTINGS
========================= */

:root {
  --background: #111111;
  --card-color: #1d1d1d;
  --card-light: #242424;
  --text-color: #f5f5f5;
  --muted-text: #a0a0a0;
  --orange: #ff6b00;
  --orange-dark: #d95800;
  --line: #363636;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text-color);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =========================
   REUSABLE CLASSES
========================= */

.button {
  display: inline-block;
  background-color: var(--orange);
  color: #ffffff;
  padding: 10px 26px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.3s;
}

.button:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
}

.button-outline {
  background-color: transparent;
  border-color: #777777;
  color: #ffffff;
  margin-left: 10px;
}

.button-outline:hover {
  background-color: var(--orange);
  border-color: var(--orange);
}

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.section-heading p {
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* =========================
   HEADER
========================= */

.site-header {
  width: min(1120px, 90%);
  min-height: 120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  color: var(--orange);
  font-family: "Pacifico", cursive;
  font-size: 1.3rem;
  line-height: 1.5;
}
.logo2 {
  width: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted-text);
  font-size: 0.85rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--orange);
}
.btn {
  display: inline-block;
  background-color: var(--orange);
  color: #ffffff;
  padding: 10px 26px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}
/* =========================
   HERO SECTION
========================= */

.hero {
  width: min(1120px, 90%);
  min-height: 560px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 40px 0 70px;
}

.hero-content {
  max-width: 500px;
}

.greeting {
  color: var(--muted-text);
  font-size: 1.1rem;
}

.name {
  color: #c9c9c9;
  font-weight: 600;
  margin-bottom: 13px;
}

.hero h1 {
  color: var(--orange);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero h1 span {
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 13px;
  margin: 20px 0 28px;
}

.social-links a {
  width: 32px;
  height: 32px;
  border: 1px solid #555555;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c5c5c5;
  font-size: 0.8rem;
  transition: 0.3s;
}

.social-links a:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  color: white;
}

.hero-actions {
  margin-bottom: 40px;
}

.statistics {
  display: flex;
  width: fit-content;
  background-color: var(--card-color);
  border-radius: 5px;
  padding: 13px 5px;
}

.statistics div {
  min-width: 105px;
  padding: 0 15px;
  border-right: 1px solid #777777;
}

.statistics div:last-child {
  border-right: none;
}

.statistics dt {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
}

.statistics dd {
  color: #d5d5d5;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-image {
  width: min(100%, 410px);
  min-height: 430px;
  margin-left: auto;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  border-radius: 50% 50% 8px 8px;
  background: radial-gradient(circle at center, #292929 0 55%, transparent 56%);
}

.hero-image img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: bottom;
}

.hero-image figcaption {
  display: none;
}

/* =========================
   SERVICES SECTION
========================= */

.services,
.about,
.portfolio,
.contact {
  width: min(1120px, 90%);
  margin: auto;
  padding: 85px 0;
}

.services {
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 220px;
  padding: 35px 25px;
  text-align: center;
  background-color: var(--card-color);
  border-radius: 12px;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--card-light);
}

.service-card i {
  color: var(--orange);
  font-size: 2rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 16px;
}

.service-card p {
  color: #8f8f8f;
  font-size: 0.82rem;
}

/* =========================
   ABOUT SECTION
========================= */

.about {
  border-top: 1px solid var(--line);
}

.about-content {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: center;
  gap: 65px;
}

.about-image {
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--card-color);
}

.about-image img {
  width: 100%;
  height: 385px;
  object-fit: cover;
  object-position: top;
}

.about-image figcaption {
  display: none;
}

.about-text p {
  color: #b4b4b4;
  font-size: 0.86rem;
  margin-bottom: 16px;
  text-align: justify;
}

.about-text .button {
  margin-top: 5px;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 60px;
}

.skill-list li {
  color: #c8c8c8;
  text-align: center;
  font-size: 0.78rem;
}

.skill-list i {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  border: 6px solid var(--orange);
  border-right-color: #3b3b3b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d7d7d7;
  font-size: 1.5rem;
}

.skill-list strong,
.skill-list span {
  display: block;
}

.skill-list span {
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 700;
}

/* =========================
   PORTFOLIO SECTION
========================= */

.portfolio {
  border-top: 1px solid var(--line);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-grid figure {
  overflow: hidden;
  background-color: var(--card-color);
  border-radius: 8px;
}

.portfolio-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.4s;
}

.portfolio-grid figure:hover img {
  transform: scale(1.08);
}

.portfolio-grid figcaption {
  padding: 14px;
  color: #d5d5d5;
  font-size: 0.85rem;
  text-align: center;
}

/* =========================
   CONTACT SECTION
========================= */

.contact {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 55px;
}

.contact .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.contact form {
  background-color: var(--card-color);
  padding: 30px;
  border-radius: 10px;
}

.contact form p {
  margin-bottom: 15px;
}

.contact label {
  display: block;
  color: #dddddd;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #454545;
  outline: none;
  border-radius: 4px;
  background-color: #151515;
  color: white;
  font-family: inherit;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  border-color: var(--orange);
}

.contact textarea {
  resize: vertical;
}

.contact button {
  cursor: pointer;
  font-family: inherit;
}

.useful-links {
  align-self: start;
  padding: 30px;
  background-color: var(--card-color);
  border-radius: 10px;
}

.useful-links h3 {
  color: var(--orange);
  margin-bottom: 15px;
}

.useful-links p {
  margin-bottom: 10px;
}

.useful-links a {
  color: #bdbdbd;
  font-size: 0.88rem;
  transition: 0.3s;
}

.useful-links a:hover {
  color: var(--orange);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 35px 20px;
  background-color: #0b0b0b;
  border-top: 1px solid var(--line);
  color: #9d9d9d;
  text-align: center;
  font-size: 0.82rem;
}

.site-footer p {
  margin-bottom: 7px;
}

.site-footer a:hover {
  color: var(--orange);
}
ul {
  display: flex;

}
/* =========================
   MOBILE RESPONSIVENESS
========================= */

@media (max-width: 850px) {
  .site-header {
    padding: 25px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: left;
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 65px;
  }

  .hero-content {
    margin: auto;
  }

  .social-links,
  .statistics {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    margin: auto;
  }

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

  .about-content,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 400px;
    margin: auto;
  }

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

@media (max-width: 550px) {
  .site-header {
    justify-content: right;
    text-align: right;
flex-direction: column;
align-items: right;
gap: 10px ;
  }
.nav-links {
  flex-direction: column;
  text-align: right;
}

  .site-header > .btn {
    display: flex;
    flex-direction: right;
  }

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

  .statistics div {
    min-width: auto;
    padding: 0 10px;
  }

  .statistics dd {
    font-size: 0.62rem;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .button-outline {
    margin: 10px 0 0;
  }

  .contact form,
  .useful-links {
    padding: 22px;
  }
}

/* ==================================
================================== */

body {
  background-color: #111111;
  background-image:
    radial-gradient(
      circle at 42% 18%,
      rgba(255, 107, 0, 0.11) 0%,
      rgba(255, 107, 0, 0.04) 20%,
      transparent 46%
    ),
    radial-gradient(
      circle at 90% 65%,
      rgba(255, 107, 0, 0.05) 0%,
      transparent 30%
    ),
    linear-gradient(135deg, #121212 0%, #101010 55%, #16100d 100%);
}

/* Creates the soft orange texture behind the hero section */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 25% 46%,
      rgba(255, 107, 0, 0.13) 0%,
      rgba(255, 107, 0, 0.04) 25%,
      transparent 58%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 7px
    );
}

/* The container for my first/hero image */
.hero-image {
  position: relative;
  width: min(100%, 440px);
  height: 460px;
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible; /* Important: do not cut the person */
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

/* The dark sphere behind my dp */
.hero-image::before {
  content: "";
  position: absolute;
  width: 370px;
  height: 370px;
  bottom: 15px;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 38% 28%,
      #2a2a2a 0%,
      #1d1d1d 52%,
      #171717 75%,
      #131313 100%
    );
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.012),
    0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Places the transparent my dp in front of the sphere */
.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 460px;
  object-fit: contain;
  object-position: center bottom;
}

/* Hide the small text below the photo */
.hero-image figcaption {
  display: none;
}

/* Smaller sphere for phones */
@media (max-width: 550px) {
  .hero-image {
    width: 100%;
    height: 390px;
  }

  .hero-image::before {
    width: 300px;
    height: 300px;
    bottom: 10px;
  }
  .hero-image img {
    height: 390px; 
  }
}
