@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap");

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

/* Universal reset for consistent cross-browser styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =========================================== */

/* Color palette and design tokens for consistent theming */
:root {
  /* Primary Brand Colors */
  --cosmic-purple: #6366f1;
  --electric-blue: #3b82f6;
  --neon-green: #10b981;
  --sunset-orange: #f59e0b;
  --magic-pink: #ec4899;
  --deep-space: #0f172a;
  --stardust: #f8fafc;

  /* Skill Category Color Coding System */
  --frontend-color: #61dafb; /* React/Frontend blue */
  --backend-color: #68d391; /* Node.js green */
  --database-color: #f6ad55; /* Database orange */
  --cloud-color: #9f7aea; /* Cloud purple */
  --ai-color: #f093fb; /* AI pink gradient */
  --blockchain-color: #ffd700; /* Blockchain gold */
  --security-color: #ff6b6b; /* Security red */
  --devops-color: #4ecdc4; /* DevOps teal */
  --tools-color: #a78bfa; /* Tools purple */
}

/* ===========================================
   BODY & GLOBAL STYLES
   =========================================== */

/* Main body styling with cosmic background gradient */
body {
  font-family: "Fredoka", cursive;
  background: linear-gradient(135deg, var(--deep-space) 0%, #1e293b 50%, var(--cosmic-purple) 100%);
  color: var(--stardust);
  overflow-x: hidden; /* Prevent horizontal scroll */
  line-height: 1.6;
}

/* ===========================================
   FLOATING PARTICLES ANIMATION SYSTEM
   =========================================== */

/* Container for floating particle effects */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  z-index: 1; 
}

/* Individual particle styling */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

/* Particle color variations and timing offsets */
.particle:nth-child(2) {
  left: 20%;
  animation-delay: -1s;
  background: var(--magic-pink);
}
.particle:nth-child(3) {
  left: 40%;
  animation-delay: -2s;
  background: var(--sunset-orange);
}
.particle:nth-child(4) {
  left: 60%;
  animation-delay: -3s;
  background: var(--electric-blue);
}
.particle:nth-child(5) {
  left: 80%;
  animation-delay: -4s;
  background: var(--cosmic-purple);
}

/* Floating animation keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-10vh) rotate(180deg);
  }
}

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

/* Fixed navigation bar with glassmorphism effect */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* Above all other content */
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(15px); /* Glassmorphism effect */
  border-radius: 50px;
  padding: 12px 25px;
  border: 2px solid var(--cosmic-purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Navigation list items */
nav li {
  position: relative;
}

/* Navigation links with hover effects */
nav a {
  color: var(--stardust);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 1.2rem;
  display: block;
  position: relative;
}

/* Navigation hover effects */
nav a:hover {
  background: var(--cosmic-purple);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* ===========================================
   SECTION LAYOUT SYSTEM
   =========================================== */

/* Base section styling for consistent spacing */
section {
  min-height: 100vh;
  padding: 140px 20px 80px;
  position: relative;
  z-index: 10; /* Above particles, below navigation */
}

/* Container for content width control */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Main hero section layout */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 160px; /* Extra space for fixed navigation */
}

/* Hero content wrapper with entrance animation */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

/* Profile image with animated glow effect */
.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--neon-green);
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
  object-fit: cover;
}

/* Pulsing glow animation for profile image */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 80px rgba(16, 185, 129, 0.8);
  }
}

/* Main heading with gradient text effect */
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--neon-green), var(--electric-blue), var(--magic-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Secondary heading with matching gradient */
.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--neon-green), var(--electric-blue), var(--magic-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle styling */
.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--sunset-orange);
}

/* Main tagline paragraph */
.hero .tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================================
   ABOUT SECTION
   =========================================== */

/* About section with background overlay */
.about {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
}

/* About section heading */
.about h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--magic-pink);
}

/* Two-column grid layout for about content */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* About text content styling */
.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* About image container */
.about-image {
  text-align: center;
}

/* Animated frame for about image */
.image-frame {
  position: relative;
  display: inline-block;
  padding: 20px;
  background: linear-gradient(45deg, var(--magic-pink), var(--sunset-orange), var(--neon-green));
  border-radius: 20px;
  animation: gentleShake 3s ease-in-out infinite;
}

/* Inner frame effect */
.image-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: var(--deep-space);
  border-radius: 15px;
  z-index: 1;
}

/* About image styling */
.image-frame img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Gentle shake animation for image frame */
@keyframes gentleShake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  50% {
    transform: translateX(0) rotate(0deg);
  }
  75% {
    transform: translateX(2px) rotate(0.5deg);
  }
}

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

/* Skills section heading */
.skills h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--electric-blue);
}

/* Grid layout for skill categories */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Individual skill category card */
.skill-category {
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--cosmic-purple);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Skill category hover effects */
.skill-category:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Skill category header layout */
.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Animated category icons */
.category-icon {
  font-size: 2.5rem;
  animation: bounce 2s infinite ease-in-out;
}

/* Category heading styling */
.category-header h3 {
  font-size: 1.5rem;
  color: var(--stardust);
  margin: 0;
}

/* Skills list container */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Base skill tag styling */
.skill-tag {
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

/* ===========================================
   SKILL TAG COLOR CODING SYSTEM
   =========================================== */

/* Frontend technologies - Blue theme */
.skill-tag.frontend {
  background: linear-gradient(45deg, var(--frontend-color), #4fc3f7);
}

/* Backend technologies - Green theme */
.skill-tag.backend {
  background: linear-gradient(45deg, var(--backend-color), #81c784);
}

/* Database technologies - Orange theme */
.skill-tag.database {
  background: linear-gradient(45deg, var(--database-color), #ffb74d);
}

/* Cloud technologies - Purple theme */
.skill-tag.cloud {
  background: linear-gradient(45deg, var(--cloud-color), #b39ddb);
}

/* AI/ML technologies - Pink theme */
.skill-tag.ai {
  background: linear-gradient(45deg, var(--ai-color), #f48fb1);
}

/* Blockchain technologies - Gold theme */
.skill-tag.blockchain {
  background: linear-gradient(45deg, var(--blockchain-color), #fff176);
  color: #333; /* Dark text for better contrast on gold */
}

/* Security technologies - Red theme */
.skill-tag.security {
  background: linear-gradient(45deg, var(--security-color), #ff8a80);
}

/* DevOps technologies - Teal theme */
.skill-tag.devops {
  background: linear-gradient(45deg, var(--devops-color), #80cbc4);
}

/* Development tools - Purple theme */
.skill-tag.tools {
  background: linear-gradient(45deg, var(--tools-color), #ce93d8);
}

/* Skill tag hover effects */
.skill-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--stardust);
}

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

/* Projects section with background overlay */
.projects {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
}

/* Projects section heading */
.projects h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--sunset-orange);
}

/* Grid layout for project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Individual project card styling */
.project-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--neon-green);
  transition: all 0.3s ease;
  position: relative;
}

/* Project card hover effects */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

/* Project image container */
.project-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* Project screenshot image */
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Image zoom effect on card hover */
.project-card:hover .project-image {
  transform: scale(1.1);
}

/* Project status overlay */
.project-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* Project status badge */
.project-status {
  background: rgba(0, 0, 0, 0.8);
  color: var(--stardust);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Project content area */
.project-content {
  padding: 25px;
}

/* Project title */
.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--stardust);
}

/* Project description */
.project-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Technology stack container */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* Technology tag styling */
.tech-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--cosmic-purple);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--cosmic-purple);
}

/* Project actions container */
.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===========================================
   DANCING BUTTON ANIMATION SYSTEM
   =========================================== */

/* Base dancing button styling */
.dancing-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: dance 3s infinite ease-in-out;
  width: 100%;
  text-align: center;
}

/* Visit button specific styling */
.dancing-btn.visit-btn {
  background: linear-gradient(45deg, var(--neon-green), var(--electric-blue));
  color: white;
}

/* Shimmer effect for buttons */
.dancing-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: left 0.5s ease;
}

/* Shimmer animation on hover */
.dancing-btn:hover::before {
  left: 100%;
}

/* Button hover effects */
.dancing-btn:hover {
  transform: translateY(-3px) scale(1.05);
  animation: none; /* Stop dancing on hover */
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  border-color: var(--stardust);
}

/* Dance animation keyframes */
@keyframes dance {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(1deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-2px) rotate(-1deg);
  }
}

/* ===========================================
   CONTACT SECTION
   =========================================== */

/* Contact section with background overlay */
.contact {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  min-height: auto;
  padding: 80px 20px;
}

/* Contact section heading */
.contact h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--magic-pink);
}

/* Contact introduction content */
.contact-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Contact introduction paragraphs */
.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Contact section decorative image */
.contact-image {
  width: 250px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

/* Warning text styling */
.warning-text {
  font-style: italic;
  color: var(--sunset-orange);
}

/* ===========================================
   CONTACT FORM SYSTEM
   =========================================== */

/* Contact form container */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Main form styling with glassmorphism */
.magical-form {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--cosmic-purple);
  border-radius: 25px;
  padding: 40px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Two-column grid for form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

/* Form group container */
.form-group {
  margin-bottom: 25px;
}

/* Form labels with emoji icons */
.form-group label {
  display: block;
  color: var(--sunset-orange);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Form input fields styling */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--cosmic-purple);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--stardust);
  font-family: "Fredoka", cursive;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Form field focus effects */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Textarea specific styling */
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Placeholder text styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(248, 250, 252, 0.6);
  font-style: italic;
}

/* ===========================================
   RAVEN BUTTON (SUBMIT BUTTON)
   =========================================== */

/* Form actions container */
.form-actions {
  text-align: center;
  margin-top: 30px;
}

/* Main raven submit button */
.raven-btn {
  background: linear-gradient(45deg, var(--magic-pink), var(--cosmic-purple));
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-family: "Fredoka", cursive;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: ravenGlow 2s infinite ease-in-out;
}

/* Raven button hover effects */
.raven-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4);
}

/* Raven icon animation */
.raven-btn .btn-icon {
  font-size: 1.4rem;
  animation: fly 2s infinite ease-in-out;
}

/* Magic pulse effect for raven button */
.raven-btn .btn-magic {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: magic-pulse 2s infinite ease-out;
}

/* Raven button glow animation */
@keyframes ravenGlow {
  0%,
  100% {
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
  }
  50% {
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
  }
}

/* Flying raven animation */
@keyframes fly {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg);
  }
}

/* Magic pulse animation */
@keyframes magic-pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* ===========================================
   ALTERNATIVE CONTACT METHODS
   =========================================== */

/* Alternative contact methods container */
.contact-alternatives {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Alternative methods heading */
.contact-alternatives h3 {
  color: var(--electric-blue);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

/* Contact methods button container */
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Base contact method button styling */
.contact-method {
  background: linear-gradient(45deg, var(--electric-blue), var(--cosmic-purple));
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

/* Contact method hover effects */
.contact-method:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Platform-specific button colors */
.contact-method.linkedin {
  background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.contact-method.github {
  background: linear-gradient(45deg, #333, #666);
}

.contact-method.cv {
  background: linear-gradient(45deg, var(--sunset-orange), var(--magic-pink));
}

/* ===========================================
   GLOBAL ANIMATIONS
   =========================================== */

/* Fade in up animation for hero content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bounce animation for icons */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Code font styling for inline code elements */
.code-font {
  font-family: "JetBrains Mono", monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--neon-green);
}

/* ===========================================
   TOP ACTION BUTTONS SYSTEM
   =========================================== */

/* Container for strategic top buttons */
.top-action-buttons {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 1001; /* Above navigation */
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none; /* Allow clicks through container */
}

/* Base top button styling */
.top-btn {
  pointer-events: auto; /* Re-enable clicks on buttons */
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  animation: shake 2s infinite ease-in-out;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CV button specific styling */
.cv-btn {
  background: linear-gradient(135deg, var(--sunset-orange), var(--magic-pink));
  color: white;
  border-color: var(--sunset-orange);
}

/* GitHub button specific styling */
.github-btn {
  background: linear-gradient(135deg, var(--deep-space), var(--cosmic-purple));
  color: var(--stardust);
  border-color: var(--cosmic-purple);
}

/* Button icon styling */
.btn-icon {
  font-size: 1.2rem;
  animation: bounce 1.5s infinite ease-in-out;
}

/* Button text styling */
.btn-text {
  font-family: "Fredoka", cursive;
  white-space: nowrap;
}

/* Button pulse effect */
.btn-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s infinite ease-out;
}

/* Shake animation for attention-grabbing effect */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

/* Pulse ring animation */
@keyframes pulse-ring {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* Top button hover effects */
.top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  animation: none; /* Stop shaking on hover */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* CV button hover color change */
.cv-btn:hover {
  background: linear-gradient(135deg, var(--magic-pink), var(--sunset-orange));
  border-color: var(--magic-pink);
}

/* GitHub button hover color change */
.github-btn:hover {
  background: linear-gradient(135deg, var(--cosmic-purple), var(--electric-blue));
  border-color: var(--electric-blue);
}

/* Button icon hover effects */
.top-btn:hover .btn-icon {
  animation: none;
  transform: scale(1.2);
}

/* Button active state */
.top-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Shimmer effect for top buttons */
.top-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: left 0.5s ease;
}

/* Shimmer animation on hover */
.top-btn:hover::before {
  left: 100%;
}

/* ===========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   =========================================== */

/* Tablet and Mobile Devices (768px and below) */
@media (max-width: 768px) {
  /* Navigation - Mobile Optimized */
  nav {
    padding: 8px 15px;
    min-width: auto;
    width: auto;
  }

  nav ul {
    gap: 8px;
  }

  nav a {
    padding: 8px 10px;
    font-size: 1.1rem;
  }

  /* Top Action Buttons - Mobile Layout */
  .top-action-buttons {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
  }

  .top-btn {
    pointer-events: auto;
    font-size: 0.75rem;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    text-align: center;
  }

  /* Show button text on mobile with smaller font */
  .btn-text {
    display: block;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 600;
  }

  .btn-icon {
    font-size: 1.2rem;
  }

  /* Position CV button on the left */
  .cv-btn {
    background: linear-gradient(135deg, var(--sunset-orange), var(--magic-pink));
    color: white;
    border-color: var(--sunset-orange);
  }

  /* Position GitHub button on the right */
  .github-btn {
    background: linear-gradient(135deg, var(--deep-space), var(--cosmic-purple));
    color: var(--stardust);
    border-color: var(--cosmic-purple);
  }

  /* Hero Section - Mobile Adjustments */
  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  /* About Section - Mobile Layout */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about h2 {
    font-size: 2.5rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .image-frame img {
    width: 250px;
    height: 250px;
  }

  /* Skills Section - Mobile Layout */
  .skills h2 {
    font-size: 2.5rem;
  }

  .skills-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-category {
    padding: 20px;
  }

  .category-icon {
    font-size: 2rem;
  }

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

  /* Projects Section - Mobile Layout */
  .projects h2 {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-content {
    padding: 20px;
  }

  /* Contact Section - Mobile Layout */
  .contact h2 {
    font-size: 2.5rem;
  }

  .contact-intro {
    margin-bottom: 30px;
  }

  .contact-intro p {
    font-size: 1rem;
  }

  .contact-image {
    width: 200px;
    height: 120px;
  }

  .magical-form {
    padding: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .raven-btn {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .contact-methods {
    gap: 15px;
  }

  .contact-method {
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  /* General Mobile Adjustments */
  section {
    padding: 80px 15px 60px;
  }

  .container {
    padding: 0 10px;
  }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
  /* Adjust navigation to account for top buttons */
  nav {
    padding: 6px 10px;
    top: 80px; /* Move nav down to avoid button overlap */
  }

  nav ul {
    gap: 5px;
  }

  nav a {
    padding: 6px 8px;
    font-size: 1rem;
  }

  /* Adjust hero section padding for button space */
  .hero {
    padding-top: 140px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .about h2,
  .skills h2,
  .projects h2,
  .contact h2 {
    font-size: 2rem;
  }

  .magical-form {
    padding: 20px;
  }

  .raven-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  /* Make top buttons even more compact on very small screens */
  .top-btn {
    padding: 6px 8px;
    min-width: 50px;
  }

  .btn-text {
    font-size: 0.65rem;
  }

  .btn-icon {
    font-size: 1rem;
  }
}

/* Large Mobile Devices and Tablets (769px to 992px) */
@media (max-width: 992px) and (min-width: 769px) {
  .skills-categories {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ===========================================
   END OF STYLESHEET
   =========================================== */
