/* =========================
   GLOBAL RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    color: #ffffff;
    background: #050816;
    overflow-x: hidden;
}

/* =========================
   BACKGROUND VIDEO
========================= */

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

/* =========================
   DARK OVERLAY
========================= */

.overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(
            rgba(3, 7, 18, 0.68),
            rgba(3, 7, 18, 0.82)
        );
    z-index: -2;
}

/* =========================
   NAVIGATION
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    width: 92%;
    max-width: 1200px;
    margin: 18px auto;
    padding: 16px 28px;

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

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(0, 217, 255, 0.08);
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;

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

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;

    color: #ffffff;
    background: linear-gradient(135deg, #00d9ff, #7b61ff);

    box-shadow:
        0 0 16px rgba(0, 217, 255, 0.55),
        0 0 30px rgba(123, 97, 255, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #00d9ff;
    border-radius: 20px;

    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00d9ff;
}

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

/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 100vh;
    padding: 140px 8% 80px;

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

    text-align: center;
}

.hero-content {
    max-width: 900px;

    padding: 55px 45px;

    background: rgba(5, 8, 22, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 55px rgba(0, 217, 255, 0.08);

    animation: fadeUp 1s ease forwards;
}

.hero h4 {
    margin-bottom: 10px;

    font-size: 22px;
    font-weight: 400;

    color: #d8e8ff;
}

.hero h1 {
    margin-bottom: 12px;

    font-size: clamp(48px, 8vw, 86px);
    line-height: 1.05;
    font-weight: 700;

    background: linear-gradient(
        90deg,
        #ffffff,
        #00d9ff,
        #a28cff
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow: 0 0 25px rgba(0, 217, 255, 0.16);
}

.typing-text {
    margin-bottom: 22px;

    font-size: clamp(24px, 4vw, 38px);
    font-weight: 600;

    color: #00d9ff;
}

.hero p {
    max-width: 680px;
    margin: 0 auto 34px;

    font-size: 18px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.84);
}

/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding: 14px 30px;

    color: #03111a;
    background: linear-gradient(135deg, #00d9ff, #52ecff);

    border: 2px solid transparent;
    border-radius: 999px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.45),
        0 0 35px rgba(0, 217, 255, 0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);

    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.75),
        0 0 55px rgba(0, 217, 255, 0.28);
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.65);

    box-shadow: none;
}

.btn.secondary:hover {
    color: #00d9ff;
    border-color: #00d9ff;

    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.28);
}

/* =========================
   SCROLL INDICATOR
========================= */

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;

    transform: translateX(-50%);

    font-size: 34px;
    color: #00d9ff;

    animation: bounce 1.7s infinite;
}

/* =========================
   GENERAL SECTIONS
========================= */

.section {
    min-height: 100vh;
    padding: 120px 8% 90px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section > h2 {
    margin-bottom: 45px;

    font-size: clamp(38px, 5vw, 56px);
    text-align: center;

    color: #ffffff;
}

.section > h2::after {
    content: "";
    display: block;

    width: 80px;
    height: 4px;

    margin: 12px auto 0;

    background: linear-gradient(90deg, #00d9ff, #7b61ff);
    border-radius: 999px;

    box-shadow: 0 0 16px rgba(0, 217, 255, 0.45);
}

/* =========================
   GLASS CARD
========================= */

.glass-card {
    width: 100%;
    max-width: 850px;

    padding: 45px;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.34),
        0 0 35px rgba(0, 217, 255, 0.07);
}

.glass-card h2 {
    margin-bottom: 22px;

    font-size: 42px;
    color: #00d9ff;
}

.glass-card p {
    font-size: 18px;
    line-height: 1.9;

    color: rgba(255, 255, 255, 0.84);
}

/* =========================
   SKILLS
========================= */

.skills-grid {
    width: 100%;
    max-width: 1000px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.skill-card {
    min-height: 150px;
    padding: 25px;

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

    text-align: center;
    font-size: 20px;
    font-weight: 600;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);

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

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

    border-color: rgba(0, 217, 255, 0.7);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.3),
        0 0 28px rgba(0, 217, 255, 0.25);
}

/* =========================
   PROJECTS
========================= */

.projects {
  width: 100%;
  max-width: 1200px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;

  padding: 18px 10px 35px;
  overflow: visible;
}

.project-card {
  min-width: 0;
  overflow: visible;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);

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

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

  border-color: rgba(0, 217, 255, 0.75);

  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(0, 217, 255, 0.2);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;

    display: block;

    transition: transform 0.45s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card h3 {
    padding: 24px 24px 8px;

    font-size: 23px;
    color: #ffffff;
}

.project-card p {
    padding: 0 24px 28px;

    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

/* =========================
   CONTACT FORM
========================= */

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

form input,
form textarea {
    width: 100%;
    padding: 16px 18px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

form input:focus,
form textarea:focus {
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.1);

    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.18);
}

form textarea {
    min-height: 170px;
    resize: vertical;
}

form button {
    align-self: flex-start;

    padding: 14px 32px;

    color: #03111a;
    background: linear-gradient(135deg, #00d9ff, #7b61ff);

    border: none;
    border-radius: 999px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.3);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

form button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0 30px rgba(0, 217, 255, 0.5);
}

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

footer {
    padding: 30px 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.7);
    background: rgba(3, 7, 18, 0.78);

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -14px);
    }

    60% {
        transform: translate(-50%, -7px);
    }
}

/* =========================
   TABLET RESPONSIVE
========================= */

@media (max-width: 950px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 700px) {
    .navbar {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 14px 18px;
    }

    .logo {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links li:nth-child(3) {
        display: none;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding: 120px 20px 70px;
    }

    .hero-content {
        padding: 38px 22px;
        border-radius: 22px;
    }

    .hero h4 {
        font-size: 18px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 220px;
        text-align: center;
    }

    .section {
        padding: 100px 20px 70px;
    }

    .glass-card {
        padding: 30px 22px;
    }

    .glass-card h2 {
        font-size: 34px;
    }

    .glass-card p {
        font-size: 16px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    form button {
        width: 100%;
    }
}

/* =========================
   SMALL PHONE
========================= */

@media (max-width: 480px) {
    .nav-links li:nth-child(2),
    .nav-links li:nth-child(3) {
        display: none;
    }

    .hero h1 {
        font-size: 44px;
    }

    .typing-text {
        font-size: 23px;
    }

    .project-card img {
        height: 190px;
    }
}
/* ========================================
   PHASE 3 — HERO
======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 8% 80px;
}

.hero-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 25px;
}

.hero-content {
  text-align: left;
}
.hero-introduction {
  color: #00d9ff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  line-height: 0.95;
  margin-bottom: 25px;
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.hero-content h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px #00d9ff;
}

#typing-text {
  display: block;
  width: 100%;
  max-width: 100%;

  min-height: 52px;
  margin-bottom: 20px;

  color: #00d9ff;
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  line-height: 1.3;

  white-space: normal;
  overflow: visible;
  word-break: normal;
}

#typing-text::after {
  content: "|";
  margin-left: 5px;
  animation: cursorBlink 0.8s infinite;
}

.hero-description {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-image-container {
  position: relative;

  width: 340px;
  height: 340px;

  margin: 0 auto;

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

.profile-image {
  position: relative;
  z-index: 2;

  width: 320px;
  height: 320px;

  object-fit: cover;
  object-position: center 20%;

  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.45);

  box-shadow:
    0 0 25px rgba(0, 217, 255, 0.7),
    0 0 70px rgba(123, 97, 255, 0.45);
}

.image-glow {
  position: absolute;

  width: 340px;
  height: 340px;

  border-radius: 50%;

  background: linear-gradient(135deg, #00d9ff, #7b61ff);
  filter: blur(30px);
  opacity: 0.55;

  animation: pulseGlow 3s ease-in-out infinite;
}

/* ========================================
   PHASE 3 — SECTION HEADINGS
======================================== */

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

.section-heading p {
  color: #00d9ff;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* ========================================
   PHASE 3 — SKILL BARS
======================================== */

.skills-container {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(7, 15, 35, 0.5);
  backdrop-filter: blur(18px);
}

.skill {
  margin-bottom: 32px;
}

.skill:last-child {
  margin-bottom: 0;
}

.skill-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}

.skill-heading span:last-child {
  color: #00d9ff;
}

.skill-bar {
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.skill-progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d9ff, #7b61ff);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.75);
  transition: width 1.5s ease;
}

/* ========================================
   PHASE 3 — PROJECT CARDS
======================================== */

.projects {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(7, 15, 35, 0.58);
  backdrop-filter: blur(18px);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 217, 255, 0.8);
  box-shadow: 0 22px 55px rgba(0, 217, 255, 0.22);
}

.project-image {
  height: 230px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d9ff;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-content {
  position: relative;
  padding: 28px;
}

.project-number {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(255, 255, 255, 0.15);
  font-size: 2.7rem;
  font-weight: 700;
}

.project-content h3 {
  position: relative;
  font-size: 1.45rem;
  margin-bottom: 15px;
}

.project-content p {
  min-height: 105px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.project-technologies span {
  padding: 7px 12px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 20px;
  color: #00d9ff;
  background: rgba(0, 217, 255, 0.08);
  font-size: 0.78rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-link {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 22px;
  color: #06101d;
  background: #00d9ff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.65);
}

.secondary-link {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

/* ========================================
   PHASE 3 — ANIMATIONS
======================================== */

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.8;
  }
}
/* Final profile picture size fix */

.hero-image-container {
  position: relative;
  width: 280px !important;
  height: 280px !important;
  min-width: 280px;
  max-width: 280px;
  margin: 0 auto;
  overflow: visible;

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

.hero-image-container .profile-image {
  position: relative;
  z-index: 2;

  display: block;
  width: 270px !important;
  height: 270px !important;
  max-width: 270px !important;
  max-height: 270px !important;

  object-fit: cover !important;
  object-position: center 20%;
  border-radius: 50% !important;

  border: 3px solid rgba(255, 255, 255, 0.45);

  box-shadow:
    0 0 25px rgba(0, 217, 255, 0.7),
    0 0 55px rgba(123, 97, 255, 0.4);
}

.hero-image-container .image-glow {
  position: absolute;
  z-index: 1;

  width: 280px !important;
  height: 280px !important;
  inset: auto;

  border-radius: 50%;
  background: linear-gradient(135deg, #00d9ff, #7b61ff);
  filter: blur(28px);
  opacity: 0.5;
}
.profile-image{
    transition:all .4s ease;
}

.profile-image:hover{
    transform:scale(1.05);
    box-shadow:
        0 0 35px rgba(0,217,255,.8),
        0 0 80px rgba(123,97,255,.6);
}
/* ========================================
   FINAL PHASE — LOADING SCREEN
======================================== */

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;

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

  background: #050816;

  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 78px;
  height: 78px;

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

  margin-bottom: 28px;

  border-radius: 50%;

  color: white;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;

  background: linear-gradient(135deg, #00d9ff, #7b61ff);

  box-shadow:
    0 0 30px rgba(0, 217, 255, 0.65),
    0 0 65px rgba(123, 97, 255, 0.45);

  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-line {
  width: 220px;
  height: 4px;

  overflow: hidden;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.loader-progress {
  width: 45%;
  height: 100%;

  border-radius: inherit;
  background: linear-gradient(90deg, #00d9ff, #7b61ff);

  animation: loaderMove 1.1s ease-in-out infinite;
}

/* ========================================
   FINAL PHASE — SCROLL PROGRESS
======================================== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;

  width: 0;
  height: 4px;

  background: linear-gradient(90deg, #00d9ff, #7b61ff);

  box-shadow: 0 0 18px rgba(0, 217, 255, 0.8);

  transition: width 0.08s linear;
}

/* ========================================
   FINAL PHASE — MOUSE GLOW
======================================== */

.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;

  width: 420px;
  height: 420px;

  border-radius: 50%;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.13) 0%,
    rgba(123, 97, 255, 0.08) 35%,
    transparent 70%
  );

  transform: translate(-50%, -50%);
  opacity: 0;

  transition: opacity 0.3s ease;
}

/* ========================================
   FINAL PHASE — NAVBAR SCROLL EFFECT
======================================== */

.navbar {
  transition:
    padding 0.35s ease,
    margin 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

header.scrolled .navbar {
  margin-top: 8px;
  padding-top: 10px;
  padding-bottom: 10px;

  background: rgba(5, 8, 22, 0.82);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(0, 217, 255, 0.16);
}

header.scrolled .logo {
  transform: scale(0.9);
}

.logo {
  transition: transform 0.35s ease;
}

.nav-links a.active {
  color: #00d9ff;
}

.nav-links a.active::after {
  width: 100%;
}

/* ========================================
   FINAL PHASE — HERO POLISH
======================================== */

.hero-content h1 {
  background: linear-gradient(
    90deg,
    #ffffff,
    #00d9ff,
    #a28cff,
    #ffffff
  );

  background-size: 250% auto;

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

  color: transparent;

  animation: animatedTextGradient 6s linear infinite;
}

.hero-image-container {
  animation: heroFloat 5s ease-in-out infinite;
}

.profile-image {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.profile-image:hover {
  transform: scale(1.05);

  box-shadow:
    0 0 38px rgba(0, 217, 255, 0.9),
    0 0 85px rgba(123, 97, 255, 0.65);
}

/* ========================================
   FINAL PHASE — CONTACT MESSAGE
======================================== */

#form-message {
  min-height: 24px;
  margin-top: 5px;

  color: #00d9ff;
  font-weight: 600;
}

/* ========================================
   FINAL PHASE — ANIMATIONS
======================================== */

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.94);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes loaderMove {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(280%);
  }
}

@keyframes animatedTextGradient {
  to {
    background-position: 250% center;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}
project-card > img {
  width: 100%;
  display: block;
  border-radius: 24px 24px 0 0;
}
/* Final project-card tap/hover fix */

/* Final project section fix */

.projects {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 20px 12px 40px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;

  background: rgba(7, 15, 35, 0.58);
  backdrop-filter: blur(18px);

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

.project-card img {
  display: block;
  width: 100%;
  height: 230px;

  object-fit: cover;
  object-position: center;

  border-radius: 24px 24px 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 217, 255, 0.8);
    box-shadow: 0 22px 55px rgba(0, 217, 255, 0.22);
  }

  .project-card:hover img {
    transform: scale(1.04);
  }
}

@media (max-width: 950px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .projects {
    grid-template-columns: 1fr;
  }
}