:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #111633;
  --bg-card: #16213e;
  --text-primary: #e8ecf1;
  --text-secondary: #a8b2c1;
  --accent: #00d4ff;
  --accent-hover: #00a8cc;
  --accent-light: #00f0ff;
  --border: #1e2a48;
  --shadow: rgba(0, 212, 255, 0.15);
  --nav-bg: rgba(10, 14, 39, 0.92);
  --gradient-1: #00d4ff;
  --gradient-2: #0099cc;
  --gradient-3: #00f0ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  padding: 1rem 2rem;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-bracket {
  color: var(--accent);
  font-size: 1.8rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-1);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-2);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Navbar stays visible and hero image moves below it */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  z-index: 1000;
  height: 70px; /* make sure height is fixed */
  display: flex;
  align-items: center;
}

/* Hero spacing so content starts below navbar */
.hero {
  margin-top: 70px; /* same as nav height */
}

/* On small devices increase if still overlapping */
@media (max-width: 480px) {
  nav {
    height: 80px;
  }
  .hero {
    margin-top: 90px;
  }
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

/* Center Profile Image */
.hero-image-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.wave {
  font-size: 2rem;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-container {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 600;
}

.static-text {
  margin-right: 0.5rem;
}

.typewriter {
  color: var(--accent);
  font-weight: 700;
}

.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 700px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(22, 33, 62, 0.5);
  border-radius: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 600px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.stat-item i {
  font-size: 2rem;
  color: var(--accent);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.skill-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.skill-tag:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
  border-color: var(--accent);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.btn {
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--gradient-2));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  animation: bounce 2s ease-in-out infinite;
  margin-top: 2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===== PROFILE IMAGE ===== */
.image-container {
  position: relative;
  width: 340px;
  height: 340px;
}

.image-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  box-shadow: 0 20px 60px var(--shadow);
  z-index: 2;
}

.floating-card {
  position: absolute;
  background: rgba(22, 33, 62, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px var(--shadow);
  animation: float-card 3s ease-in-out infinite;
  z-index: 3;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.floating-card i {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-1 {
  top: 15%;
  right: -25%;
}

.card-2 {
  bottom: 20%;
  left: -25%;
  animation-delay: 1s;
}

.card-3 {
  top: 50%;
  right: -20%;
  animation-delay: 2s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background: rgba(22, 33, 62, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
  border-color: var(--accent);
  background: rgba(22, 33, 62, 0.8);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(22, 33, 62, 0.5);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--accent);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 0.75rem;
  color: var(--accent-light);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(22, 33, 62, 0.5);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(22, 33, 62, 0.3);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--nav-bg);
    width: 250px;
    padding: 2rem;
    border-left: 1px solid var(--border);
    border-radius: 0 0 0 12px;
    height: calc(100vh - 70px);
    gap: 1.5rem;
    transition: 0.3s;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 6rem 1.5rem 2rem;
  }

  .image-container {
    width: 280px;
    height: 280px;
  }

  .card-1, .card-2, .card-3 {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .card-1 {
    top: 10%;
    right: -20%;
  }

  .card-2 {
    bottom: 15%;
    left: -20%;
  }

  .card-3 {
    top: 50%;
    right: -15%;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .typewriter-container {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .skill-tags {
    gap: 0.5rem;
  }

  .skill-tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

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

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .skill-card {
    padding: 1rem;
  }

  .skill-card i {
    font-size: 2rem;
  }

  .skill-card h3 {
    font-size: 0.85rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }

  .hero {
    padding: 4.5rem 1rem 1rem;
  }

  .image-container {
    width: 220px;
    height: 220px;
  }

  .profile-img {
    border-width: 3px;
  }

  .card-1, .card-2, .card-3 {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }

  .card-1 {
    top: 5%;
    right: -15%;
  }

  .card-2 {
    bottom: 10%;
    left: -15%;
  }

  .card-3 {
    top: 45%;
    right: -12%;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .typewriter-container {
    font-size: 1rem;
    min-height: 40px;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .stat-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .skill-card {
    padding: 0.75rem;
  }

  .skill-card i {
    font-size: 1.5rem;
  }

  .skill-card h3 {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .project-image {
    height: 150px;
  }
}