
:root {
  /* Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  
  /* Glass Colors */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Background */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  
  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: var(--accent-gradient);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 120px; height: 120px; top: 60%; left: 80%; animation-delay: -5s; }
.shape-3 { width: 60px; height: 60px; top: 80%; left: 20%; animation-delay: -10s; }
.shape-4 { width: 100px; height: 100px; top: 30%; left: 70%; animation-delay: -15s; }
.shape-5 { width: 40px; height: 40px; top: 10%; left: 50%; animation-delay: -7s; }
.shape-6 { width: 90px; height: 90px; top: 70%; left: 60%; animation-delay: -12s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

/* Gradient Orbs */
.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: orbFloat 25s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-gradient);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary-gradient);
  top: 50%;
  right: 10%;
  animation-delay: -10s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-gradient);
  bottom: 20%;
  left: 50%;
  animation-delay: -20s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(50px, 30px) scale(1.05); }
}

/* Glass Morphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Header */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.glass-header.scrolled {
  padding: 10px 0;
  box-shadow: var(--glass-shadow);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.glass-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo a:hover {
  transform: scale(1.1);
}

/* Navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: 25px;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

.resume-link {
  background: var(--accent-gradient) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.resume-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

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

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

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

.mobile-nav {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 80px);
  padding: 30px;
  transition: var(--transition-smooth);
  z-index: 999;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav .nav-link {
  display: block;
  padding: 15px 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: 50px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

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

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

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.text-zone {
  z-index: 2;
}

.title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.title-word {
  display: inline-block;
  margin-right: 15px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.4s; }
.title-word:nth-child(3) { animation-delay: 0.6s; }

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

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-secondary);
}

#animated-subtitle {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  position: relative;
}

#animated-subtitle::after {
  content: '|';
  color: var(--text-primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
  z-index: 1;
}

.glow-btn {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.glass-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Home Image */
.home-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.circle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.image-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

.profile-img {
  position: absolute;
  top: 15px;
  left: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-icons {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
}

.floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  animation: floatIcon 6s ease-in-out infinite;
}

/* React Icon - Top center */
.floating-icon:nth-child(1) {
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
  color: #61dafb;
}

/* JavaScript Icon - Top left */
.floating-icon:nth-child(2) {
  top: 20px;
  left: -25px;
  animation-delay: -1.5s;
  color: #f7df1e;
}

/* Python Icon - Top right */
.floating-icon:nth-child(3) {
  top: 20px;
  right: -25px;
  animation-delay: -3s;
  color: #3776ab;
}

/* Database Icon - Bottom left */
.floating-icon:nth-child(4) {
  bottom: 20px;
  left: -25px;
  animation-delay: -4.5s;
  color: #dbd0d0;
}

/* GitHub Icon - Bottom right */
.floating-icon:nth-child(5) {
  bottom: 20px;
  right: -25px;
  animation-delay: -6s;
  color: #333;
}

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

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

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

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-text,
.skills-container {
  padding: 25px;
  position: relative;
}

.about-subtitle {
  font-size: 1.3rem;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}

.social-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-bounce);
  overflow: hidden;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: var(--primary-gradient);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.skill-item {
  position: relative;
  padding: 15px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  text-align: center;
  transition: var(--transition-bounce);
  cursor: pointer;
  overflow: hidden;
}

.skill-item:hover {
  transform: translateY(-10px) scale(1.05);
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skill-item span {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Interest Tags */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-tag {
  padding: 8px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.interest-tag:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-3px);
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  margin-bottom: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 15px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar {
  height: 8px;
}

.projects-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
  background: rgba(129, 149, 238, 0.5);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 149, 238, 0.8);
}

.project-card {
  position: relative;
  flex: 0 0 340px;
  width: 340px;
  min-width: 340px;
  height: 430px;
  padding: 0;
  transition: var(--transition-bounce);
  overflow: hidden;
  will-change: transform;
  scroll-snap-align: start;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(129, 149, 238, 0.8), rgba(118, 75, 162, 0.8));
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.project-icon {
  position: absolute;
  top: 40%;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-primary);
  z-index: 3;
  transition: var(--transition-smooth);
}

.project-card:hover .project-icon {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1);
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, var(--glass-bg) 90%, transparent);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  height: 50%;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  /* Fix height to show exactly 3 lines */
  min-height: 4.5em;
  max-height: 4.5em;
  overflow-y: auto;
  flex: 0 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

/* Chrome, Edge, Safari */
.project-description::-webkit-scrollbar {
  width: 6px;
}

.project-description::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 4px;
}

.project-description::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox */
.project-description {
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}


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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  flex-shrink: 0;
  min-height: 0;
  overflow: hidden;
}

.project-tech span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* GitHub Link */
.github-link-container {
  text-align: center;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-bounce);
}

.github-link:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

/* Experience Section */
.experience-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.experience-item {
  position: relative;
  padding: 25px;
  transition: var(--transition-bounce);
}

.experience-item:hover {
  transform: translateY(-8px);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.experience-header h3 {
  font-size: 1.3rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.experience-place {
  padding: 6px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.experience-details {
  display: flex;
  flex-direction: column;
  
}

.experience-subject {
  padding: 8px;
  /*background: rgba(255, 255, 255, 0.05);*/
  border-left: 4px solid var(--accent-gradient);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.experience-subject:hover {
 /* background: rgba(255, 255, 255, 0.1);*/
  transform: translateX(10px);
}

.experience-subject h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.experience-subject h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.experience-subject h4 a:hover {
  color: #4facfe;
}

.experience-subject h4 a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

.experience-subject h4 a:hover::after {
  width: 100%;
}

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

/* Education Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding: 25px;
  margin-left: 60px;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  left: -45px;
  width: 16px;
  height: 16px;
  background: var(--primary-gradient);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  z-index: 2;
  animation: pulse 2s infinite;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-content h4 {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  margin-top: 15px;
}

.achievement i {
  color: #ffd700;
  font-size: 1.1rem;
}

.achievement span {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Certifications */
.certifications-title {
  margin-top: 60px;
}

.certifications {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.cert-item:hover {
  transform: translateX(10px) scale(1.02);
}

.cert-icon {
  font-size: 1.8rem;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition-smooth);
}

.cert-item:hover .cert-icon {
  transform: scale(1.2) rotate(10deg);
}

.cert-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.cert-item:hover .cert-content h3 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  
  border-radius: 15px;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  background: var(--primary-gradient);
  color: white;
}

.contact-text h3 {
  margin-bottom: 5px;
  color: var(--text-primary);
}

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

.contact-text a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-text a:hover {
  color: #4facfe;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition-smooth);
  resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4facfe;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-smooth);
  pointer-events: none;
  background: transparent;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 15px;
  font-size: 0.8rem;
  color: #4facfe;
  background: var(--bg-primary);
  padding: 0 8px;
  border-radius: 8px;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 30px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 15px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .home-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .cta-buttons {
    justify-content: center;
    align-items: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .projects-grid {
    flex-wrap: nowrap;
  }
  
  .project-card {
    flex: 0 0 300px;
    min-width: 300px;
    width: 300px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .title {
    font-size: 2.8rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
  
  .cta-buttons {
    justify-content: center;
    align-items: center;
  }
  
  .image-container {
    width: 250px;
    height: 250px;
  }
  
  .projects-grid {
    flex-wrap: nowrap;
  }
  
  .project-card {
    flex: 0 0 280px;
    min-width: 280px;
    width: 280px;
    height: auto;
    min-height: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .project-card .project-image {
    position: relative;
    height: 180px;
    flex-shrink: 0;
  }
  
  .project-card .project-icon {
    top: auto;
    bottom: 10px;
    right: 15px;
  }
  
  .project-card .project-content {
    position: relative;
    height: auto;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }
  
  .project-card .project-description {
    min-height: auto;
    max-height: none;
    flex: 1;
  }
  
  .project-card .project-tech {
    flex-shrink: 0;
    overflow: visible;
  }
  
  .project-card .project-tech span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .timeline-item {
    margin-left: 40px;
    padding: 20px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: -35px;
  }
  
  .subject-row {
    flex-wrap: wrap;
  }
  
  .subject-date {
    white-space: normal;
    margin-left: 0;
    margin-top: 4px;
    flex-shrink: 1;
    word-break: break-word;
  }
  
  .experience-item,
  .experience-subject {
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
  }
  
  .experience-subject h4,
  .experience-subject p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .about-text,
  .skills-container {
    padding: 20px;
  }
  
  .contact-content {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 120px; /* Increased to ensure text is always below navbar */
  }
  .btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    min-height: 44px;
  }
  .cta-buttons {
    gap: 12px;
  }
  .image-container {
    width: 180px;
    height: 180px;
  }
  .floating-icons {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  .floating-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  /* Reposition floating icons further from buttons */
  .floating-icon:nth-child(1) { top: -18px; }
  .floating-icon:nth-child(2) { top: 10px; left: -18px; }
  .floating-icon:nth-child(3) { top: 10px; right: -18px; }
  .floating-icon:nth-child(4) { bottom: 10px; left: -18px; }
  .floating-icon:nth-child(5) { bottom: 10px; right: -18px; }
  .contact-content {
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .contact-info {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .contact-item {
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 8px;
    font-size: 0.95rem;
  }
  .contact-icon {
    min-width: 40px;
    min-height: 40px;
    font-size: 1.1rem;
  }
  .contact-text {
    word-break: break-word;
  }
  .scroll-indicator {
    bottom: 10px;
    gap: 4px;
    font-size: 0.9rem;
  }
  .mouse {
    width: 18px;
    height: 28px;
    border-width: 1.5px;
  }
  .wheel {
    width: 3px;
    height: 3px;
    top: 5px;
  }
}

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

/* Print Styles */
@media print {
  .animated-bg,
  .floating-shapes,
  .gradient-orbs,
  .scroll-indicator {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .glass-panel {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

.subject-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.subject-row h4 {
  margin-bottom: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.subject-date {
  color: var(--text-muted);
  font-size: 0.95em;
  white-space: nowrap;
  margin-left: 20px;
  flex-shrink: 0;
}