/* ===========================
   MODERN PORTFOLIO STYLES
   Black & Grey Theme with Vibrant Accents
   =========================== */

:root {
  /* Black & Grey Color Palette */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #121212;
  --card-bg: rgba(20, 20, 20, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;

  /* Vibrant Accent Colors for Hover */
  --color-cyan: #00d4ff;
  --color-purple: #a855f7;
  --color-pink: #ec4899;
  --color-orange: #f97316;
  --color-green: #10b981;

  /* Colorful Gradients */
  --gradient-cyan: linear-gradient(135deg, #00d4ff 0%, #0891b2 100%);
  --gradient-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --gradient-pink: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-multi: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ec4899 100%);

  /* Border Colors */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-lighter: rgba(255, 255, 255, 0.05);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* 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);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===========================
   RESET & BASE STYLES
   =========================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  opacity: 0;
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

/* Subtle Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      #000000 0%,
      #0a0a1a 25%,
      #1a0a1a 50%,
      #0a1a1a 75%,
      #000000 100%);
  background-size: 400% 400%;
  animation: gradientBackground 15s ease infinite;
  z-index: -1;
}

@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }

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

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

body::after {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {

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

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* ===========================
   PARTICLE CANVAS BACKGROUND
   =========================== */

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-lighter);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 0.8rem 8%;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.corner-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.corner-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cyan);
  transition: width var(--transition-base);
}

.corner-name:hover::after {
  width: 100%;
}

.corner-name:hover {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateX(5px) scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all var(--transition-base);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-purple);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 8% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

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

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

.hero-left {
  z-index: 1;
}

.hero-name-pop {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  transition: all var(--transition-slow);
}

.hero-name-pop span {
  background: var(--gradient-multi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: all var(--transition-base);
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

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

.hero-name-pop:hover span {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
}

.hero-name-pop:hover {
  transform: translateY(-8px) rotate(-1deg);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-8px) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.hero-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.social-link:hover {
  transform: translateY(-8px) scale(1.15) rotate(5deg);
  background: var(--gradient-cyan);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
  border-color: var(--color-cyan);
  animation: bounce 0.6s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
  }

  50% {
    transform: translateY(-12px) scale(1.2) rotate(5deg);
  }
}

.social-link:hover svg {
  fill: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* GitHub - Black/Grey */
.github-link:hover {
  background: linear-gradient(135deg, #333333 0%, #181818 100%);
  box-shadow: 0 15px 40px rgba(51, 51, 51, 0.5);
  border-color: #333333;
}

/* LinkedIn - Blue */
.linkedin-link::before {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.linkedin-link:hover {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
  box-shadow: 0 15px 40px rgba(0, 119, 181, 0.5);
  border-color: #0077b5;
}

.linkedin-link:hover::before {
  opacity: 1;
}

/* Instagram - Gradient */
.instagram-link::before {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-link:hover {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 15px 40px rgba(225, 48, 108, 0.5);
  border-color: #e1306c;
}

.instagram-link:hover::before {
  opacity: 1;
}

/* Hero Right */
.hero-right {
  z-index: 1;
}

.tagline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
  min-height: 1.5rem;
}

.typing-text {
  background: var(--gradient-multi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.typing-cursor {
  color: var(--color-purple);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all var(--transition-base);
  position: relative;
  overflow: visible;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--gradient-multi);
  background-size: 200% 200%;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  animation: gradientMove 3s ease infinite;
  border: none;
}

@keyframes gradientMove {

  0%,
  100% {
    background-position: 0% 50%;
  }

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

.btn.primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.6),
    0 0 40px rgba(236, 72, 153, 0.4);
  background: var(--gradient-pink);
  background-size: 200% 200%;
  animation: gradientMove 2s ease infinite, pulse 1s ease infinite;
  color: #ffffff;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.6), 0 0 40px rgba(236, 72, 153, 0.4);
  }

  50% {
    box-shadow: 0 15px 45px rgba(168, 85, 247, 0.8), 0 0 50px rgba(236, 72, 153, 0.6);
  }
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
}

.btn.outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  border-color: var(--text-primary);
}

/* Ensure primary button text is always white and visible */
.btn.primary {
  color: #ffffff;
}

.btn.primary:hover {
  color: #ffffff;
}


/* ===========================
   SECTIONS & CARDS
   =========================== */

section {
  padding: 5rem 8%;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-multi);
  background-size: 200% 200%;
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  animation: gradientMove 3s ease infinite;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(168, 85, 247, 0.2);
  animation: cardFloat 2s ease-in-out infinite;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(-15px) scale(1.02);
  }

  50% {
    transform: translateY(-18px) scale(1.02);
  }
}

.card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-base);
}

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

/* ===========================
   SKILLS SECTION
   =========================== */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: var(--text-secondary);
}

.skill-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}


.skill-badge:nth-child(1):hover {
  border-color: var(--color-orange);
  color: #ffffff;
  background: var(--gradient-orange);
}

.skill-badge:nth-child(2):hover {
  border-color: var(--color-cyan);
  color: #ffffff;
  background: var(--gradient-cyan);
}

.skill-badge:nth-child(3):hover {
  border-color: var(--color-purple);
  color: #ffffff;
  background: var(--gradient-purple);
}

.skill-badge:nth-child(4):hover {
  border-color: var(--color-pink);
  color: #ffffff;
  background: var(--gradient-pink);
}

.skill-badge:nth-child(5):hover {
  border-color: var(--color-green);
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.skill-badge:nth-child(6):hover {
  border-color: var(--color-orange);
  color: #ffffff;
  background: var(--gradient-orange);
}

.skill-badge:nth-child(7):hover {
  border-color: var(--color-cyan);
  color: #ffffff;
  background: var(--gradient-cyan);
}

.skill-badge:hover {
  transform: translateY(-8px) scale(1.1) rotate(3deg);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
  animation: skillBounce 0.5s ease;
}

@keyframes skillBounce {

  0%,
  100% {
    transform: translateY(-8px) scale(1.1) rotate(3deg);
  }

  50% {
    transform: translateY(-12px) scale(1.15) rotate(3deg);
  }
}

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

  50% {
    transform: scale(1.2) rotate(5deg);
  }

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

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-section {
  padding: 5rem 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  background: var(--gradient-multi);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 3s ease infinite;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-purple);
  transform: scaleY(0);
  transition: transform var(--transition-slow);
}

.project-card:hover::before {
  transform: scaleY(1);
}

.project-card:hover {
  transform: translateX(15px) translateY(-8px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(35, 35, 35, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(168, 85, 247, 0.3);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.project-card:hover h3 {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateX(8px) scale(1.05);
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
}

.tag:hover {
  background: var(--gradient-cyan);
  border-color: var(--color-cyan);
  color: #ffffff;
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* ===========================
   RESEARCH SECTION
   =========================== */

.research-container {
  margin-top: 2rem;
}

.research-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-multi);
  background-size: 200% 200%;
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  animation: gradientMove 3s ease infinite;
}

.research-card:hover::before {
  transform: scaleX(1);
}

.research-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(40, 40, 40, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(168, 85, 247, 0.3);
}

.research-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-purple);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.research-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-multi);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: gradientMove 3s ease infinite;
}

.research-card:hover .research-icon::before {
  opacity: 1;
}

.research-icon svg {
  width: 40px;
  height: 40px;
  stroke: #ffffff;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.research-card:hover .research-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

.research-card:hover .research-icon svg {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.research-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.research-card:hover h3 {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.research-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.research-btn {
  margin-top: 1rem;
  display: inline-block;
}

/* ===========================
   CERTIFICATES SECTION
   =========================== */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-multi);
  background-size: 200% 200%;
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  animation: gradientMove 3s ease infinite;
}

.certificate-card:hover::before {
  transform: scaleX(1);
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(35, 35, 35, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 212, 255, 0.3);
}

.certificate-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  background: var(--gradient-cyan);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.certificate-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-multi);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: gradientMove 3s ease infinite;
}

.certificate-card:hover .certificate-icon::before {
  opacity: 1;
}

.certificate-icon svg {
  width: 35px;
  height: 35px;
  stroke: #ffffff;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.certificate-card:hover .certificate-icon {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.certificate-card:hover .certificate-icon svg {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  animation: iconBounce 0.6s ease;
}

.certificate-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.certificate-card:hover h3 {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.certificate-issuer {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.certificate-btn {
  margin-top: auto;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-lighter);
  font-size: 0.95rem;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

[data-scroll-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-scroll-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="100"].animate-in {
  transition-delay: 0.1s;
}

[data-delay="150"].animate-in {
  transition-delay: 0.15s;
}

[data-delay="200"].animate-in {
  transition-delay: 0.2s;
}

[data-delay="250"].animate-in {
  transition-delay: 0.25s;
}

[data-delay="300"].animate-in {
  transition-delay: 0.3s;
}

[data-delay="350"].animate-in {
  transition-delay: 0.35s;
}

[data-delay="400"].animate-in {
  transition-delay: 0.4s;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 6% 3rem;
    gap: 3rem;
  }

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

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

  .hero-right {
    text-align: center;
  }

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

  section {
    padding: 4rem 6%;
  }

  .card {
    padding: 2.5rem;
  }
}

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

  .navbar {
    padding: 1rem 5%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0;
  }

  .hero {
    padding: 5rem 5% 2rem;
    gap: 2rem;
  }

  .hero-name-pop {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  section {
    padding: 3rem 5%;
  }

  .card {
    padding: 2rem;
    border-radius: 16px;
  }

  .card h2,
  .projects-section h2 {
    font-size: 1.8rem;
  }

  .skill-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .skill-badge {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .project-card {
    padding: 2rem;
  }

  .project-card:hover {
    transform: translateY(-5px);
  }

  /* Research Section - Mobile */
  .research-card {
    padding: 2rem;
  }

  .research-icon {
    width: 70px;
    height: 70px;
  }

  .research-icon svg {
    width: 35px;
    height: 35px;
  }

  /* Certificates Section - Mobile */
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certificate-card {
    padding: 1.8rem;
  }

  .certificate-icon {
    width: 60px;
    height: 60px;
  }

  .certificate-icon svg {
    width: 30px;
    height: 30px;
  }

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

/* Small Mobile */
@media (max-width: 480px) {
  .navbar {
    padding: 1rem 4%;
  }

  .corner-name {
    font-size: 1.2rem;
  }

  .hero {
    padding: 4rem 4% 2rem;
  }

  .hero-name-pop {
    font-size: 2rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  section {
    padding: 2.5rem 4%;
  }

  .card {
    padding: 1.5rem;
  }

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

  /* Research Section - Small Mobile */
  .research-card {
    padding: 1.5rem;
  }

  .research-icon {
    width: 60px;
    height: 60px;
  }

  .research-icon svg {
    width: 30px;
    height: 30px;
  }

  .research-card h3 {
    font-size: 1.3rem;
  }

  /* Certificates Section - Small Mobile */
  .certificate-card {
    padding: 1.5rem;
  }

  .certificate-icon {
    width: 55px;
    height: 55px;
  }

  .certificate-icon svg {
    width: 28px;
    height: 28px;
  }

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

  .certificate-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }
}