/* Root variables */
:root {
  --primary: #2563eb;
  --primary-glow: #3b82f6;
  --dark-bg: #0b1120;
  --card-bg: #1e293b;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
}

/* Global */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .display-1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link i,
.nav-link .emoji {
  margin-right: 6px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15), transparent 40%);
}

/* Hero */
.hero {
  min-height: 80vh;  /* was 100vh */
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15), transparent 40%);
}

/* smaller, cleaner hero heading */
.hero-name {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
}

/* gradient + typewriter role line */
.hero-role {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #60a5fa;
  font-weight: 700;
}

/* 26 characters: "Java Full Stack Developer" */
.typewriter {
  width: 0;
  animation:
    typing 2.5s steps(26, end) 0.4s forwards,
    blinkCursor 0.8s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blinkCursor {
  0%, 50%   { border-color: #60a5fa; }
  51%, 100% { border-color: transparent; }
}

.hero-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.hero-subtitle {
  color: #cbd5e1 !important;
}

.hero-crown {
  color: #fbbf24;
}

/* hero image wrapper + medium size */
.hero-image-wrapper {
  display: inline-block;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(37,99,235,0.4), rgba(124,58,237,0.25));
  box-shadow: 0 18px 45px rgba(15,23,42,0.85);
}

.hero-image {
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-name {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
}


/* Hero right image */
/* Simple, clean circular photo */
.hero-photo {
  width: 260px;              /* medium size */
  height: 260px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;         /* prevents stretching and keeps aspect ratio [web:83] */
  border: 4px solid #020617;
}

/* Keep layout nice on large screens */
/* lift hero image a bit under navbar */
@media (min-width: 992px) {
  #home .col-lg-5 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -20px;   /* move image up; adjust -10 / -30 as you like */
  }
}
#about .skill-badge {
  margin: 0.3rem 0.5rem 0 0.5rem;  /* top, right, bottom, left */
}



/* Buttons */
.btn-gradient {
  background: linear-gradient(145deg, #2563eb, #7c3aed);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5);
}

/* Section title */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  border-radius: 4px;
}

/* Cards */
.custom-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  transition: 0.3s;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--accent-cyan);
}

.emoji-large {
  font-size: 3rem;
  line-height: 1;
}

/* Skill badges */
.skill-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Progress bar styling (Bootstrap base + custom colors) */
.progress {
  height: 8px;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 999px;
}

/* Experience timeline */
.timeline-item {
  border-left: 3px solid var(--primary);
  padding-left: 2rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '💼';
  position: absolute;
  left: -16px;
  top: 0;
  background: var(--dark-bg);
  font-size: 1.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Project emoji placeholders */
.project-img-emojis {
  font-size: 4rem;
  background: rgba(0,0,0,0.3);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--primary);
}

/* Contact & footer */
.contact-item {
  background: rgba(255,255,255,0.02);
  border-radius: 60px;
  padding: 1rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.2s;
}

.contact-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(37,99,235,0.1);
}

footer {
  background: #0a0f1a;
  border-top: 1px solid #1e293b;
}

/* Icons colors */
.java-icon {
  color: #f89820;
}

.spring-icon {
  color: #6db33f;
}

.db-icon {
  color: #2563eb;
}

.cloud-icon {
  color: #f1f5f9;
}

.about-heart {
  color: #f472b6;
}

/* AOS pointer events */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-name {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2rem;
  }
}
