/* ————— Animated Gradient Background ————— */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1b1b32, #0f0f19, #001529, #000814);
  background-size: 300% 300%;
  animation: gradientAnime 15s ease infinite;
  z-index: -3;
}

@keyframes gradientAnime {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#canvas1 {
  position: fixed;
  inset: 0;
  z-index: -2;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #020617, #020617);
  color: #e5e7eb;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  width: 18px;
  height: 18px;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #38bdf8;
  bottom: -6px;
  left: 0;
}

/* SECTIONS */
section {
  min-height: 100vh;
  padding: 120px 10%;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #38bdf8;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: url("C:\Users\khali\Desktop\portfolio\images.jpg") no-repeat center center/cover;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
}


.hero-text h1 {
  font-size: 3.5rem;
}

.hero-text span {
  color: #38bdf8;
}

.hero-text p {
  margin: 20px 0;
  max-width: 500px;
}

.hero-text a {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  background: #38bdf8;
  color: #020617;
  text-decoration: none;
  font-weight: bold;
}

.hero-img img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  box-shadow: 0 0 40px #38bdf8;
}

/* SKILLS */
.skill {
  margin-bottom: 20px;
}

.bar {
  background: #020617;
  border-radius: 20px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 14px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  width: 0;
  transition: 2s;
}

/* TIMELINE */
.timeline {
  border-left: 3px solid #38bdf8;
  padding-left: 30px;
}

.timeline div {
  margin-bottom: 30px;
  position: relative;
}

.timeline div::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #38bdf8;
  border-radius: 50%;
  position: absolute;
  left: -38px;
  top: 5px;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.project {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 20px;
  transition: 0.4s;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px #38bdf8;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transition: 1s ease;
}

.left { transform: translateX(-100px); }
.right { transform: translateX(100px); }
.zoom { transform: scale(0.8); }

.active {
  opacity: 1;
  transform: none;
}


/* CONTACT */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  transition: 0.4s;
  text-align: center;
}

.contact-card h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.contact-card a {
  color: #e5e7eb;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px #38bdf8;
}

/* ABOUT SECTION */
/* ABOUT SECTION */
/* PREMIUM DARK ABOUT SECTION */
.about-section {
  background: #020617; /* same as your site */
  color: #e5e7eb;
  padding: 140px 10%;
  position: relative;
}

.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #38bdf8, transparent);
}

.about-section::before {
  top: 0;
}

.about-section::after {
  bottom: 0;
}



.about-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.about-header h2 {
  font-size: 2.8rem;
  letter-spacing: 3px;
  display: inline-block;
  position: relative;
}

.about-header h2::after {
  content: "";
  width: 0;
  height: 3px;
  background: #38bdf8;
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  transition: width 1s ease;
}

.about-section.active .about-header h2::after {
  width: 60%;
}

.subtitle {
  color: #f7f8fa;
  margin-top: 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}


.about-container {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.about-image {
  overflow: hidden;
  border-radius: 12px;
}

.about-image img {
  width: 350px;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

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


.about-content {
  max-width: 600px;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f8f9fb;
}

.about-text {
  line-height: 1.8;
  margin-bottom: 30px;
  color: #fbfcfe;
}

.about-skills {
  list-style: none;
}

.about-skills li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.about-section.active .about-skills li {
  opacity: 1;
  transform: translateX(0);
}

.about-section.active .about-skills li:nth-child(1) { transition-delay: 0.2s; }
.about-section.active .about-skills li:nth-child(2) { transition-delay: 0.4s; }
.about-section.active .about-skills li:nth-child(3) { transition-delay: 0.6s; }
.about-section.active .about-skills li:nth-child(4) { transition-delay: 0.8s; }

.about-skills li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #38bdf8;
}

.education {
    min-height: 100vh;
    padding: 100px 10%;
    position: relative;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 80px;
    color: #4db5ff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #4db5ff;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 80px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    left: 50%;
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) {
    left: 0;
    justify-content: flex-end;
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 20px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(77, 181, 255, 0.3);
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.timeline-content p {
    color: #ccc;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #4db5ff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #4db5ff;
}


