/* 1. Global Reset & Variables */
:root {
  --bg-dark: #121212;
  --bg-card: #1e293b;
  --accent: #8b5cf6;
  --text-white: #ffffff;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --text-dim: #94a3b8; /* A lighter gray for subtext */
  --glass-bg: rgba(63, 89, 128, 0.025);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* --transition: all 0.3s ease; */
}

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

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

/* 2. Utility Classes */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(18, 18, 18, 0.8); /* Deep Charcoal with transparency */
  backdrop-filter: blur(12px); /* The Glassmorphism Effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.subtitle {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.highlight {
  background: linear-gradient(90deg, var(--accent), #b794f4);
  -webkit-background-clip: text;
  background-clip: text; /* The standard property */
  -webkit-text-fill-color: transparent;
}

.description {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* --- Hero Visual (The Glow Blob) --- */

/* @keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
} */

/* Secondary Button Style */
.btn-secondary {
  border: 1px solid var(--bg-card);
  color: var(--text-white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

/* hero-visual */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Essential for 3D depth */
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
}

/* Layered Glows for Depth */
.visual-glow-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.3;
  top: 10%;
  right: 10%;
  border-radius: 50%;
  animation: pulse 8s infinite alternate;
}

.visual-glow-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  background: #4f46e5; /* Deep Indigo */
  filter: blur(60px);
  opacity: 0.2;
  bottom: 20%;
  left: 10%;
  border-radius: 50%;
}

/* The Frame */
.main-portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: rotateY(-10deg) rotateX(5deg); /* Professional Angle */
  transition: transform 0.6s ease;
}

.main-portrait-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.8));
  z-index: 3;
}

/* Floating Tech Badges */
.floating-badge {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgb(6, 9, 40);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.66);
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  top: 15%;
  right: -20px;
  animation-delay: 0s;
}
.badge-2 {
  bottom: 25%;
  left: -20px;
  animation-delay: 2s;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.2;
  }
  to {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

/* styles for js functions  */

/* Active Nav Link Glow */
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  margin-top: 5px;
}

/* Base Reveal State */
section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

section.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ends here */

.skills-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, #12121207 0%, #16161600 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: 10px;
  -webkit-backdrop-filter: blur(20px);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card:hover {
  border-color: var(--text-white);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Sizing for Bento effect */
.large {
  grid-column: span 2;
  grid-row: span 2;
}

.medium {
  grid-column: span 1;
  grid-row: span 2;
}

.small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Elements inside cards */
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.bento-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Tech Tags */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* projects section  */

.project-section {
  padding: 10rem 0;
  background-color: black;
}

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

/* The Magic Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Forces 2 columns on desktop */
  gap: 3rem; /* Spacious gap for a premium feel */
}

.project-card {
  background: var(--bg-card); /* #1E293B - This is vital for contrast */
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--text-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image-container {
  width: 100%;
  height: 280px; /* Consistent height */
  position: relative;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%); /* Modern aesthetic */
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.img-overlay {
  position: absolute;
  inset: 0; /* Shorthand for top, left, right, bottom: 0 */
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .img-overlay {
  opacity: 1;
}

.project-info {
  padding: 2rem;
}

.p-category {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin: 0.8rem 0;
  color: var(--text-white);
}

.project-info p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.p-link {
  color: #ffffff;
}

/* figma gallery */
.design-section {
  padding: 8rem 0;

  background: radial-gradient(
    circle at top left,
    rgba(138, 92, 246, 0.65),
    transparent 40%
  );
  background-color: black;
}

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

.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.glass-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.glass-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.glass-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}

.action-link {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.3s;
}

.action-link.pdf {
  border: 1px solid var(--glass-border);
  color: white;
}
.action-link.figma {
  background: var(--accent);
  color: white;
}

.action-link.pdf:hover {
  background-color: #ffffff47;
}

.action-link.figma:hover {
  background-color: var(--accent-glow);
}

/* contact section  */

.contact-section {
  padding: 10rem 0;
  background:
    radial-gradient(circle at top left, rgb(0, 10, 6), transparent 100%),
    url(https://i.pinimg.com/736x/87/4f/6c/874f6c8d73e1968e9415675db89e4288.jpg);
  background-size: contain;
}

.contact-glass-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.592);
  border-radius: 40px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

/* The "Glow" behind the glass */
.contact-glass-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.05) 0%,
    transparent 70%
  );
  z-index: -1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-icon {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

.info-text span {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.contact-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--accent);
}

/* Social Pills */
.social-links-row {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.social-pill {
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.3s;
}

.social-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* CTA Side */
.contact-cta h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.main-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 700;
  margin-top: 2rem;
  transition: var(--transition);
}

.main-contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* Skills Section Base */
.skills-section {
  padding: 10rem 0;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.05) 0%,
    transparent 70%
  );
  background-color: black;
}

/* Profile Image Glow (Referencing image_78b299.jpg) */
.profile-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2rem auto;
}

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

/* .profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: var(--accent);
  filter: blur(40px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: 1;
} */

.skills-intro {
  max-width: 600px;
  margin: 1.5rem auto 4rem;
  color: var(--text-dim);
}

/* Glass Skills Grid (Referencing image_78a431.jpg) */
.skills-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  transition: var(--transition);
}

.skill-glass-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 1.8rem;
  color: var(--accent);
  min-width: 50px;
}

.skill-info {
  flex-grow: 1;
}

.skill-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

/* Progress Bar Styling */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #b794f4);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.percentage {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

/* testimonials from clients section  */

.testimonials-section {
  padding: 10rem 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(139, 92, 246, 0.08),
      transparent 40%
    ),
    url(https://i.pinimg.com/736x/52/67/85/52678504f206b0322f8d28583cbba1c3.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.testimonial-glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);

  /* Triple Layer Border for iOS "Pop" */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* Shiny top edge */

  border-radius: 32px;
  padding: 3rem 2rem;
  position: relative;
  transition: var(--transition);
}

.testimonial-glass-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Star Rating from image_76e4c1.jpg */
.rating {
  color: #00ffa3; /* Using a vibrant green-mint like in image_76e4c1.jpg */
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  opacity: 0.1;
  color: var(--text-white);
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Client Info Section from image_76e5d3.jpg */
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.client-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.client-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.client-role {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Biography & Workflow ("About") Section Styles
   ========================================================================== */
.about-section {
  padding: 8rem 0;
  position: relative;
  background: radial-gradient(
    circle at bottom left,
    rgba(138, 92, 246, 0.714),
    transparent 50%
  ),url(https://i.pinimg.com/736x/ea/66/bc/ea66bc503e01e32a8210f352d5a3b184.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

/* Narrative Story Styling */
.about-narrative .story-content p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-narrative .story-content p:last-child {
  margin-bottom: 0;
}

/* Workflow Column Styling */
.workflow-heading {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.workflow-heading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Glassmorphic Cards for Workflow steps */
.workflow-glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.324); /* Reflective upper edge */
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: start;
  transition: var(--transition);
}

.workflow-glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(216, 202, 247, 0.392);
  transform: translateX(8px); /* Subtle directional engagement hint */
}

.workflow-number {
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 15px var(--accent-glow);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  line-height: 1;
}

.workflow-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.workflow-text p {
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

.subtitle{
  color: #ffffff;
}

/* ── PREMIUM RESUME BUTTON ─────────────────────────────────────────────────
   Replaces .btn-outline — glass background, crisp border, hover glow
   matching the established --accent purple color scheme.
   ──────────────────────────────────────────────────────────────────────── */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-white);
  /* Glassmorphic panel */
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.resume-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.45), 0 0 6px rgba(139, 92, 246, 0.2) inset;
  transform: translateY(-2px);
}

/* ── HAMBURGER BUTTON ───────────────────────────────────────────────────────
   Visible only on mobile. Three animated lines that morph into an X when
   the mobile menu is open (via .is-open class toggled by JS).
   ──────────────────────────────────────────────────────────────────────── */
.hamburger {
  display: none; /* Hidden on desktop; shown via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  z-index: 1100; /* Above the overlay */
}

.hamburger:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent);
}

/* The three horizontal lines */
.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* Animate into an X when .is-open is on the button */
.hamburger.is-open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ────────────────────────────────────────────────────
   Full-screen glassmorphic drawer. Hidden by default; slides in from the
   right when JS adds .is-open to it.
   ──────────────────────────────────────────────────────────────────────── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  /* High-end dark glassmorphism */
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  /* Start hidden — translated off-screen to the right */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.35s ease;
  pointer-events: none; /* Prevent clicks while hidden */
}

/* Open state — JS adds .is-open to the overlay */
.mobile-menu-overlay.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

/* Close (×) button inside the drawer */
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent);
}

/* Stacked nav links inside the mobile overlay */
.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

/* Each individual link */
.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -0.5px;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  transition: 0.3s ease;
  display: inline-block;
}

.mobile-link:hover {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(6px);
}

/* Resume button inside the mobile drawer */
.mobile-resume-btn {
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* ── CONTACT FORM STYLES ────────────────────────────────────────────────────
   Glassmorphic form replacing the old CTA side. Adapts to the dark theme.
   ──────────────────────────────────────────────────────────────────────── */

/* Wrapper heading and subtext */
.form-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-white);
}

.form-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* Each label + input pair */
.form-group {
  margin-bottom: 1.4rem;
}

/* Label row with icon */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: var(--accent);
  margin-right: 0.4rem;
}

/* Glassmorphic input / textarea base */
.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-white);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Focus state — accent glow ring */
.form-input:focus {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Placeholder styling */
.form-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* Textarea specific — disable horizontal resize */
.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Inline feedback paragraph — hidden by default */
.form-feedback {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 1.2em;
  border-radius: 8px;
  padding: 0 0.3rem;
  transition: color 0.3s ease;
}

.form-feedback.success {
  color: #00ffa3;
}

.form-feedback.error {
  color: #ff6b6b;
}

/* Submit button — full-width accent with shimmer hover */
.form-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.form-submit-btn:hover {
  background: #7c3aed; /* Slightly deeper purple on hover */
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── SITE FOOTER ────────────────────────────────────────────────────────────
   Four-column grid layout: Brand | Quick Links | Services | Contact
   Uses the native --accent purple color scheme with glassmorphic panel.
   ──────────────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: rgba(10, 10, 18, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 0 2rem;
  overflow: hidden;
}

/* Ambient glow accent */
.footer-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

/* Top row: 4-column grid */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Brand / logo area */
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.8rem;
}

/* Social icon row */
.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

/* Column heading */
.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

/* Nav / link list */
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-list a,
.footer-nav-list span {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-nav-list a:hover {
  color: var(--accent);
}

/* Contact column — icon + text pairs */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 3px;
  min-width: 14px;
  font-size: 0.85rem;
}

/* Horizontal rule */
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.3) 30%,
    rgba(139, 92, 246, 0.3) 70%,
    transparent
  );
  margin-bottom: 2rem;
}

/* Bottom copyright row */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.6);
}

.footer-heart {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Back-to-top button */
.back-to-top {
  width: 42px;
  height: 42px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

/* GENERAL MEDIA QUERY SECTION */

/* hero media query */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr; /* Stack text and blob vertically */
    text-align: center;
  }

  .hero-text {
    order: 2; /* Move text below the visual blob on mobile */
  }

  h1 {
    font-size: 2.5rem; /* Shrink text for mobile screens */
  }

  .hero-btns {
    justify-content: center;
  }

  .nav-links {
    display: none; /* We will build a mobile menu for this later */
  }

.about-section {
  padding: 8rem 0;
  position: relative;
  background:linear-gradient(rgba(0, 0, 0, 0.829),rgba(0, 0, 0, 0.786),black)
  ,url(https://i.pinimg.com/736x/ea/66/bc/ea66bc503e01e32a8210f352d5a3b184.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



}

/* Responsive Mobile Check */
@media (max-width: 1024px) {
  .main-portrait-frame {
    transform: none; /* Remove 3D on smaller screens for better clarity */
    height: 400px;
    width: 320px;
    margin: 0 auto;
  }
  .visual-wrapper {
    height: auto;
  }
  .badge-1,
  .badge-2 {
    display: none;
  } /* Clean up for mobile */
}

/* media query for projects section */
@media (max-width: 768px) {
  /*  Fix the Section Title */
  .section-title {
    font-size: 2rem;
    padding: 0 1rem;
  }

  /*  Reset the Bento Grid for Mobile */
  .bento-grid {
    display: flex; /* Switching to Flex for easier vertical stacking */
    flex-direction: column;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Fallback for grid */
  }

  /*  Force all cards to full width */
  .bento-card.large,
  .bento-card.medium,
  .bento-card.small {
    grid-column: span 1;
    grid-row: auto;
    width: 100%;
    min-height: auto;
    padding: 1.5rem; /* Slightly smaller padding for mobile */
  }

  /* Adjust card icons and text */
  .card-icon {
    font-size: 1.5rem;
  }

  .bento-card h3 {
    font-size: 1.1rem;
  }

  /* Ensure tags wrap nicely */
  .tag-container {
    justify-content: flex-start;
  }
}

/* Mobile Fix project section*/
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr; /* Stack on smaller screens */
  }
}

/* --- Responsive Mobile Overrides for soft skill section --- */
@media (max-width: 768px) {
  .profile-image-container {
    width: 160px;
    height: 160px;
  }
  .profile-glow {
    width: 190px;
    height: 190px;
  }

  .skills-glass-grid {
    grid-template-columns: 1fr;
  }

  .skill-glass-card {
    padding: 1.5rem;
  }
}

/* figma design section  */

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .description {
    margin: 0 auto 2rem auto;
  }
}

/* Phones */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .glass-grid {
    grid-template-columns: 1fr; /* Force single column stacking */
    gap: 1.5rem;
  }

  .glass-card {
    margin: 0 auto;
    width: 100%;
  }

  /* Adjusting Hero spacing for phones */
  .hero {
    padding: 120px 0 60px 0;
  }

  /* Navigation cleanup */
  .nav-links {
    display: none;
  } /* Hide for custom mobile menu later */

  /* Buttons expand to full width for easier thumb tapping */
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  .glass-img {
    height: 180px;
  }
}

/* Mobile Fix FOR THE CONTACT SECTION*/
/* --- Mobile Responsiveness for contact section--- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-glass-container {
    padding: 2.5rem;
  }
}

@media (max-width: 480px) {
  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .contact-link {
    font-size: 1rem;
  }
}

/* --- Mobile Responsiveness for testimonials section  --- */
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-glass-card {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Responsive Overrides for About Section
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 480px) {
  .workflow-glass-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .workflow-number {
    display: inline-block;
  }
}

/* ==========================================================================
   NEW ADDITIONS — Media Queries
   All newly introduced responsive overrides are grouped here at the bottom.
   ========================================================================== */

/* ── Hamburger & Mobile Menu: show hamburger, hide desktop links ── */
@media (max-width: 768px) {
  /* Show the hamburger icon on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide desktop nav-links and resume button */
  .nav-links,
  .nav-cta {
    display: none;
  }

  /* Expand mobile links to a larger tap target */
  .mobile-link {
    font-size: 1.7rem;
    padding: 0.6rem 2rem;
  }
}

/* ── Contact Form: stack columns on tablet ── */
@media (max-width: 992px) {
  /* Two-column contact grid collapses to one */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-wrapper {
    width: 100%;
  }
}

/* ── Footer: stack from 4-col grid to 2-col on tablet ── */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2; /* Brand spans full width */
  }
}

/* ── Footer: full single-column on mobile ── */
@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  /* Slightly tighter form inputs on small screens */
  .form-input {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    
  }
  .form-group{
    margin-right:1.3rem ;
  }

  .form-submit-btn {
    font-size: 0.90rem;
    /* padding: 20px 10px; */
    max-width:fit-content;
    margin-right: 3rem;
    align-items: center;
  }
}