:root {
  --bg-color: #030712; /* Ultra-Dark Midnight */
  --card-bg: rgba(30, 41, 59, 0.4); /* Deeper glass cards */
  --primary-color: #2a8b8d; /* Teal/Cyan */
  --secondary-color: #fc761b; /* Bright Orange */
  --forth-color: #38bdf8;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-1: linear-gradient(135deg, #2a8b8d 0%, #fc761b 100%);
}

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

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Modern Background Graphics System */
.bg-graphics {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

/* Subtle Dotted Pattern - Enhanced Visibility */
.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1.2px,
    transparent 1.8px
  );
  background-size: 40px 40px;
  opacity: 1;
}

/* Integrated Grid - Fixed for modern depth */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1.8px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1.8px);
  background-size: 100px 100px;
  z-index: -2;
  pointer-events: none;
  transform: translateZ(0);
}

/* Refined Glow Effects */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(42, 139, 141, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(252, 118, 27, 0.05) 0%,
      transparent 50%
    );
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes scanMove {
  from {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      0 0,
      0 0,
      0 200%;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.left-align {
  text-align: left;
}

/* Utilities */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px); /* Reduced from 12px for performance */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: none; /* Disable blur on mobile for smooth scrolling */
    -webkit-backdrop-filter: none;
    background: rgba(
      30,
      41,
      59,
      0.95
    ); /* Slightly more opaque background to compensate */
  }
}

/* Button Utilities (Moved to consolidated Section below) */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* KEY FIX */
  z-index: 1000;
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
}

/* Nav content */
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop menu */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-links .btn-primary {
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
}

/* MOBILE STYLES */
@media (max-width: 768px) {

  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.98);
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.15) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
}

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

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: 40px;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  color: rgb(52, 211, 153);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.2);
  border-image: initial;
  border-radius: 50px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: rgb(52, 211, 153);
  box-shadow: rgb(52, 211, 153) 0px 0px 10px;
  border-radius: 50%;
  animation: 2s ease 0s infinite normal none running pulse;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 118, 27, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(252, 118, 27, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(252, 118, 27, 0);
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #fc761b 0%, #ff8c42 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(252, 118, 27, 0.4);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 5px 15px rgba(252, 118, 27, 0.6);
}

.btn-secondary {
  background: rgba(42, 139, 141, 0.05);
  color: var(--text-main);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(42, 139, 141, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(42, 139, 141, 0.2);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 20%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.social-links a:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px) rotate(8deg);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Hero Visual */
.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 350px;
  height: 400px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  transform: rotate(3deg);
  transition: all 0.5s ease;
  z-index: 1;
}

@media (max-width: 480px) {
  .hero-image-wrapper {
    width: 100%;
    height: auto;
    min-height: 350px;
  }
  .hero-image {
    width: 280px;
    height: 320px;
  }
}

.hero-image-wrapper:hover .hero-image {
  transform: rotate(0deg) scale(1.02);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 10px 20px;
  background: rgba(30, 41, 59, 0.85); /* Darker glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
  animation: floatBadge 6s ease-in-out infinite;
}

.floating-badge i {
  font-size: 1.2rem;
  color: var(--forth-color);
}

.badge-1 {
  top: 40px;
  left: -30px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 60px;
  right: -20px;
  animation-delay: 2s;
}

.badge-3 {
  top: 50%;
  right: -55px;
  padding: 8px 16px;
  animation-delay: 4s;
}

.badge-4 {
  bottom: 40px;
  left: -20px;
  animation-delay: 1.5s;
}

.badge-5 {
  top: 20px;
  right: 20px;
  animation-delay: 3s;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@media (max-width: 768px) {
    .floating-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .badge-1 { left: 0; }
    .badge-2 { right: 0; }
    .badge-3 { right: -20px; }
    .badge-4 { left: 0; }

    .floating-badge i {
        font-size: 1rem;
    }
}



/* Section General */
.section {
  padding: 40px 0;
}

/* Section Titles - Enhanced */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  width: 100%;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
}

/* Professional Summary - Redesigned */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.summary-content {
  background: rgba(15, 23, 42, 0.6);
  padding: 2.5rem;
  width: 100%;
}

.summary-intro {
  margin-bottom: 2rem;
}

.intro-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.summary-intro h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .summary-intro h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .summary-intro h3 {
    font-size: 1.4rem;
  }
}

.summary-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.summary-content p:last-child {
  margin-bottom: 0;
}

/* Summary Stats */
.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

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

.stat-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .stat-box {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .stat-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
}

.stat-box:hover {
  transform: translateX(10px);
  background: rgba(56, 189, 248, 0.05);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--forth-color);
  flex-shrink: 0;
}

.stat-content h4 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.stat-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

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

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

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .large,
  .medium,
  .wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .large,
  .medium,
  .wide {
    grid-column: span 1;
  }
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(56, 189, 248, 0.1),
    transparent 40%
  );
  pointer-events: none;
}

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

/* Grid Spans */
.large {
  grid-column: span 2;
  grid-row: span 2;
}
.medium {
  grid-column: span 2;
}
.wide {
  grid-column: span 2;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.bento-card h3 {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.skill-pill i {
  color: var(--secondary-color);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.skill-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.skill-pill:hover i {
  color: var(--primary-color);
}



/* Experience - Career Stack */
.career-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1150px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem; /* Space for the chain */
}

/* The Chain Line */
.career-stack::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 5px; /* Align with dots */
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary-color) 0%,
    rgba(56, 189, 248, 0.2) 100%
  );
  z-index: 0;
}

.career-item {
  display: flex;
  gap: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* Connection Dot */
.career-item::before {
  content: "";
  position: absolute;
  left: -2.35rem; /* Align on the line */
  top: 2.5rem;
  width: 16px;
  height: 16px;
  background: var(--bg-color);
  border: 3px solid var(--primary-color);
  border-radius: 30%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: all 0.3s ease;
}

.career-item:hover::before {
  background: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
}

.career-item:hover {
  transform: translateX(5px);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.career-date {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--glass-border);
  padding-right: 1.5rem;
  flex-shrink: 0;
}

.period {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.period-sm {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.duration {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.career-content {
  flex: 1;
}

.career-header {
  margin-bottom: 1.5rem;
}

.career-role {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.career-role h3 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.job-type {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-part-time {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.badge-remote {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-full-time {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
}

.career-company {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.career-company i {
  font-size: 1rem;
  opacity: 0.8;
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.career-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .career-stack {
    padding-left: 0;
  }
  .career-stack::before {
    display: none;
  }
  .career-item {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .career-item::before {
    display: none;
  }
  .career-date {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding-right: 0;
    padding-bottom: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
  border-left: 4px solid var(--primary-color); 
}

.project-icon {
  min-width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.1),
    rgba(56, 189, 248, 0.1)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.project-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #fff;
  line-height: 1.3;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tech-pill {
  font-size: 0.75rem;
  color: var(--forth-color);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.project-card:hover .tech-pill {
  background: rgba(28, 167, 226, 0.2);
  border-color: var(--forth-color);
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.project-link:hover {
  gap: 0.8rem;
  color: var(--primary-color);
}

/* Certifications - 2 Column & New Style */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cert-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  transform: translateY(-5px);
  border: 1px solid var(--primary-color);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.cert-icon {
  min-width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.1),
    rgba(129, 140, 248, 0.1)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.cert-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #fff;
  line-height: 1.3;
}

.cert-content h4 {
  font-size: 0.95rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.award-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.award-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.award-rank {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
}

.award-card h3 {
  font-size: 1.2rem;
}

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

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(56, 189, 248, 0.2);
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

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

.service-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.service-features li i {
  color: var(--secondary-color);
  font-size: 1rem;
}

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

/* Teaching Section */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.teaching-card {
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.teaching-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.teaching-card:hover .teaching-icon {
  background: rgba(56, 189, 248, 0.2);
  color: var(--secondary-color);
}

.teaching-card:hover .stat-num {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.teaching-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.teaching-icon {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.teaching-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
}

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

.teaching-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.teaching-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.teaching-features li i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* Teaching Section Enhancement */
.teaching-stats-mini {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.mini-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
}

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

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

/* Education (Separate) */
.education-card {
  background: rgba(15, 23, 42, 0.6);
  /* border-left: 4px solid var(--primary-color); */
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.edu-icon {
  font-size: 3rem;
  color: var(--primary-color);
  background: rgba(129, 140, 248, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.edu-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.edu-details h4 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.edu-date {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 1rem;
}

.edu-cgpa {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
}

@media (max-width: 768px) {
  .education-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact Section - Split Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

/* Contact Info (Left) */
.contact-info {
  background: rgba(15, 23, 42, 0.6);
  padding: 2.5rem;
  height: 100%;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-text span {
  color: #fff;
  font-size: 1.05rem;
}

/* Contact Form (Right) */
.contact-form-wrapper {
  background: rgba(15, 23, 42, 0.6);
  padding: 2.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  font-family: "Outfit", sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(56, 189, 248, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  border: none;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

/* Animations (Hidden State) */
.hidden-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}
.hidden-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}
.hidden-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}
.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .certs-grid,
  .awards-grid,
  .projects-grid,
  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-btns,
  .social-links {
    justify-content: center;
  }

  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item::after {
    left: 21px;
  }

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
  }

  .dual-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    background: var(--bg-color);
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }
  .hamburger {
    display: block;
  }

  .edu-details h3 {
    font-size: 1.3rem;
  }

  .edu-details h4 {
    font-size: 0.9rem;
  }
  .edu-date{
    font-size: 0.7rem;
  }
  .edu-cgpa{
    font-weight: 500;
    font-size: 0.7rem;
  }
}

/* Mobile Responsive for Bento */
@media (max-width: 900px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .bento-card {
    min-height: auto;
  }
}
