/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.85);
  --main-color: #ea580c;
}

html {
  height: 100%;
  font-size: 62.5%;
}

body {
  display: flex;
  flex-direction: column;
  scroll-padding-top: 120px;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem clamp(4%, 8vw, 10%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* =========================
   LOGO – CORRECT STACKING
========================= */
.logo {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  background: transparent;
  transition: 0.3s ease-in-out;
}

/* Orange disk */
.logo::before {
  content: "";
  position: absolute;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--main-color);
  border-radius: 50%;
  z-index: 0;
}

.logo span {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 700;
  color: black;
  transition: 0.3s ease-in-out;
}

.logo:hover span {
  color: var(--main-color);
}

/* Hover glow */
.logo:hover {
  background-color: var(--main-color); /* THIS is what you're missing */
  transform: scale(1.1) translateY(-3px);
  box-shadow:
    0 0 25px var(--main-color),
    0 0 50px var(--main-color),
    0 0 75px var(--main-color);
}

/* Make disk turn white on hover */
.logo:hover::before {
  background: white;
}

.logo:hover img {
  filter: brightness(0) invert(0);
}

.logo img {
  width: 40px;
  height: auto;
  display: block;
  /* filter: brightness(0) invert(1); makes white if svg is dark */
  transition: 0.3s ease-in-out;
}

.home-content .hero-tag,
.about-content h2 span {
  background: linear-gradient(270deg, #df8908 10%, #ff1d15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar {
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
}

.navbar a {
  font-size: 1.6rem;
  color: var(--text-color);
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

#menu-icon {
  font-size: 3rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */
.gradient-btn {
  font-size: 1.6rem;
  padding: 1.1rem 2.4rem;
  border-radius: 3rem;
  background: linear-gradient(90deg, #ff3c00, #ff8c00);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 100, 0, 0.4);
}

.gradient-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.45);
}

.btn-outline {
  padding: 1rem 2.4rem;
  border-radius: 3rem;
  border: 2px solid var(--main-color);
  background: transparent;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--main-color);
  color: white;
  box-shadow: 0 0 10px rgba(255, 100, 0, 0.35);
}

/* =========================
   HERO SECTION
========================= */
.home {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 120px clamp(4%, 8vw, 10%) 4rem;
}

.home::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at center,
    rgba(234, 88, 12, 0.22) 0%,
    rgba(234, 88, 12, 0.1) 35%,
    rgba(234, 88, 12, 0.05) 55%,
    transparent 75%
  );
  filter: blur(30px);
}

/* =========================
   HERO LAYOUT
========================= */

.home-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: clamp(3rem, 6vw, 8rem);
}

.home-content {
  max-width: 650px;
}

.hero-tag {
  display: inline-block;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--main-color);
  margin-bottom: 1.5rem;
}

.home-content h1 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 4.8vw, 5.4rem);
  line-height: 1.05;
  margin-bottom: 2.2rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

@supports (text-wrap: balance) {
  .home-content h1 {
    text-wrap: balance;
  }
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.6rem;
  max-width: 500px;
  letter-spacing: 0.2px;
}

.home-content span {
  background: linear-gradient(90deg, #ff3c00, #ff8c00);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn-group {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.2rem;
  align-items: center;
}

/* =========================
   HERO IMAGE
========================= */

.image-wrapper {
  flex-shrink: 0;

  width: clamp(200px, 26vw, 360px);
  height: clamp(200px, 26vw, 360px);

  padding: 1rem;
  border-radius: 50%;

  background: linear-gradient(145deg, #1a1a1a, #111);

  display: flex;
  justify-content: center;
  align-items: center;

  animation: heroFloat 6s ease-in-out infinite;
}

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

  display: block;
  border-radius: 50%;

  box-shadow:
    0 0 35px rgba(234, 88, 12, 0.55),
    0 0 90px rgba(234, 88, 12, 0.25),
    0 0 160px rgba(234, 88, 12, 0.12);
}

.image-wrapper img:hover {
  box-shadow:
    0 0 35px var(--main-color),
    0 0 70px var(--main-color),
    0 0 120px var(--main-color);
}

/* =========================
   SOCIAL LINKS
========================= */

.hero-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.hero-social a {
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
}

/* =========================
   TABLET BREAKPOINT
========================= */

@media (max-width: 992px) {

  .home-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4rem;
  }

  .image-wrapper {
    order: -1;
    margin-bottom: 1rem;
  }

  .home-content {
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tag {
    text-align: center;
  }

  .home-content h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

}

/* =========================
   MOBILE LAYOUT
========================= */

@media (max-width: 768px) {

  .home {
    justify-content: center;
    padding-top: 110px;
  }

  .home-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .image-wrapper {
    order: -1;
    margin-bottom: 2.8rem;
  }

  .home-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tag {
    text-align: center;
  }

  .home-content h1 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .home-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

}

/* =========================
   SMALL MOBILE (480px → 320px)
========================= */

@media (max-width: 480px) {

  .home {
    padding: 110px 1.8rem 3rem 5.8rem;
    justify-content: center;
  }

  .home-container {
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
  }

  .image-wrapper {
    width: clamp(170px, 55vw, 220px);
    height: clamp(170px, 55vw, 220px);
    margin: 0 auto 1rem auto;
  }

  .home-content {
    width: 100%;
    max-width: 340px;
    align-items: center;
  }

  .hero-tag {
    text-align: center;
  }

  .home-content h1 {
    max-width: 100%;
    text-align: center;
    font-size: clamp(2.4rem, 6.5vw, 3rem);
    margin-left: auto;
    margin-right: auto;
  }

  .home-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.4rem;
  }

  .btn-group {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.4rem;
  }

  .hero-social {
    justify-content: center;
  }

}

/* =========================
   SMALL MOBILE FIX
========================= */

@media (max-width: 480px) {

  .home-content {
    max-width: none;
    width: 100%;
    align-items: center;
  }

  .home-content h1 {
    max-width: 100%;
    text-align: center;
  }

  .home-content p {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .btn-group {
    justify-content: center;
    width: 100%;
  }

  .hero-social {
    justify-content: center;
    width: 100%;
  }

}

/* =========================
   ULTRA SMALL MOBILE
========================= */

@media (max-width: 320px) {

  .home {
    padding: 110px 1.8rem 3rem 6.8rem;
  }

  .home-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* =========================
   ABOUT SECTION
========================= */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background: var(--second-bg-color);
  padding: 6rem clamp(4%, 8vw, 10%);
  flex-wrap: wrap;
  scroll-margin-top: 6rem;
}

/* Circular Image Container */
.about-img {
  width: clamp(280px, 32vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
  flex-shrink: 0;
  animation: heroFloat 7s ease-in-out infinite;
}

.about-img:hover {
  box-shadow:
    0 0 25px var(--main-color),
    0 0 50px var(--main-color),
    0 0 100px var(--main-color);
}

/* Image Inside Container */
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* About Content */
.about-content {
  max-width: 550px;
}

.about-content h2 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.8rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  color: var(--text-soft);
}

.about-content .btn {
  margin-top: 1rem;
}

.about-stack {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-stack span {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--main-color);
  border-radius: 2rem;
  font-size: 1.4rem;
  color: var(--main-color);
  background: transparent;
  transition: all 0.25s ease;
}

.about-stack span:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: rgba(255, 102, 0, 0.08);
  transform: translateY(-2px);
}

/* =========================
   ULTRA SMALL MOBILE
========================= */

@media (max-width: 320px) {

  .about {
    padding: 110px 1.8rem 3rem 12.8rem;
  }
}

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

/* =========================
   services section
========================= */
.heading {
  font-size: 6rem;
  text-align: center;
  margin: 0 0 4rem;
}

.services {
  scroll-margin-top: 8rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  padding: 6rem clamp(4%, 8vw, 10%) 10rem;
}

.services h2 {
  color: var(--text-color);
}

/* Container */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.service-box {
  background: #111;
  border: 1px solid rgba(255, 123, 0, 0.4);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  text-align: center;
  transition: 0.3s ease;
}

/* Hover */
.service-box:hover {
  box-shadow: 0 0 18px rgba(255, 102, 0, 0.35);
  transform: translateY(-6px);
}

.service-box.primary {
  background-color: var(--main-color);
  color: black;
}

/* Card Content */
.service-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.service-info i {
  font-size: 4.5rem;
}

.service-info h4 {
  font-size: 2.1rem;
  font-weight: 800;
}

.service-info p {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
}

/* =========================
   PROJECTS SECTION
========================= */
.projects {
  scroll-margin-top: 120px;
  background-color: var(--second-bg-color);
  padding: 4rem clamp(4%, 8vw, 10%) 6rem;
  text-align: center;
}

.projects .heading {
  font-size: 4rem;
  margin-bottom: 2rem;
}

/* GRID */
.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* CARD */
.project-card {
  position: relative;
  overflow: visible;
  background-color: var(--bg-color);
  border: 1.5px solid var(--main-color);
  border-radius: 2rem;
  padding: 1rem;
  text-align: center;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  will-change: transform;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.project-card:hover {
  box-shadow:
    0 0 18px rgba(234, 88, 12, 0.55),
    0 8px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(-6px);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: radial-gradient(
    circle at top,
    rgba(234, 88, 12, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

/* CLICKABLE IMAGE */
.project-image-link {
  display: block;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.project-image-link img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  filter: brightness(1.05);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.project-card:hover .project-image-link img {
  transform: scale(1.07);
  filter: brightness(1.12);
}

/* TEXT */
.project-card h3 {
  font-size: 1.8rem;
}

.project-card p {
  font-size: 1.2rem;
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
}

/* STACK */
.project-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.project-stack span {
  background-color: var(--second-bg-color);
  border: 1px solid var(--main-color);
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  font-size: 1rem;
}

/* FEATURED */
.project-card.featured {
  border: 2px solid var(--main-color);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(234, 88, 12, 0.35);
  transform: translateY(-4px);
}

.project-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
}

.project-card.featured h3 {
  font-size: 2.3rem;
}

.featured-label {
  position: absolute;
  top: -16px;
  right: 20px;
  background: var(--main-color);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

/* =========================
   CONTACT SECTION
========================= */
.contact {
  flex: 1;
  padding: clamp(8rem, 12vh, 10rem) clamp(4%, 8vw, 10%) clamp(4rem, 8vh, 6rem);
  scroll-margin-top: 115px;
}

.contact h2 {
  font-size: 3.6rem;
}

.contact .heading {
  font-size: 3.8rem;
  margin-bottom: 4rem;
}

.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.input-group,
.input-group-2 {
  display: flex;
  flex-direction: column;
}

/* =========================
   FLOATING INPUT FIELDS
========================= */
.input-field {
  position: relative;
  margin-bottom: 2.5rem;
}

.input-field input,
.input-field textarea {
  width: 100%;
  padding: 1.4rem 1.6rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: linear-gradient(#111, #0b0b0b);
  border-radius: 1.5rem;
  border: 2px solid var(--main-color);
  resize: none;
  transition: all 0.25s ease;
}

/* textarea size */
.input-field textarea {
  min-height: 180px;
}

/* hover effect */
.input-field input:hover,
.input-field textarea:hover {
  border-color: #ff7a1a;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.4);
}

/* focus glow */
.input-field input:focus,
.input-field textarea:focus {
  outline: none;
  border-color: #ff7a1a;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
}

/* =========================
   FLOATING LABELS
========================= */
.input-field label {
  position: absolute;
  top: 50%;
  left: 1.6rem;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.5rem;
  pointer-events: none;
  transition: 0.25s ease;
  background: #080808;
  padding: 0 0.6rem;
}

.input-field textarea + label {
  top: 1rem;
  transform: none;
}

/* float animation */
.input-field input:focus + label,
.input-field input:valid + label,
.input-field textarea:focus + label,
.input-field textarea:valid + label {
  top: -0.8rem;
  font-size: 1.2rem;
  color: var(--main-color);
}

/* =========================
   BUTTON
========================= */
.contact .btn {
  width: fit-content;
  align-self: flex-end;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 3rem;
  padding: 1.4rem 2.6rem;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.35);
  margin-top: 1rem;
}

.contact .btn:hover {
  background: #ff7a1a;
  transform: translateY(-2px);

  box-shadow:
    0 0 18px rgba(234, 88, 12, 0.65),
    0 8px 22px rgba(0, 0, 0, 0.6);
}

/* =========================
   FOOTER
========================= */
.footer {
  background-color: var(--second-bg-color);
  padding: 70px 0;
}

.footer .social-icons {
  text-align: center;
}

.footer ul {
  text-align: center;
  font-size: 1.8rem;
}

.footer ul li {
  display: inline-block;
  margin-left: 20px;
}

.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}

/* =========================
   SOCIAL ICONS
========================= */
.social-icons {
  display: flex;
  gap: 2rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: clamp(1.5rem, 3vw, 3rem) 0;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

/* =========================
   IMAGE STYLING
========================= */
.home-image img {
  width: clamp(240px, 26vw, 340px);
  border-radius: 50%;
  box-shadow: 0 0 35px var(--main-color);
  transition: 0.4s ease-in-out;
}

.home-image img:hover {
  box-shadow:
    0 0 35px var(--main-color),
    0 0 70px var(--main-color),
    0 0 120px var(--main-color);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 1200px) {
  .projects-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .home-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .btn-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--second-bg-color);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    display: none;
  }

  .navbar.active {
    display: flex;
  }

  section {
    padding: 8rem 6% 4rem;
  }

  .contact form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-image img {
    width: 220px;
    box-shadow: 0 0 20px var(--main-color);
  }

  .home-image img:hover {
    box-shadow:
      0 0 20px var(--main-color),
      0 0 40px var(--main-color),
      0 0 70px var(--main-color);
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}
