:root {
  /* Colors - Premium Palette */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #8b5cf6;
  --accent: #f43f5e;

  /* Theme Colors (Default to Dark) */
  --bg-color: #030712;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --card-bg: #111827;
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-primary: 'Outfit', 'Montserrat', sans-serif;
  --font-secondary: 'Inter', 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-max-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  position: relative;
}

/* Background Texture & Ambient Glows */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.2), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.15), transparent 40%),
    var(--bg-color);
  background-attachment: fixed;
  animation: ambientMove 20s ease-in-out infinite alternate;
}

@keyframes ambientMove {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

/* Grid Pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(var(--card-border) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--card-border) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  background-position: center center;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black, rgba(0, 0, 0, 0.4) 90%);
  opacity: 0.2;
  pointer-events: none;
}

/* Noise Texture Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 10000;
}


.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Premium Typography Patterns */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

.heading-xl {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}


/* Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, background 0.3s ease, border 0.3s ease;
  transform: translate(-50%, -50%);
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Header & Nav Improvements */
/* Header Layout & Time Widget */
.header-container {
  display: flex;
  justify-content: center;
  /* Center the navbar */
  align-items: center;
  position: relative;
  /* Base for absolute time widget */
  min-height: 50px;
}

.local-time-widget {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  pointer-events: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  z-index: 10;
}

.local-time-widget:hover {
  border-color: var(--primary);
  transform: translateY(-52%);
  /* Slight lift while maintaining center */
}




@media (max-width: 768px) {
  .local-time-widget {
    display: none;
  }
}


.time-label {
  font-weight: 700;
  color: var(--primary);
}

.time-value {
  color: var(--text-primary);
  min-width: 70px;
}




.header-list {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-base);
  pointer-events: none;
  /* Allow events to pass through background */
}

.header-list.scrolled {
  padding: 0.8rem 0;
}

.div-list {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ul-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0.7rem 2rem;
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  /* Enable items specifically */
  transition: all 0.3s ease;
}


.ul-list:hover {
  border-color: var(--primary);
}

.ul-list li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ul-list li.active a,
.ul-list li a:hover {
  color: var(--primary);
}

/* Section Common Styles */
section {
  padding: var(--section-padding) 0;
}

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

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  z-index: 10001;
  width: 0%;
}


/* Hero Section */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.home-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.info-home {
  flex: 1;
}

.home-p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 2rem;
}

.home-s {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.info-home h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.info-home h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2rem;
  height: 1.5em;
  /* Prevent layout shift during typing or just space */
}

.info-p p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 0.5rem;
}

.info-p2 {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  color: var(--text-muted);
}

.info-p2 p i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.btnn {
  display: flex;
  gap: 1.5rem;
}

.btn-home1,
.btn-home2 {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  will-change: transform;
}


.btn-home1 {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-home1:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-home2 {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-home2:hover {
  background: var(--card-bg);
  border-color: var(--primary);
}

.home-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
}

.image-frame {
  position: relative;
  width: min(380px, 75vw);
  height: auto;
  aspect-ratio: 4/5;
  z-index: 2;
  transition: var(--transition-base);
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1.5px solid var(--primary);
  border-radius: 45px;
  z-index: -1;
  opacity: 0.6;
  animation: frameRotate 8s linear infinite;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--primary-glow);
  filter: blur(40px);
  border-radius: 60px;
  z-index: -2;
  opacity: 0.3;
}

@keyframes frameRotate {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    border-width: 1.5px;
  }

  50% {
    transform: scale(1.02) rotate(2deg);
    border-width: 2.5px;
    opacity: 1;
  }
}

.home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.image-frame:hover img {
  transform: scale(1.05);
}

/* Floating Tech Bubbles - 8 Orbitals */
.tech-bubble {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  z-index: 5;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  animation: orbitFloat 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.tech-bubble:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.2) !important;
  z-index: 10;
}

.tb-1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.tb-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 0.8s;
}

.tb-3 {
  top: 45%;
  left: -15%;
  animation-delay: 1.6s;
}

.tb-4 {
  bottom: 45%;
  right: -15%;
  animation-delay: 2.4s;
}

.tb-5 {
  top: -5%;
  right: 15%;
  animation-delay: 3.2s;
}

.tb-6 {
  bottom: -5%;
  left: 15%;
  animation-delay: 4.0s;
}

.tb-7 {
  top: 20%;
  right: -12%;
  animation-delay: 4.8s;
}

.tb-8 {
  bottom: 20%;
  left: -12%;
  animation-delay: 5.6s;
}

@keyframes orbitFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(12px, -15px);
  }

  66% {
    transform: translate(-8px, 12px);
  }
}

/* About Section */
.about-container {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.about-image-wrapper {
  flex: 0 0 40%;
  position: relative;
}

.image-inner {
  position: relative;
  width: 100%;
}

.image-inner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 40px;
  filter: grayscale(20%);
  transition: var(--transition-slow);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
}

.image-inner:hover img {
  filter: grayscale(0%);
  transform: translateY(-10px);
}

.image-inner::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 5px solid var(--primary);
  border-left: 5px solid var(--primary);
  border-radius: 10px 0 0 0;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px var(--primary-glow);
  z-index: 2;
  transition: var(--transition-base);
}

.experience-badge:hover {
  transform: scale(1.05);
}

.badge-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 1.3;
}

.info-about {
  flex: 1;
}

.lead-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: var(--transition-base);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  background: var(--glass-bg);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.about-cta {
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    gap: 5rem;
  }

  .about-image-wrapper {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}


/* Skills - Mini Technical Cards */
.skills-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-mini-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: var(--transition-base);
}

.skill-mini-card:hover {
  border-color: var(--primary);
  background: var(--glass-bg);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mini-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.skill-mini-card:hover .mini-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: white;
}

.mini-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.mini-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Projects - Compact Grid */
.project-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.project-compact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-base);
}

.project-compact-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pc-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.pc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.pc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
  backdrop-filter: blur(4px);
}

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

.pc-btn {
  width: 50px;
  height: 50px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.pc-btn:hover {
  transform: scale(1.2);
}

.pc-status {
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.pc-info {
  padding: 1.5rem;
}

.pc-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.pc-info h3 {
  font-size: 1.25rem;
}

@media (max-width: 1024px) {
  .project-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .project-grid-compact,
  .skills-card-grid {
    grid-template-columns: 1fr;
  }
}



/* Roadmap Section (Updated) */
.roadmap-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 4rem 0;
}

.road-path {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--card-border);
  transform: translateX(-50%);
  border-radius: 100px;
  overflow: hidden;
}

.road-path::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent,
      var(--primary) 10%,
      var(--secondary) 90%,
      transparent);
  background-size: 100% 200%;
  animation: roadFlow 3s linear infinite;
}

@keyframes roadFlow {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

.timeline-item {
  display: flex;
  width: 100%;
  margin-bottom: 6rem;
  position: relative;
  align-items: center;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content {
  width: 45%;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  transition: var(--transition-base);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.stop-marker {
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: var(--transition-base);
}

.timeline-item:hover .stop-marker {
  background: var(--primary);
  color: white;
  transform: translateX(-50%) scale(1.2) rotate(10deg);
}

/* Alternating Sides */
.stop-left .timeline-content {
  margin-right: auto;
  text-align: right;
}

.stop-right .timeline-content {
  margin-left: auto;
}

/* Connectors */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.stop-left .timeline-content::before {
  right: -30px;
}

.stop-right .timeline-content::before {
  left: -30px;
}

@media (max-width: 768px) {
  .road-path {
    left: 20px;
    transform: none;
  }

  .stop-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
    text-align: left !important;
  }

  .stop-left .timeline-content::before,
  .stop-right .timeline-content::before {
    left: -30px;
    right: auto;
  }
}


/* Certifications Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.cert-card {
  perspective: 1000px;
  height: 400px;
}

.cert-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.cert-card.flipped .cert-inner {
  transform: rotateY(180deg);
}

.cert-front,
.cert-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.cert-front {
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-back {
  background: var(--bg-color);
  transform: rotateY(180deg);
}

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

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: var(--transition-base);
}

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

.project-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-content {
  padding: 2rem;
}

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

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  font-weight: 600;
}

/* Social Proof (GitHub Stats) */
.social-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.github-card {
  padding: 3rem;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--bg-color), #111827);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.stat-item h4 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-presentation {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-intro p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.visual-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card-mini {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: var(--transition-base);
}

.contact-card-mini:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  background: var(--glass-bg);
}

.c-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.c-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.c-text p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-mini-grid {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-mini-grid a {
  width: 45px;
  height: 45px;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}


.social-mini-grid a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--primary-glow);
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Skip Link */
/* Araf AI Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chatbot-trigger {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--primary-glow);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-trigger:hover {
  transform: scale(1.1);
}

.trigger-ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background: #10b981;
  border: 3px solid var(--bg-color);
  border-radius: 50%;
  animation: pulsePing 2s infinite;
}

@keyframes pulsePing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: bottom right;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.online-status {
  font-size: 0.7rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.chat-close:hover {
  color: #ef4444;
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-content {
  position: relative;
}

.message.bot.streaming .message-content::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--primary);
  animation: blink 0.8s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.message.bot {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--glass-border);
}

.quick-replies {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.quick-reply-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-reply-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.input-wrapper {
  display: flex;
  gap: 0.75rem;
}

#chatInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
}

#chatInput:focus {
  outline: none;
  border-color: var(--primary);
}

#chatSend {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

#chatSend:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .chatbot-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .chatbot-trigger {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .chat-window {
    width: calc(100vw - 3rem);
    height: 60vh;
    height: -webkit-fill-available;
    /* For better mobile browser support */
    max-height: 500px;
    bottom: 65px;
    border-radius: 20px;
  }

  .chat-header {
    padding: 1rem;
  }

  .chat-messages {
    padding: 1rem;
  }

  .chat-input-area {
    padding: 1rem;
  }

  .quick-reply-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  .message {
    max-width: 90%;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 1rem;
  z-index: 10000;
  transition: 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Tooltips/Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  pointer-events: auto;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem 2rem;
  }

  .container {
    padding: 0 2rem;
  }

  .home-container,
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }

  .home-image-wrapper {
    order: -1;
    margin-bottom: 2rem;
  }

  .info-p2,
  .btnn {
    justify-content: center;
  }

  .project-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-proof-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .local-time-widget {
    display: none;
  }

  .ul-list {
    display: none;
  }

  .ul-list.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 2.5rem;
    border-radius: 24px;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    z-index: 1000;
  }

  .heading-xl {
    font-size: 2.5rem;
  }

  .heading-lg {
    font-size: 1.80rem;
  }

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

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tech-bubble {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .heading-xl {
    font-size: 2rem;
  }

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