/* Base Styles and Variables */
:root {
  --bg-primary: #1e293b;
  --bg-secondary: #0f172a;
  --text-primary: #fff;
  --text-secondary: #cbd5e1;
  --accent-color: #38bdf8;
  --card-bg: linear-gradient(135deg, #1e293b, #0f172a);
  --header-bg: rgba(15, 23, 42, 0.9);
  --form-bg: linear-gradient(135deg, #1e293b, #0f172a);
  --input-bg: #0f172a;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
  --scroll-progress: 0%;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --accent-color: #0ea5e9;
  --card-bg: linear-gradient(135deg, #f8fafc, #f1f5f9);
  --header-bg: rgba(248, 250, 252, 0.9);
  --form-bg: linear-gradient(135deg, #f8fafc, #f1f5f9);
  --input-bg: #f1f5f9;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top var(--transition-speed) ease;
}

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

/* Focus Styles */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all var(--transition-speed);
  height: 3.5rem;
}

header.scrolled {
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px var(--shadow-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  transition: all var(--transition-speed);
}

nav h1:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-speed);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.navbar-toggle div {
  background-color: var(--text-primary);
  height: 3px;
  width: 100%;
  border-radius: 3px;
  transition: all var(--transition-speed);
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--bg-secondary);
    height: 100vh;
    width: 80%;
    max-width: 400px;
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right var(--transition-speed);
    box-shadow: -4px 0 12px var(--shadow-color);
  }

  nav ul.open {
    right: 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    padding: 1rem 0;
  }

  .navbar-toggle {
    display: flex;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

  .navbar-toggle div {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .navbar-toggle div:nth-child(1) {
    transform: translateY(-8px);
    width: 24px;
  }

  .navbar-toggle div:nth-child(2) {
    transform: translateY(0);
    width: 20px;
  }

  .navbar-toggle div:nth-child(3) {
    transform: translateY(8px);
    width: 16px;
  }

  .navbar-toggle:hover div {
    background: var(--accent-color);
  }

  .navbar-toggle:hover div:nth-child(1) {
    width: 20px;
    transform: translateY(-8px) translateX(2px);
  }

  .navbar-toggle:hover div:nth-child(2) {
    width: 24px;
    transform: translateY(0) translateX(-2px);
  }

  .navbar-toggle:hover div:nth-child(3) {
    width: 20px;
    transform: translateY(8px) translateX(2px);
  }

  .navbar-toggle.open div:nth-child(1) {
    transform: rotate(45deg) translate(0, 0);
    width: 24px;
  }

  .navbar-toggle.open div:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .navbar-toggle.open div:nth-child(3) {
    transform: rotate(-45deg) translate(0, 0);
    width: 24px;
  }

  .navbar-toggle.open:hover div:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
  }

  .navbar-toggle.open:hover div:nth-child(3) {
    transform: rotate(-45deg) translate(2px, -2px);
  }
}

/* Particle Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  overflow: hidden;
}

#hero::before {
  content: '';
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

#hero > div {
  position: center;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  animation: slideInLeft 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#hero h1 span {
  display: inline-block;
  color: var(--accent-color);
}

#hero .typewriter {
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-right: 3px solid var(--accent-color);
  white-space: nowrap;
  width: 0;
  animation: typing 3.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
  color: var(--accent-color);
  max-width: fit-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-color) }
}

/* Add a class for when typing is complete */
#hero .typewriter.typing-complete {
  width: 100%;
  animation: none;
  border-right: none;
  overflow: visible;
}

#hero p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: slideInRight 1s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#hero .btn {
  display: inline-block;
  padding: 1rem 2rem;
  margin: 0 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  background: var(--accent-color);
  color: var(--bg-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#hero .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

#hero .btn:hover::before {
  left: 100%;
}

#hero .btn-hire {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

#hero .btn-hire:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.scroll-indicator::before {
  content: '';
  width: 2px;
  height: 60px;
  background: var(--accent-color);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1.2rem;
  }
  
  #hero .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.5rem;
  }
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 15px rgba(56, 189, 248, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(56, 189, 248, 0.4);
}

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

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--text-primary);
}

/* Sections */
section {
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 2rem;
}

section h2 {
  font-size: 2.5rem;
  margin: 0.3rem 0 1.5rem;
  text-align: center;
  position: relative;
  padding: 0.6rem 1.2rem;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(56, 189, 248, 0.2);
  box-shadow: 
    0 4px 15px rgba(56, 189, 248, 0.15),
    0 8px 25px rgba(56, 189, 248, 0.1),
    inset 0 0 0 1px rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--card-bg);
}

section h2:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(56, 189, 248, 0.2),
    0 12px 35px rgba(56, 189, 248, 0.15),
    inset 0 0 0 1px rgba(56, 189, 248, 0.2);
  text-shadow: 0 2px 6px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] section h2 {
  box-shadow: 
    0 4px 15px rgba(56, 189, 248, 0.1),
    0 8px 25px rgba(56, 189, 248, 0.05),
    inset 0 0 0 1px rgba(56, 189, 248, 0.05);
}

[data-theme="light"] section h2:hover {
  box-shadow: 
    0 6px 20px rgba(56, 189, 248, 0.15),
    0 12px 35px rgba(56, 189, 248, 0.1),
    inset 0 0 0 1px rgba(56, 189, 248, 0.1);
}

@media (max-width: 768px) {
  section h2 {
    font-size: 2rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  perspective: 1000px;
  position: relative;
}

.skills-grid::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  z-index: -1;
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skills-grid:hover::before {
  opacity: 1;
}

.skill-card {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: fadeInUp 0.6s ease-out backwards;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
              rgba(56, 189, 248, 0.1) 0%, 
              transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }
.skill-card:nth-child(10) { animation-delay: 1s; }
.skill-card:nth-child(11) { animation-delay: 1.1s; }
.skill-card:nth-child(12) { animation-delay: 1.2s; }

.skill-icon {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.skill-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.4s ease;
}

.skill-card:hover .skill-name::after {
  width: 50px;
}

.skill-level {
  width: 100%;
  height: 6px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-top: auto;
}

.skill-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #0ea5e9);
  border-radius: 3px;
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

.skill-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: wave 2s linear infinite;
  transform: translateX(-100%);
}

@keyframes wave {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skill-progress::after {
  content: attr(data-progress) '%';
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 500;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-progress::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-icon {
    font-size: 2.5rem;
  }

  .skill-name {
    font-size: 1.1rem;
  }
}

/* Projects Section */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  perspective: 1000px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-style: preserve-3d;
  animation: fadeInUp 0.6s ease-out backwards;
  box-shadow: 0 10px 20px var(--shadow-color);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 40px rgba(56, 189, 248, 0.2);
}

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

.project-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 1.5rem 0.5rem;
  color: var(--text-primary);
}

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

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-overlay h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s 0.1s;
}

.project-overlay p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s 0.2s;
}

.project-card:hover .project-overlay h4,
.project-card:hover .project-overlay p {
  transform: translateY(0);
  opacity: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s 0.3s;
}

.project-card:hover .tech-stack {
  transform: translateY(0);
  opacity: 1;
}

.tech-stack span {
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tech-stack span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(56, 189, 248, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s 0.4s;
}

.project-card:hover .project-links {
  transform: translateY(0);
  opacity: 1;
}

.project-links a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--accent-color);
  border-radius: 25px;
  transition: all 0.3s;
  font-weight: 500;
}

.project-links a:hover {
  background: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

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

  .project-card img {
    height: 200px;
  }

  .project-overlay {
    padding: 1.5rem;
  }

  .project-overlay h4 {
    font-size: 1.5rem;
  }

  .project-links {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .project-links a {
    text-align: center;
  }
}

/* Certificates Section */
#certificates {
  margin-top: 4rem;
}

#certificates .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.certificate-card {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.certificate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.9));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

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

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

.certificate-card::after {
  content: 'View Certificate';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.4s;
  z-index: 2;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  border: 2px solid transparent;
}

.certificate-card:hover::after {
  bottom: 15px;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

@media (max-width: 768px) {
  #certificates .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  .certificate-card {
    height: 150px;
  }
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
  position: relative;
}

.project-filters::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), #0ea5e9);
  transition: width 0.3s ease;
}

.project-filters:hover::before {
  width: 100%;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  border-radius: 25px;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.filter-btn.active::after {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% {
    filter: blur(0px);
  }
  50% {
    filter: blur(4px);
  }
  100% {
    filter: blur(0px);
  }
}

@media (max-width: 768px) {
  .project-filters {
    gap: 0.8rem;
    margin: 1.5rem 0 2rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

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

form {
  background: var(--form-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--shadow-color);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--input-bg);
  border: 2px solid rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all var(--transition-speed);
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
  outline: none;
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent-color);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

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

.column.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.column.right h3 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.column.right p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

.icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 50%;
  transition: all var(--transition-speed);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.icon img {
  width: 25px;
  height: 25px;
  transition: transform var(--transition-speed);
}

.icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  border-color: var(--accent-color);
}

.icon:hover img {
  transform: scale(1.1);
}

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

  form {
    padding: 2rem;
  }

  .column.right {
    text-align: center;
    padding: 1rem;
  }

  .icons {
    justify-content: center;
  }

  .icon {
    width: 45px;
    height: 45px;
  }

  .icon img {
    width: 20px;
    height: 20px;
  }
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

footer span {
  color: var(--accent-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

footer span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

footer span:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem 1.5rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn var(--transition-speed) ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  body {
    background: #000;
    color: #fff;
  }

  .project-card,
  .skill-card {
    background: #000;
    border: 2px solid #fff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Form Validation */
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #22c55e;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #22c55e;
  color: white;
}

.form-message.error {
  display: block;
  background: #ef4444;
  color: white;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition-speed);
  box-shadow: 0 -4px 12px var(--shadow-color);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.cookie-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-text a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.cookie-text a:hover {
  color: var(--accent-color-dark);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
}

.cookie-btn.accept {
  background: var(--accent-color);
  color: var(--bg-primary);
}

.cookie-btn.accept:hover {
  background: var(--accent-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

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

.cookie-btn.decline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 200px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 8px var(--shadow-color);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--shadow-color);
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: var(--bg-primary);
}

.back-to-top i {
  transition: transform var(--transition-speed);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform var(--transition-speed);
  transform: translate(-50%, -50%);
}

.custom-cursor.active {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--accent-color);
  transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--accent-color);
  opacity: 0.5;
}

/* Hide default cursor when custom cursor is active */
body.custom-cursor-active {
  cursor: none;
}

/* Show default cursor on touch devices */
@media (hover: none) {
  .custom-cursor {
    display: none;
  }
  
  body.custom-cursor-active {
    cursor: auto;
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color) var(--scroll-progress), transparent var(--scroll-progress));
  z-index: 1001;
  transition: height var(--transition-speed);
}

.scroll-progress:hover {
  height: 4px;
}

/* Add a subtle shadow to the progress bar */
.scroll-progress::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .project-overlay {
    padding: 1rem;
  }

  .tech-stack {
    justify-content: center;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .back-to-top {
    bottom: 1rem;
    left: 1rem;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 8px var(--shadow-color);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px var(--shadow-color);
  border-color: var(--accent-color);
}

.theme-toggle i {
  transition: transform var(--transition-speed);
}

.theme-toggle:hover i {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .theme-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Certificates Section */
#certificates .projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.certificate-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  aspect-ratio: 3/4;
  box-shadow: 0 10px 20px var(--shadow-color);
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.9));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

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

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

.certificate-card::after {
  content: 'View Certificate';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.4s;
  z-index: 2;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  border: 2px solid transparent;
}

.certificate-card:hover::after {
  bottom: 15px;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

@media (max-width: 768px) {
  #certificates .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  .certificate-card {
    aspect-ratio: 4/3;
  }
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
  position: relative;
}

.project-filters::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), #0ea5e9);
  transition: width 0.3s ease;
}

.project-filters:hover::before {
  width: 100%;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  border-radius: 25px;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.filter-btn.active::after {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% {
    filter: blur(0px);
  }
  50% {
    filter: blur(4px);
  }
  100% {
    filter: blur(0px);
  }
}

@media (max-width: 768px) {
  .project-filters {
    gap: 0.8rem;
    margin: 1.5rem 0 2rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Certificate Modal */
.certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.certificate-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.certificate-modal.show .modal-content {
  transform: scale(1);
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
  transform: rotate(90deg);
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    padding: 0.5rem;
  }

  .close-modal {
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    font-size: 1.2rem;
  }
}

/* Education Section */
#education {
  position: relative;
  padding: 4rem 2rem;
}

.education-timeline {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 2rem 0;
}

.education-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.education-card {
  position: relative;
  width: calc(50% - 30px);
  margin-bottom: 3rem;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
}

.education-card:nth-child(odd) {
  margin-left: auto;
}

.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }

.education-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

.education-card:nth-child(odd)::before {
  left: -30px;
}

.education-card:nth-child(even)::before {
  right: -30px;
}

.education-icon {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  transition: all 0.4s ease;
}

.education-card:nth-child(odd) .education-icon {
  left: -75px;
  transform: translateY(-50%);
}

.education-card:nth-child(even) .education-icon {
  right: -75px;
  transform: translateY(-50%);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.education-card:hover .education-icon {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.education-content h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.education-content .institution {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.education-content .duration {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.education-content .description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.education-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.education-details span {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.education-details span:hover {
  background: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .education-timeline::before {
    left: 30px;
  }

  .education-card {
    width: calc(100% - 60px);
    margin-left: 60px;
  }

  .education-card:nth-child(odd) {
    margin-left: 60px;
  }

  .education-card::before {
    left: -30px !important;
    right: auto !important;
  }

  .education-icon {
    left: -75px !important;
    right: auto !important;
  }

  .education-card:nth-child(even) .education-icon {
    left: -75px;
    right: auto;
  }
}

/* About Section */
#about {
  position: relative;
  padding: 4rem 2rem;
}

.about-content {
  max-width: 1000px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 20px var(--shadow-color);
}

.stat-item {
  text-align: center;
  padding: 1rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }

  .stat-item:last-child {
    grid-column: 1 / -1;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Competitive Programming Section */
#competitive-programming {
  position: relative;
  padding: 4rem 2rem;
}

.cp-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  perspective: 1000px;
}

.cp-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: fadeInUp 0.6s ease-out backwards;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.cp-card:nth-child(1) { animation-delay: 0.1s; }
.cp-card:nth-child(2) { animation-delay: 0.2s; }
.cp-card:nth-child(3) { animation-delay: 0.3s; }

.cp-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.cp-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.cp-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cp-card:hover .cp-logo {
  transform: scale(1.1);
}

.cp-header h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 0;
  font-weight: 600;
}

.cp-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-value {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.cp-link {
  display: inline-block;
  width: 100%;
  padding: 0.8rem;
  background: var(--accent-color);
  color: var(--text-primary);
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
}

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

  .cp-card {
    padding: 1.5rem;
  }

  .cp-header h3 {
    font-size: 1.3rem;
  }

  .stat-value {
    font-size: 1rem;
  }
}

/* Events Sections */
#tech-events,
#non-tech-events {
  position: relative;
  padding: 4rem 2rem;
}

/* #tech-events {
  background: var(--bg-secondary);
}

#non-tech-events {
  background: var(--bg-primary);
} */

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

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

.event-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.event-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-content {
  padding: 1.5rem;
}

.event-content h4 {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-location::before {
  content: '\f3c5';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--accent-color);
}

.event-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

  .event-image {
    height: 180px;
  }

  .event-content {
    padding: 1.2rem;
  }

  .event-content h4 {
    font-size: 1.2rem;
  }
}

/* Event Image Carousel */
.event-image-carousel {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-container img.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent-color);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .event-image-carousel {
    height: 200px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

#hero .profile-image {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  overflow: hidden;
  animation: fadeInUp 1s ease;
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); */
  display: inline-block;
}

#hero .profile-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Adjust shadow height */
  background: linear-gradient(to top, #0f172a, transparent);
  pointer-events: none;
}

#hero .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#hero .profile-image:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #hero .profile-image {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
  }
} 

.fa-supabase {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url("https://cdn.simpleicons.org/supabase/3FCF8E") no-repeat center;
  background-size: contain;
}