/* ===== CSS Variables & Reset ===== */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 35, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --primary: #00f0ff;
  --primary-dark: #00c4d4;
  --secondary: #ff00aa;
  --accent: #7b2cff;
  --text: #e0e0ff;
  --text-muted: #8892b0;
  --border: rgba(0, 240, 255, 0.15);
  --gradient: linear-gradient(135deg, #00f0ff, #7b2cff, #ff00aa);
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.3);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* ===== HERO / HOME ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 2rem 80px;
  z-index: 1;
}
.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-greeting {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.name-part { display: inline-block; }
.name-part.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typing-container {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.typing-text { color: var(--primary); font-weight: 600; }
.cursor-blink { animation: blink 0.8s infinite; color: var(--primary); }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 520px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gradient);
  color: #0a0a0f;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}
.full-width { width: 100%; justify-content: center; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.image-frame {
  position: relative;
  width: 380px;
  height: 450px;
}
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
  position: relative;
  z-index: 2;
}
.image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient);
  border-radius: 30px;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.55; }
}
.frame-border {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  padding: 3px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  pointer-events: none;
}
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  animation: float 4s ease-in-out infinite;
}
.floating-badge i { color: var(--primary); }
.badge-1 { top: 10%; left: -30px; animation-delay: 0s; }
.badge-2 { bottom: 25%; right: -40px; animation-delay: 1s; }
.badge-3 { bottom: 5%; left: 10%; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.5s forwards;
}
.mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 3px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BIG PAGE LAYOUT ===== */
.page-main {
  flex: 1;
  min-height: 100vh;
  padding: 130px 0 80px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.section-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-line {
  width: 80px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 2px;
}
.section-desc {
  color: var(--text-muted);
  margin-top: 1.2rem;
  font-size: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.about-img-wrapper img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.experience-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  text-align: center;
}
.exp-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}
.exp-text { font-size: 0.85rem; color: var(--text-muted); }
.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  line-height: 1.7;
}
.about-content strong { color: var(--primary); }
.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin: 2.5rem 0;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  transition: all 0.3s;
}
.info-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}
.info-item i {
  font-size: 1.4rem;
  color: var(--primary);
  width: 32px;
  text-align: center;
}
.info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.info-value {
  font-weight: 600;
  font-size: 1rem;
}
.about-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.8rem;
}
.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem 1.4rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.08), transparent);
  transition: left 0.5s;
}
.skill-card:hover::before { left: 100%; }
.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}
.skill-icon {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.skill-level {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 2.2rem;
}
.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  min-height: 380px;
}
.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-neon);
}
.project-img {
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.1;
}
.project-img i {
  font-size: 4.5rem;
  color: var(--primary);
  opacity: 0.65;
  z-index: 1;
}
.project-content { padding: 1.8rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--primary);
}
.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.project-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.3rem;
  line-height: 1.55;
}
.project-links { display: flex; gap: 0.8rem; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all 0.3s;
}
.project-link:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: var(--shadow-neon);
}

/* ===== TIMELINE / EXPERIENCE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -36px; top: 12px;
  width: 18px; height: 18px;
  background: var(--bg-dark);
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--primary);
  z-index: 2;
}
.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2.3rem;
  transition: all 0.4s ease;
}
.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
  transform: translateX(10px);
}
.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.timeline-content h4 {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.timeline-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.65;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}
.contact-icon {
  width: 55px; height: 55px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.3rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.15rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.3rem;
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-logo .logo-text { font-size: 1.5rem; }
.footer-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 0.8rem; }
.social-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-bottom i { color: var(--secondary); }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; margin-bottom: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .image-frame { width: 320px; height: 380px; }
}
@media (max-width: 768px) {
  /* Mobile Sidebar - Clean */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #0d0d14;
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 100px 2rem 2rem;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open { right: 0; }
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.15rem;
    color: #e0e0ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    color: #00f0ff;
  }
  .nav-links .nav-link::after { display: none; }

  .hamburger { display: flex; z-index: 1001; }

  /* Hide Explore More mouse on mobile */
  .scroll-indicator { display: none !important; }

  /* Hero mobile */
  .hero {
    height: auto !important;
    min-height: auto !important;
    padding: 100px 1.2rem 50px !important;
  }
  .hero-stats {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.8rem; }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .projects-grid { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; }
  .about-img-wrapper img { height: 360px; }
  .floating-badge { display: none !important; }
  .page-main { padding: 100px 0 50px; min-height: auto; }
  .section-title { font-size: 2rem; }
  .image-frame { width: 260px; height: 320px; }
  .hero-image { order: -1; margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.6rem !important; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  .image-frame { width: 240px; height: 290px; }
  .nav-links { width: 85%; }
}

/* ===== HOME PAGE EXTRA SECTIONS ===== */
.home-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-cta .cta-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
}

.home-cta .cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.home-cta .cta-box h2 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-cta .cta-box p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Make hero taller and more impactful */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 100px;
}

.image-frame {
  width: 400px;
  height: 480px;
}

@media (max-width: 1024px) {
  .image-frame {
    width: 320px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .home-section {
    padding: 70px 0;
  }
  .home-cta .cta-box {
    padding: 2.5rem 1.5rem;
  }
  .image-frame {
    width: 280px;
    height: 340px;
  }
}

/* ===== HOME EXTRA SECTIONS ===== */
.home-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  transition: all 0.4s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}
.service-icon {
  width: 60px; height: 60px;
  background: rgba(0,240,255,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.3rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.home-cta {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  backdrop-filter: blur(12px);
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT EXTRA ===== */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.competency-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.3s;
}
.competency-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.competency-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}
.competency-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.competency-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.fact-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.fact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.fact-value {
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== SKILLS CATEGORIES ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.3s;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}
.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.category-card h3 i { color: var(--primary); }
.category-card ul {
  list-style: none;
}
.category-card ul li {
  color: var(--text-muted);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.95rem;
}
.category-card ul li:last-child { border-bottom: none; }

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.2rem;
  text-align: center;
  transition: all 0.3s;
}
.achievement-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.ach-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.achievement-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.achievement-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== AVAILABILITY ===== */
.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.avail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}
.avail-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.avail-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.avail-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.avail-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Hero full height fix */
.hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 2rem;
  z-index: 1;
}
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 1.5rem 80px;
  }
}

/* ===== FINAL FIXES ===== */
.page-main {
  min-height: 100vh !important;
  padding: 140px 0 100px !important;
  display: block !important;
}
.section-header { margin-bottom: 5rem !important; }
.section-title { font-size: clamp(2.8rem, 6vw, 4.2rem) !important; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-card {
  word-break: break-word;
}
.contact-card p {
  word-break: break-all;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .page-main {
    padding: 100px 0 60px !important;
    min-height: auto !important;
  }
  .section-header { margin-bottom: 2.5rem !important; }
  .section-title { font-size: 2.1rem !important; }

  /* Contact single column */
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .contact-form { padding: 1.5rem !important; }
  .contact-card p { font-size: 0.85rem; word-break: break-word; }

  /* Sidebar */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background: #0d0d14 !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 90px 1.8rem 2rem !important;
    gap: 0 !important;
    z-index: 1000 !important;
    border-left: 1px solid rgba(0,240,255,0.2) !important;
  }
  .nav-links.open { right: 0 !important; }
  .nav-links .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 0.95rem 0 !important;
    font-size: 1.1rem !important;
    color: #e0e0ff !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }
  .nav-links .nav-link::after { display: none !important; }
  .hamburger { display: flex !important; z-index: 1001 !important; }

  .scroll-indicator { display: none !important; }
  .floating-badge { display: none !important; }

  .hero {
    height: auto !important;
    min-height: auto !important;
    padding: 100px 1.2rem 50px !important;
  }
  .hero-btns { flex-direction: column !important; align-items: center !important; }
  .hero-btns .btn { width: 100% !important; max-width: 280px !important; justify-content: center !important; }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .competency-grid,
  .facts-grid,
  .category-grid,
  .achievements-grid,
  .availability-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ===== CERTIFICATES ===== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.certificate-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.certificate-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.certificate-img {
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.certificate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-img i {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.6;
}

.certificate-content {
  padding: 1.5rem;
}

.certificate-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.certificate-content .cert-org {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.certificate-content .cert-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.certificate-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.certificate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all 0.3s;
}

.certificate-link:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: var(--shadow-neon);
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

/* Certificate Popup / Lightbox */
.cert-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

.cert-popup-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.cert-popup-box img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.cert-popup-title {
  color: #e0e0ff;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.cert-popup-close {
  position: absolute;
  top: -15px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: #0a0a0f;
  color: #00f0ff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: 0.3s;
}

.cert-popup-close:hover {
  background: #00f0ff;
  color: #0a0a0f;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ===== FOOTER ===== */
.footer {
  background: rgba(10, 10, 18, 0.95);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-social .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
}

.footer-social .social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  transition: all 0.25s;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-col a i {
  margin-right: 0.4rem;
  color: var(--primary);
  width: 16px;
}

.footer-location {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.footer-location i {
  color: var(--primary);
  margin-right: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom .fa-heart {
  color: var(--secondary);
}

/* Footer Mobile */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 3rem 0 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand p {
    max-width: 100%;
  }
}
