/* =========================
   ROOT COLOR SYSTEM
========================= */

:root {

  --bg-color: #0b0f17;
  --bg-gradient: #020617;

  --primary: #00e5ff;
  --primary-dark: #00bcd4;

  --text-main: #ffffff;
  --text-secondary: #ffffff;

  --card-bg: #111827;
  --card-hover: #1f2937;

}


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

* {
  box-sizing: border-box;
}

body {

  margin: 0;

  font-family: Arial, sans-serif;

  background: var(--bg-color);

  color: var(--text-main);

  scroll-behavior: smooth;

  overflow-x: hidden;

}

/* =========================
   GLOBAL SECTION HEADINGS
========================= */
section h2,
.section-title {

  font-size: 40px;

  color: var(--heading-cyan);

  text-align: center;

  margin-bottom: 60px;

  font-weight: 700;

}
/* =========================
   PREMIUM CYAN HEADINGS
========================= */

:root {

  --heading-cyan: #22d3ee;

}


/* Optional: subtle cyan accent line */

section h2::after {

  content: "";

  display: block;

  width: 60px;

  height: 3px;

  background: var(--primary);

  margin: 12px auto 0;

  border-radius: 2px;

  opacity: 0.7;

}


/* =========================
   COSMIC BACKGROUND
========================= */

.cosmic-bg {

  position: fixed;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    var(--bg-color),
    var(--bg-gradient)
  );

  z-index: -1;

}


.stars {

  width: 100%;
  height: 100%;

  background: url("https://www.transparenttextures.com/patterns/stardust.png");

  animation: move 200s linear infinite;

}


@keyframes move {

  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-2000px);
  }

}



/* =========================
   NAVBAR
========================= */

.navbar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 20px 40px;

  background: rgba(11, 15, 23, 0.6);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  width: 100%;

  z-index: 1000;

}



/* Logo */

.logo {

  color: var(--primary);

  font-size: 24px;

  font-weight: bold;

  white-space: nowrap;

}

.logo-container {

  display: flex;

  align-items: center;   /* THIS fixes vertical alignment */

  gap: 10px;

}


.logo-img {

  height: 36px;

  width: auto;

  display: block;

}


.logo-text {

  font-size: 22px;

  font-weight: 600;

  color: var(--text-main);

  line-height: 1;   /* IMPORTANT — removes extra vertical space */

}

/* Menu */

.nav-menu {

  display: flex;

  align-items: center;

  gap: 30px;

  list-style: none;

  margin: 0;
  padding: 0;

}


.nav-menu li {

  display: flex;

  align-items: center;

}


.nav-menu a {

  color: var(--text-main);

  text-decoration: none;

  font-size: 16px;

  transition: 0.3s;

}


.nav-menu a:hover {

  color: var(--primary);

}



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

.hero {

  min-height: 100vh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding-top: 120px;

  padding-left: 20px;
  padding-right: 20px;

}


.hero h1 {

  font-size: 52px;

  color: var(--primary);

  white-space: nowrap;

  margin: 0;

}


.hero-subtitle {

  font-size: 20px;

  margin-top: 15px;

  color: var(--text-secondary);

}



/* =========================
   FLOATING ICONS
========================= */

.floating-icons {

  margin-bottom: 30px;

  display: flex;

  gap: 30px;

  justify-content: center;

  flex-wrap: wrap;

}


.floating-icons i {

  font-size: 40px;

  color: var(--primary);

  animation: float 4s ease-in-out infinite;

}


.floating-icons i:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-icons i:nth-child(3) {
  animation-delay: 1s;
}

.floating-icons i:nth-child(4) {
  animation-delay: 1.5s;
}

.floating-icons i:nth-child(5) {
  animation-delay: 2s;
}

.floating-icons i:nth-child(6) {
  animation-delay: 2.5s;
}



@keyframes float {

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

  50% {
    transform: translateY(-20px);
  }

}



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

.about {

  padding: 140px 20px;

  text-align: center;

}


.about h2 {


  margin-bottom: 30px;

  color: var(--primary);

}


.about-container {

  max-width: 650px;

  margin: auto;

}


.about-container p {

  font-size: 18px;

  color: var(--text-secondary);

  line-height: 1.6;

  margin-bottom: 40px;

}

/* =========================
   ABOUT STATS GRID
========================= */

.about-stats{

display:grid;

grid-template-columns: repeat(auto-fit, minmax(220px,1fr));

gap:30px;

margin-top:60px;

}


/* CARD */

.stat-card{

background: rgba(17,25,40,0.55);

padding:35px;

border-radius:16px;

text-align:center;

border:1px solid rgba(0,229,255,0.2);

backdrop-filter: blur(14px);

transition:0.35s;

}


/* HOVER */

.stat-card:hover{

transform:translateY(-8px);

border-color:#22d3ee;

box-shadow:

0 0 15px rgba(34,211,238,0.4);

}


/* NUMBER */

.stat-card h3{

font-size:42px;

color:#22d3ee;

margin-bottom:10px;

}


/* TEXT */

.stat-card p{

color:#94a3b8;

font-size:16px;

}

/* =========================
   HIGHLIGHT CARDS
========================= */

.highlights {

  display: flex;

  justify-content: center;

  gap: 20px;

  margin-top: 40px;

  flex-wrap: wrap;

}


.highlight-title {

  font-size: 22px;

  color: var(--text-main);

  margin-bottom: 20px;

}


.highlight-card {

  background: var(--card-bg);

  padding: 20px;

  width: 250px;

  border-radius: 10px;

  transition: 0.3s;

}


.highlight-card:hover {

  transform: translateY(-10px) scale(1.03);

  background: var(--card-hover);

  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);

}


.highlight-card h3 {

  color: var(--primary);

  margin-bottom: 10px;

}


.highlight-card p {

  font-size: 14px;

  color: var(--text-secondary);

}

/* =========================
   SKILLS GRID FINAL
========================= */

.skills {

  padding: 140px 20px;

  text-align: center;

}


.skills-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 30px;

  margin-top: 50px;

}


.skill-card {

  background: linear-gradient(
    145deg,
    rgba(17,24,39,0.9),
    rgba(17,24,39,0.6)
  );

  border: 1px solid rgba(0,229,255,0.15);

}


.skill-card:hover {

  transform: translateY(-10px);

  box-shadow: 0 0 30px rgba(0,229,255,0.35);

}


.skill-card h3 {

  color: var(--primary);

  margin-bottom: 20px;

}


/* =========================
   SKILL TAG BASE
========================= */

.skill-list span {

  display: inline-block;

  padding: 8px 14px;

  margin: 6px;

  border-radius: 20px;

  font-size: 14px;

  font-weight: 500;

  transition: 0.3s;

}

/* Python */

.skill-list span:nth-child(1) {

  color: #38bdf8;

  border: 1px solid #38bdf8;

}


/* JavaScript */

.skill-list span:nth-child(2) {

  color: #facc15;

  border: 1px solid #facc15;

}


/* TypeScript */

.skill-list span:nth-child(3) {

  color: #60a5fa;

  border: 1px solid #60a5fa;

}


/* C++ */

.skill-list span:nth-child(4) {

  color: #818cf8;

  border: 1px solid #818cf8;

}
/* Machine Learning */

.skill-card:nth-child(3) .skill-list span:nth-child(1){

color:#22c55e;
border-color:#22c55e;

}

/* Deep Learning */

.skill-card:nth-child(3) .skill-list span:nth-child(2){

color:#a78bfa;
border-color:#a78bfa;

}

/* Computer Vision */

.skill-card:nth-child(3) .skill-list span:nth-child(3){

color:#f472b6;
border-color:#f472b6;

}

/* TensorFlow */

.skill-card:nth-child(3) .skill-list span:nth-child(4){

color:#f97316;
border-color:#f97316;

}
.skill-list span:hover {

  color: black;

}
.skill-list span:nth-child(1):hover{
background:#38bdf8;
}

.skill-list span:nth-child(2):hover{
background:#facc15;
}

.skill-list span:nth-child(3):hover{
background:#60a5fa;
}

.skill-list span:nth-child(4):hover{
background:#818cf8;
}

/* =========================
   AI TAG COLORS — FIX MISSING BORDERS
========================= */

/* OpenCV */

.skill-card:nth-child(3) .skill-list span:nth-child(5){

  color:#06b6d4;
  border:1px solid #06b6d4;

}

/* Scikit-learn */

.skill-card:nth-child(3) .skill-list span:nth-child(6){

  color:#f59e0b;
  border:1px solid #f59e0b;

}

/* CNN */

.skill-card:nth-child(3) .skill-list span:nth-child(7){

  color:#ef4444;
  border:1px solid #ef4444;

}

/* Vertex AI */

.skill-card:nth-child(3) .skill-list span:nth-child(8){

  color:#8b5cf6;
  border:1px solid #8b5cf6;

}

.skill-card:nth-child(3) .skill-list span:nth-child(5):hover{
background:#06b6d4;
color:black;
}

.skill-card:nth-child(3) .skill-list span:nth-child(6):hover{
background:#f59e0b;
color:black;
}

.skill-card:nth-child(3) .skill-list span:nth-child(7):hover{
background:#ef4444;
color:black;
}

.skill-card:nth-child(3) .skill-list span:nth-child(8):hover{
background:#8b5cf6;
color:black;
}

/* =========================
   PROJECTS SECTION FIXED GRID
========================= */

.projects {

  padding: 140px 40px;

  text-align: center;

}


.projects-container {

display: grid;

grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

gap: 35px;

padding-top: 30px;

}

/* =========================
   PROJECT CARD — ELITE LEVEL

   ALL PROJECT CARDS HIGHLIGHTED
========================= */
/* =========================
   PROJECTS HEADING CYAN
========================= */

.projects h2 {

  font-size: 40px;

  color: #22d3ee;

  text-align: center;

  margin-bottom: 20px;

  text-shadow: none;

}

.project-card {

  background: rgba(17, 25, 40, 0.6);

  padding: 30px;

  border-radius: 14px;

  border: 1px solid rgba(0,229,255,0.25);

  transition: all 0.35s ease;

  backdrop-filter: blur(10px);

}

/* PROJECT TITLE */

.project-card h3 {

  color: #22d3ee;   /* softer cyan */

  text-shadow:

    0 0 4px rgba(34,211,238,0.25);

}
/* =========================
   PROJECT CARD BORDER GLOW ONLY
========================= */


/* glowing border effect */

.project-card:hover {

  transform: translateY(-8px);

  border-color: var(--primary);

  box-shadow:

     0 0 8px rgba(0,229,255,0.5),
    0 0 18px rgba(0,229,255,0.35),
    inset 0 0 8px rgba(0,229,255,0.15);
}

.project-card::before {

  content: "";

  position: absolute;

  inset: 0;

  border-radius: 14px;

  padding: 1px;

  background: linear-gradient(
    120deg,
    transparent,
    var(--primary),
    transparent
  );

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  opacity: 0;

  transition: 0.4s;

  pointer-events: none;   /* ⭐ THIS FIXES EVERYTHING */

}


.project-card:hover::before {

  opacity: 1;

}

.project-links {

  margin-top: auto;

  padding-top: 20px;

}

.project-links a {

  display: inline-block;

  padding: 10px 18px;

  border-radius: 8px;

  border: 1px solid var(--primary);

  color: var(--primary);

  text-decoration: none;

  font-weight: 500;

  transition: 0.3s;

}


.project-links a:hover {

  background: var(--primary);

  color: black;

}

/* =========================
   ACHIEVEMENTS SECTION
========================= */
.section-subtitle {

  color: var(--text-secondary);

  margin-top: 15px;

  margin-bottom: 60px;   /* increased from 40 → 60 */

  text-align: center;

  font-size: 17px;

}

.achievements {

  padding: 140px 40px;

  text-align: center;

}

/* GRID — FIX */

.achievements-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 35px;

  max-width: 1200px;

  margin-top: 40px;

  margin: 0 auto;

}

/* CARD */

.achievement-card {

  background: rgba(17, 25, 40, 0.6);

  padding: 30px;

  border-radius: 14px;

  border: 1px solid rgba(0,229,255,0.25);

  transition: 0.35s;

  backdrop-filter: blur(10px);

}

/* HOVER BORDER GLOW */

.achievement-card:hover {

  transform: translateY(-8px);

  border-color: var(--primary);

  box-shadow:

    0 0 10px rgba(0,229,255,0.5),
    0 0 20px rgba(0,229,255,0.2);

}

/* ICON */

.achievement-icon {

  font-size: 36px;

  margin-bottom: 15px;

}

/* TITLE */

.achievement-card h3 {

  color: var(--heading-cyan);

}

/* TEXT */

.achievement-card p {

  color: var(--text-secondary);

}

/* =========================
   TYPING CURSOR
========================= */

.cursor {

  font-size: 60px;

  color: var(--primary);

  animation: blink 1s infinite;

}


@keyframes blink {

  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

}

/* Fix navbar overlap */

section {

  scroll-margin-top: 100px;

}

/* =========================
   RESUME SECTION
========================= */

.resume {

padding: 140px 40px;

text-align: center;

}

.resume-container {

max-width: 1100px;

margin: auto;

}


.resume-viewer {

width: 100%;

height: 650px;

border-radius: 14px;

border: 1px solid rgba(0,229,255,0.25);

background: rgba(17,25,40,0.6);

backdrop-filter: blur(10px);

}


.resume-buttons {

margin-top: 25px;

display: flex;

justify-content: center;

gap: 20px;

}


.resume-btn {

padding: 12px 26px;

border-radius: 8px;

border: 1px solid var(--primary);

color: var(--primary);

text-decoration: none;

font-weight: 600;

transition: 0.3s;

}


.resume-btn:hover {

background: var(--primary);

color: black;

} 
/* =========================
   CONTACT SECTION — FIXED
========================= */

.contact {

padding: 140px 40px;

}


/* MAIN LAYOUT */

.contact-container {

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: start;

  gap: 40px;

  max-width: 1200px;

  margin: 0 auto;

  padding-top: 40px;

}


/* LEFT SIDE */

.contact-left {

  max-width: 520px;

}


.contact-left h3 {

  color: var(--primary);

  margin-bottom: 15px;

}


.contact-left p {

  color: var(--text-secondary);

  margin-bottom: 30px;

  max-width: 500px;

}


/* INFO ITEMS */

.contact-info-item {

  margin-bottom: 15px;

  display: flex;

  align-items: center;

  gap: 12px;

}


.contact-info-item i {

  color: var(--primary);

  width: 20px;

}


/* =========================
   RIGHT SIDE FORM
========================= */

.contact-form {

  width: 100%;
  max-width: 460px;

  justify-self: end;

  padding: 35px;

  border-radius: 16px;

  background: rgba(17, 25, 40, 0.55);

  backdrop-filter: blur(18px);

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

  border: 1px solid rgba(0, 229, 255, 0.18);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.35);

}

/* INPUT ROW */

.form-row {

  display: flex;

  gap: 15px;

}


.form-row input {

  flex: 1;

}


/* INPUT FIELDS */

.contact-form input,
.contact-form textarea {

  padding: 12px;

  border-radius: 6px;

  border: 1px solid rgba(0,229,255,0.3);

  background: transparent;

  color: white;

  width: 100%;

  font-size: 14px;

}


/* TEXTAREA */

.contact-form textarea {

  height: 120px;

  resize: none;

}


/* BUTTON */

.contact-form button {

  padding: 14px;

  border: none;

  background: linear-gradient(
    135deg,
    #00bcd4,
    #0097a7
  );

  color: white;

  font-weight: 600;

  cursor: pointer;

  border-radius: 8px;

  transition: all 0.3s ease;

}


/* hover */

.contact-form:hover {

  border-color: rgba(0,229,255,0.4);

  box-shadow:
    0 0 20px rgba(0,229,255,0.15);

}

.contact-form button:hover {

  background: linear-gradient(
    135deg,
    #00acc1,
    #00838f
  );

  transform: translateY(-2px);

  box-shadow: 0 6px 20px rgba(0,188,212,0.25);

}

/* RESULT MESSAGE */

#result {

  margin-top: 10px;

  color: var(--primary);

}


/* =========================
   ACTIVE NAV LINK
========================= */

.nav-menu a.active {

  color: var(--primary);

  border-bottom: 2px solid var(--primary);

  padding-bottom: 4px;

}