/* =====================================================
   ABDOU | APP & WEB DEV
   Premium Portfolio
   ===================================================== */


/* =====================================================
   RESET
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: "Inter", sans-serif;

  background: #050505;

  color: #ffffff;

  line-height: 1.6;

  overflow-x: hidden;
}


a {
  color: inherit;

  text-decoration: none;
}


button,
input,
textarea {
  font-family: inherit;
}


button {
  cursor: pointer;
}


img {
  max-width: 100%;

  display: block;
}


/* =====================================================
   VARIABLES
   ===================================================== */

:root {

  --bg: #050505;

  --bg-secondary: #0a0a0a;

  --card: #111111;

  --card-hover: #151515;

  --border: #222222;

  --border-light: #2c2c2c;

  --text: #ffffff;

  --text-secondary: #b4b4b4;

  --text-muted: #777777;

  --accent: #ffffff;

  --radius-small: 12px;

  --radius-medium: 18px;

  --radius-large: 26px;

  --container: 1180px;

}


/* =====================================================
   SELECTION
   ===================================================== */

::selection {
  background: #ffffff;

  color: #000000;
}


/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
  width: 8px;
}


::-webkit-scrollbar-track {
  background: #050505;
}


::-webkit-scrollbar-thumb {
  background: #2a2a2a;

  border-radius: 20px;
}


::-webkit-scrollbar-thumb:hover {
  background: #444444;
}


/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  z-index: 1000;

  background: rgba(5, 5, 5, 0.82);

  backdrop-filter: blur(18px);

  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.nav-container {

  width: min(
    calc(100% - 40px),
    var(--container)
  );

  height: 76px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;
}


/* =====================================================
   LOGO
   ===================================================== */

.logo {

  display: inline-flex;

  align-items: center;

  gap: 10px;

  font-size: 18px;

  font-weight: 800;

  letter-spacing: -0.5px;
}


.logo-icon {

  width: 36px;

  height: 36px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #111111;

  border: 1px solid var(--border);

  border-radius: 11px;

  font-size: 18px;
}


.logo:hover .logo-icon {

  border-color: #444444;

}


/* =====================================================
   NAV LINKS
   ===================================================== */

.nav-links {

  display: flex;

  align-items: center;

  gap: 34px;
}


.nav-link {

  position: relative;

  color: var(--text-secondary);

  font-size: 13px;

  font-weight: 600;

  transition:
    color 0.25s ease;
}


.nav-link::after {

  content: "";

  position: absolute;

  left: 0;

  bottom: -8px;

  width: 0;

  height: 1px;

  background: #ffffff;

  transition:
    width 0.25s ease;
}


.nav-link:hover {

  color: #ffffff;
}


.nav-link:hover::after {

  width: 100%;
}


/* =====================================================
   MOBILE MENU BUTTON
   ===================================================== */

.menu-toggle {

  display: none;

  width: 42px;

  height: 42px;

  border: 1px solid var(--border);

  background: var(--card);

  color: #ffffff;

  border-radius: 12px;

  font-size: 20px;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {

  min-height: 100vh;

  padding: 150px 20px 90px;

  display: flex;

  align-items: center;

  position: relative;

  overflow: hidden;
}


/* background glow */

.hero::before {

  content: "";

  position: absolute;

  width: 600px;

  height: 600px;

  left: 50%;

  top: 40%;

  transform:
    translate(-50%, -50%);

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.055),
      transparent 68%
    );

  pointer-events: none;
}


.hero-container {

  width: min(
    100%,
    var(--container)
  );

  margin: auto;

  display: grid;

  grid-template-columns:
    1.05fr 0.95fr;

  align-items: center;

  gap: 80px;
}


.hero-content {

  position: relative;

  z-index: 2;
}


/* =====================================================
   HERO BADGE
   ===================================================== */

.hero-badge {

  width: fit-content;

  display: flex;

  align-items: center;

  gap: 9px;

  padding: 8px 13px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-secondary);

  font-size: 11px;

  font-weight: 600;

  margin-bottom: 26px;
}


.status-dot {

  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #ffffff;

  box-shadow:
    0 0 10px
    rgba(255, 255, 255, 0.8);
}


/* =====================================================
   HERO TITLE
   ===================================================== */

.hero h1 {

  max-width: 720px;

  font-size:
    clamp(48px, 6vw, 78px);

  line-height: 1.03;

  letter-spacing: -4px;

  font-weight: 900;
}


.gradient-text {

  background:
    linear-gradient(
      120deg,
      #ffffff,
      #777777
    );

  -webkit-background-clip: text;

  background-clip: text;

  -webkit-text-fill-color: transparent;
}


/* =====================================================
   HERO DESCRIPTION
   ===================================================== */

.hero-description {

  max-width: 600px;

  margin-top: 26px;

  color: var(--text-secondary);

  font-size: 16px;

  line-height: 1.8;
}


/* =====================================================
   HERO BUTTONS
   ===================================================== */

.hero-buttons {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 34px;
}


.btn {

  min-height: 50px;

  padding:
    0 20px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  border-radius: 13px;

  font-size: 13px;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}


.btn:hover {

  transform:
    translateY(-2px);
}


.btn-primary {

  background: #ffffff;

  color: #050505;
}


.btn-primary:hover {

  background: #dddddd;
}


.btn-secondary {

  border: 1px solid var(--border);

  background: #0d0d0d;

  color: #ffffff;
}


.btn-secondary:hover {

  background: #171717;

  border-color: #3a3a3a;
}


/* =====================================================
   HERO SCROLL
   ===================================================== */

.hero-scroll {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 65px;

  color: var(--text-muted);

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 1.5px;
}


/* =====================================================
   HERO VISUAL
   ===================================================== */

.hero-visual {

  position: relative;

  min-height: 450px;

  display: flex;

  align-items: center;

  justify-content: center;
}


.hero-card {

  width: min(
    100%,
    480px
  );

  min-height: 350px;

  padding: 20px;

  border: 1px solid var(--border);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      #111111,
      #080808
    );

  box-shadow:
    0 35px 90px
    rgba(0, 0, 0, 0.55);

  transform:
    rotate(2deg);

  transition:
    transform 0.4s ease;
}


.hero-card:hover {

  transform:
    rotate(0deg)
    translateY(-5px);
}


/* =====================================================
   CODE WINDOW
   ===================================================== */

.hero-card-top {

  display: flex;

  gap: 7px;

  padding-bottom: 20px;

  border-bottom:
    1px solid #1e1e1e;
}


.window-dot {

  width: 9px;

  height: 9px;

  border-radius: 50%;

  background: #333333;
}


.code-lines {

  padding-top: 26px;

  color: #9c9c9c;

  font-family:
    "Courier New",
    monospace;

  font-size: 13px;

  line-height: 2;
}


.code-purple {

  color: #b8a8ff;
}


.code-green {

  color: #a8d5a2;
}


.code-blue {

  color: #8ab4ff;
}


.code-indent {

  padding-left: 28px;
}


.code-space {

  height: 12px;
}


/* =====================================================
   FLOATING BADGES
   ===================================================== */

.floating-badge {

  position: absolute;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 12px 15px;

  background: #111111;

  border: 1px solid var(--border);

  border-radius: 14px;

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.45);

  font-size: 12px;

  font-weight: 700;
}


.badge-one {

  left: 0;

  bottom: 55px;
}


.badge-two {

  right: 0;

  top: 65px;
}


/* =====================================================
   GENERAL SECTION
   ===================================================== */

.about-section,
.projects-section,
.contact-section {

  padding:
    110px 20px;
}


.section-container {

  width: min(
    100%,
    var(--container)
  );

  margin: auto;
}


/* =====================================================
   SECTION HEADER
   ===================================================== */

.section-header {

  display: flex;

  gap: 22px;

  align-items: flex-start;

  margin-bottom: 55px;
}


.section-number {

  flex-shrink: 0;

  color: #666666;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;

  font-weight: 700;

  padding-top: 9px;
}


.section-header h2 {

  font-size:
    clamp(32px, 5vw, 48px);

  line-height: 1.1;

  letter-spacing: -2px;

  font-weight: 900;
}


.section-header p {

  margin-top: 10px;

  color: var(--text-secondary);

  font-size: 14px;
}


/* =====================================================
   ABOUT
   ===================================================== */

.about-grid {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 70px;

  padding-top: 10px;
}


.about-text p {

  max-width: 620px;

  color: #bdbdbd;

  font-size: 17px;

  line-height: 1.9;

  margin-bottom: 20px;
}


.about-stats {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}


.stat {

  padding: 25px;

  min-height: 130px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 18px;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}


.stat:hover {

  transform:
    translateY(-4px);

  background:
    var(--card-hover);
}


.stat strong {

  font-size: 20px;

  font-weight: 800;
}


.stat span {

  color: var(--text-muted);

  font-size: 11px;
}


/* =====================================================
   PROJECTS
   ===================================================== */

.projects-section {

  border-top:
    1px solid rgba(255, 255, 255, 0.04);
}


.projects-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}


/* =====================================================
   PROJECT CARD
   ===================================================== */

.project-card {

  overflow: hidden;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 22px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}


.project-card:hover {

  transform:
    translateY(-7px);

  background:
    var(--card-hover);

  border-color:
    #373737;
}


/* =====================================================
   PROJECT IMAGE
   ===================================================== */

.project-image {

  position: relative;

  width: 100%;

  height: 230px;

  overflow: hidden;

  background: #0a0a0a;
}


.project-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}


.project-card:hover
.project-image img {

  transform:
    scale(1.05);
}


.project-placeholder {

  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 48px;

  background:
    radial-gradient(
      circle at center,
      #1d1d1d,
      #090909 70%
    );
}


/* =====================================================
   PROJECT CONTENT
   ===================================================== */

.project-content {

  padding: 21px;
}


.project-content h3 {

  font-size: 18px;

  font-weight: 800;

  letter-spacing: -0.4px;
}


.project-content p {

  margin-top: 9px;

  color: var(--text-secondary);

  font-size: 12px;

  line-height: 1.7;

  display:
    -webkit-box;

  -webkit-line-clamp: 3;

  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* =====================================================
   PROJECT BUTTON
   ===================================================== */

.project-button {

  width: 100%;

  margin-top: 19px;

  padding: 12px 14px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: #0c0c0c;

  font-size: 12px;

  font-weight: 700;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}


.project-button:hover {

  background: #181818;

  border-color: #383838;
}


/* =====================================================
   LOADING
   ===================================================== */

.projects-loading {

  min-height: 220px;

  grid-column:
    1 / -1;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 15px;

  color: var(--text-muted);
}


.loader {

  width: 32px;

  height: 32px;

  border-radius: 50%;

  border: 2px solid #242424;

  border-top-color: #ffffff;

  animation:
    spin 0.8s linear infinite;
}


@keyframes spin {

  to {
    transform:
      rotate(360deg);
  }

}


/* =====================================================
   EMPTY
   ===================================================== */

.projects-empty {

  min-height: 250px;

  grid-column:
    1 / -1;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 40px;

  border:
    1px dashed #252525;

  border-radius: 22px;

  background: #090909;
}


.empty-icon {

  font-size: 40px;

  margin-bottom: 15px;
}


.projects-empty h3 {

  font-size: 18px;

  font-weight: 800;
}


.projects-empty p {

  margin-top: 5px;

  color: var(--text-muted);

  font-size: 12px;
}


/* =====================================================
   ERROR
   ===================================================== */

.projects-error {

  min-height: 250px;

  grid-column:
    1 / -1;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 40px;

  border:
    1px solid #252525;

  border-radius: 22px;

  background: #090909;
}


.projects-error > div {

  font-size: 35px;

  margin-bottom: 12px;
}


.projects-error h3 {

  font-size: 18px;
}


.projects-error p {

  color: var(--text-muted);

  font-size: 12px;

  margin-top: 5px;
}


/* =====================================================
   CONTACT
   ===================================================== */

.contact-section {

  border-top:
    1px solid rgba(255, 255, 255, 0.04);
}


.contact-card {

  position: relative;

  overflow: hidden;

  padding: 70px;

  border:
    1px solid var(--border);

  border-radius: 30px;

  background:
    radial-gradient(
      circle at 80% 20%,
      #1a1a1a,
      #0d0d0d 45%,
      #090909 100%
    );
}


.contact-card::after {

  content: "";

  position: absolute;

  width: 280px;

  height: 280px;

  right: -100px;

  bottom: -130px;

  border-radius: 50%;

  border: 1px solid #252525;
}


.contact-content {

  position: relative;

  z-index: 2;

  max-width: 700px;
}


.contact-content h2 {

  margin-top: 15px;

  font-size:
    clamp(35px, 6vw, 60px);

  line-height: 1.05;

  letter-spacing: -3px;

  font-weight: 900;
}


.contact-content p {

  max-width: 580px;

  margin-top: 20px;

  color: var(--text-secondary);

  font-size: 15px;

  line-height: 1.8;
}


/* =====================================================
   WHATSAPP BUTTON
   ===================================================== */

.whatsapp-button {

  width: fit-content;

  margin-top: 30px;

  padding: 14px 18px;

  display: inline-flex;

  align-items: center;

  gap: 12px;

  border:
    1px solid #333333;

  border-radius: 13px;

  background: #ffffff;

  color: #050505;

  font-size: 13px;

  font-weight: 800;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}


.whatsapp-button:hover {

  transform:
    translateY(-3px);

  background: #dddddd;
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {

  padding:
    55px 20px 25px;

  border-top:
    1px solid rgba(255, 255, 255, 0.05);

  background: #030303;
}


.footer-container {

  width: min(
    100%,
    var(--container)
  );

  margin: auto;
}


.footer-brand {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}


.footer-brand p {

  color: var(--text-muted);

  font-size: 12px;
}


/* =====================================================
   SOCIAL LINKS
   ===================================================== */

.footer-socials {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 30px;
}


.footer-socials a {

  display: inline-flex;

  padding: 9px 13px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  color: var(--text-secondary);

  font-size: 11px;

  font-weight: 600;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}


.footer-socials a:hover {

  color: #ffffff;

  background: #111111;

  border-color: #383838;
}


/* =====================================================
   FOOTER BOTTOM
   ===================================================== */

.footer-bottom {

  margin-top: 45px;

  padding-top: 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-top:
    1px solid #151515;

  color: #555555;

  font-size: 10px;
}


/* =====================================================
   RESPONSIVE - TABLET
   ===================================================== */

@media (max-width: 1000px) {


  .hero-container {

    grid-template-columns:
      1fr;

    gap: 70px;
  }


  .hero-content {

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;
  }


  .hero-description {

    margin-left: auto;

    margin-right: auto;
  }


  .hero-visual {

    min-height: 390px;
  }


  .projects-grid {

    grid-template-columns:
      repeat(2, 1fr);
  }


  .about-grid {

    grid-template-columns:
      1fr;

    gap: 45px;
  }

}


/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */

@media (max-width: 700px) {


  .nav-container {

    width:
      calc(100% - 28px);

    height: 68px;
  }


  .nav-links {

    position: absolute;

    top: 68px;

    left: 14px;

    right: 14px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 8px;

    background:
      rgba(15, 15, 15, 0.97);

    border:
      1px solid var(--border);

    border-radius: 16px;

    box-shadow:
      0 20px 50px
      rgba(0, 0, 0, 0.5);
  }


  .nav-links.active {

    display: flex;
  }


  .nav-link {

    padding: 14px;

    border-radius: 10px;
  }


  .nav-link:hover {

    background: #181818;
  }


  .nav-link::after {

    display: none;
  }


  .menu-toggle {

    display: flex;

    align-items: center;

    justify-content: center;
  }


  .hero {

    padding:
      120px 14px 70px;
  }


  .hero-container {

    gap: 55px;
  }


  .hero h1 {

    font-size:
      clamp(42px, 12vw, 58px);

    letter-spacing: -2.5px;
  }


  .hero-description {

    font-size: 14px;

    line-height: 1.75;
  }


  .hero-buttons {

    width: 100%;

    flex-direction: column;
  }


  .btn {

    width: 100%;
  }


  .hero-scroll {

    margin-top: 40px;
  }


  .hero-visual {

    min-height: 340px;
  }


  .hero-card {

    width: 100%;

    min-height: 290px;

    padding: 15px;

    transform:
      rotate(0deg);
  }


  .code-lines {

    font-size: 10px;

    line-height: 2;
  }


  .floating-badge {

    padding:
      9px 11px;

    font-size: 10px;
  }


  .badge-one {

    left: -4px;

    bottom: 25px;
  }


  .badge-two {

    right: -4px;

    top: 25px;
  }


  .about-section,
  .projects-section,
  .contact-section {

    padding:
      80px 14px;
  }


  .section-header {

    gap: 14px;

    margin-bottom: 35px;
  }


  .section-header h2 {

    font-size: 34px;

    letter-spacing: -1.5px;
  }


  .section-header p {

    font-size: 12px;
  }


  .projects-grid {

    grid-template-columns:
      1fr;

    gap: 15px;
  }


  .project-image {

    height: 220px;
  }


  .about-stats {

    grid-template-columns:
      1fr 1fr;
  }


  .stat {

    min-height: 110px;

    padding: 18px;
  }


  .stat strong {

    font-size: 16px;
  }


  .contact-card {

    padding: 40px 24px;

    border-radius: 23px;
  }


  .contact-content h2 {

    font-size: 39px;

    letter-spacing: -2px;
  }


  .contact-content p {

    font-size: 13px;
  }


  .whatsapp-button {

    width: 100%;

    justify-content: center;

    text-align: center;
  }


  .footer {

    padding:
      45px 14px 20px;
  }


  .footer-brand {

    flex-direction: column;

    align-items: flex-start;
  }


  .footer-bottom {

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
  }

}


/* =====================================================
   SMALL PHONES
   ===================================================== */

@media (max-width: 380px) {


  .hero h1 {

    font-size: 39px;
  }


  .about-stats {

    grid-template-columns:
      1fr;
  }


  .hero-card {

    min-height: 270px;
  }


  .code-lines {

    font-size: 9px;
  }

}


/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

  }

}