:root {
  --bg-main: #0a192f;
  --bg-secondary: #112240;
  --card-bg: #0f2747;
  --accent: #64ffda;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --white-soft: #e6f1ff;
  --shadow: 0 10px 30px rgba(2, 12, 27, 0.7);

  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.accent-text {
  color: var(--accent);
}

.section-container {
  padding: 100px 10vw;
  max-width: 1300px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: center;
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 50px;
  font-weight: 800;
}

.section-heading span {
  margin-right: 10px;
  color: var(--accent);
  font-weight: 400;
}

.section-heading::after {
  content: "";
  display: block;
  height: 1px;
  width: 250px;
  background: var(--bg-secondary);
  margin-left: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(12px);
  z-index: 999;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-nav {
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--accent) !important;
}

.btn-nav:hover {
  background: rgba(100, 255, 218, 0.08);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--accent);
  cursor: pointer;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 10vw 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content {
  flex: 1.4;
}

.hero-content h1 {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-content h2 {
  font-size: clamp(28px, 5vw, 54px);
  color: var(--text-secondary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-description {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn-main,
.btn-outline {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  transition: 0.3s ease;
}

.btn-main {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-main:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 rgba(100, 255, 218, 0.18);
}

.btn-outline {
  border: 2px solid var(--text-secondary);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-links a:hover {
  color: var(--accent);
}

/* Hero image */
.hero-image-container {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 58% 42% 35% 65% / 60% 35% 65% 40%;
  position: relative;
  z-index: 2;
  filter: grayscale(100%);
  transition: 0.5s ease;
}

.image-deco-box {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 3px solid var(--accent);
  top: 18px;
  right: 30px;
  border-radius: 58% 42% 35% 65% / 60% 35% 65% 40%;
  z-index: 1;
  transition: 0.5s ease;
}

.hero-image-container:hover .profile-img {
  filter: none;
  transform: translate(-6px, -6px);
}

.hero-image-container:hover .image-deco-box {
  transform: translate(6px, 6px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1rem;
}

.about-info-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-info-card h4 {
  margin-bottom: 18px;
  color: var(--accent);
}

.about-info-card li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.skill-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
}

.moved-down {
  transform: translateY(20px);
}

.moved-down:hover {
  transform: translateY(10px);
}

.highlight-card {
  border: 1px solid var(--accent);
  background: rgba(100, 255, 218, 0.04);
}

.skill-card .ico {
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.skill-card h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.skill-card p {
  color: var(--text-secondary);
}

.tech-stack {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tech-stack span {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ================= PROJECT SECTION CLEAN VERSION ================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

/* Project Card */
.project-card {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden; /* FIX overflow issue */
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-8px);
  border: 1px solid var(--accent);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Title */
.project-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* Description */
.project-card p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Bullet Points */
.project-points {
  margin: 10px 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-points li {
  margin-bottom: 6px;
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.project-tags span {
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(100, 255, 218, 0.3);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Links */
.project-links {
  display: flex;
  gap: 15px;
  margin-top: auto; /* pushes links to bottom */
}

.project-links a {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.project-links a:hover {
  color: var(--accent);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* Resume */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.resume-card {
  background: var(--bg-secondary);
  padding: 28px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.resume-card h4 {
  margin-bottom: 14px;
  color: var(--white-soft);
}

.resume-card p,
.resume-card li {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Contact */
.contact-section {
  min-height: 75vh;
  padding: 120px 10vw 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content {
  max-width: 720px;
}

.big-contact-title {
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 900;
  margin: 18px 0;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.05rem;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  margin-top: 80px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(35px);
  animation: fadeUp 1s ease forwards;
}

.fade-up:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 30px;
  }

  .hero-buttons,
  .social-links {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-img,
  .image-deco-box {
    width: 260px;
    height: 260px;
  }

  .image-deco-box {
    right: 15px;
    top: 15px;
  }

  .moved-down {
    transform: translateY(0);
  }

  .moved-down:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 6vw;
    width: 220px;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 10px;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .section-heading::after {
    width: 120px;
  }
}
body {
  background: #0a192f;
  color: #ccd6f6;
}

.section-heading {
  color: #64ffda;
}


.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}
.project-points {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
  color: #a8b2d1;
}

.project-points li {
  margin-bottom: 5px;
}