/* Color Palette & Custom Properties */
:root {
  --bg-dark: #070a12;
  --card-bg: #0d1424;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: #3b82f6;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Soft Ambient Glow Blobs */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  top: 400px;
  left: -200px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-purple);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.btn-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent-cyan);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-blog:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 9.5rem 0 5rem 0;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding: 0 1.5rem;
}

/* Hero Tag with Horizontal Gradient Line Prefix */
.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.hero-tag .dash {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  border-radius: 2px;
  display: inline-block;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: #a78bfa;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

/* Action Buttons */
.hero-cta {
  display: flex;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

/* Profile Card */
.profile-card-wrapper {
  display: flex;
  justify-content: center;
  padding-left: 2.5rem;
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Vertical Gradient Line on Profile Card */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.avatar-ring {
  width: 210px;
  height: 210px;
  margin: 0 auto 1.8rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #1e293b;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glowing Horizontal Line Divider Inside Card */
.card-divider {
  height: 1px;
  background: linear-gradient(
    90deg, 
    rgba(34, 211, 238, 0) 0%, 
    rgba(34, 211, 238, 0.5) 30%, 
    rgba(168, 85, 247, 0.5) 70%, 
    rgba(168, 85, 247, 0) 100%
  );
  margin-bottom: 1.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #818cf8;
}

.stat-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Section Common Layout */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
}

.section-heading .hash {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.section-subtext {
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Base Card Styling with Vertical Gradient Accent Line */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Left Accent Vertical Gradient Line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg, 
    var(--accent-cyan) 0%, 
    var(--accent-purple) 75%, 
    rgba(168, 85, 247, 0.1) 100%
  );
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  transition: var(--transition);
}

/* Hover Effect: Border Glow and Elevation */
.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
  transform: translateY(-3px);
}

.card:hover::before {
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.9);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

/* Core Competencies & Bullet List Styling */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  color: var(--text-secondary);
  padding: 0.6rem 0.4rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  /* Smooth transition for hover movement and color change */
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.25s ease, 
              background-color 0.25s ease;
}

.bullet-list li:last-child {
  border-bottom: none;
}

.bullet-list i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Mouse Hover Effect for Core Competencies items */
.bullet-list li:hover {
  transform: translateX(8px); /* Moves text slightly to the right on hover */
  color: #ffffff; /* Brighter white text */
}

.bullet-list li:hover i {
  color: #38bdf8;
  transform: scale(1.2); /* Slightly enlarges bullet icon on hover */
}

/* Skill Tags & Badges */
.skill-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-card h3 i {
  color: var(--accent-cyan);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-group span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag-group span:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* Timeline / Experience */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.company-name {
  color: var(--accent-purple);
  font-weight: 500;
  font-size: 0.95rem;
}

.badge-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Featured Projects */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.info-icon {
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.info-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-card p {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--card-border);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

/* Footer with Top Horizontal Gradient Border */
.footer {
  position: relative;
  padding: 3rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg, 
    rgba(34, 211, 238, 0) 0%, 
    rgba(34, 211, 238, 0.3) 30%, 
    rgba(168, 85, 247, 0.3) 70%, 
    rgba(168, 85, 247, 0) 100%
  );
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.footer-socials a {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-tag, .hero-cta {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
  }

}

