/* 
 * Clean, Optimized CSS for myPortfolio Theme
 * 
 * This file contains all the styles for the myPortfolio template
 * in a clean, organized, and optimized manner.
 * 
 * Variables and base styles are defined first, followed by
 * section-specific styles and responsive adjustments.
 */

/* ============================================
 * CSS VARIABLES - Color Palette & Design Tokens
 * ============================================ */
:root {
  /* Backgrounds */
  --bg-main: #05070f;
  --bg-secondary: #0b1020;
  --bg-card: #0f172a;
  --bg-glass: rgba(15, 23, 42, 0.65);

  /* Neon Primary Colors */
  --neon-cyan: #22f0ff;
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;

  /* Soft Glow Variants */
  --glow-cyan: rgba(34, 240, 255, 0.6);
  --glow-blue: rgba(59, 130, 246, 0.6);
  --glow-purple: rgba(139, 92, 246, 0.6);
  --glow-pink: rgba(236, 72, 153, 0.6);

  /* Text Colors */
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* UI Accents */
  --border-neon: rgba(139, 92, 246, 0.4);
  --border-soft: rgba(255, 255, 255, 0.08);

  /* Icons */
  --icon-primary: #22f0ff;
  --icon-secondary: #a78bfa;

  /* Gradients */
  --gradient-neon: linear-gradient(
    135deg,
    #22f0ff 0%,
    #3b82f6 35%,
    #8b5cf6 70%,
    #ec4899 100%
  );

  --gradient-bg: radial-gradient(
    circle at top,
    rgba(59, 130, 246, 0.15),
    rgba(5, 7, 15, 1) 70%
  );
}

/* ============================================
 * BASE STYLES - Reset and Global Styles
 * ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ============================================
 * NAVIGATION STYLES - Header & Mobile Menu
 * ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-secondary) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.logo h2 {
  color: var(--text-primary);
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--neon-cyan);
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 5px;
}

.logo span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-neon);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-neon);
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* Mobile menu styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 2000;
  }

  .hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: 0.3s;
  }

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

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-main);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 70px);
    display: flex;
    z-index: 1999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    padding: 1.5rem;
    display: block;
    font-size: 1.2rem;
  }

  .language-switcher {
    position: absolute;
    right: 4rem;
    top: 1.5rem;
    z-index: 1998;
  }
}

/* ============================================
 * SEARCH BAR STYLES - Enhanced Navigation Search
 * ============================================ */
.search-container {
  position: relative;
  margin-left: 2rem;
  display: flex;
  align-items: center;
}

.search-form-nav {
  display: flex;
  align-items: center;
  position: relative;
}

.search-input-nav {
  padding: 10px 15px 10px 40px;
  border-radius: 50px;
  border: 1px solid var(--border-soft);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 220px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  outline: none;
}

.search-input-nav:focus {
  width: 250px;
  background: var(--bg-card);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px var(--glow-cyan);
  outline: none;
}

.search-input-nav::placeholder {
  color: var(--text-muted);
}

.search-button-nav {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 20px;
  height: 20px;
}

.search-button-nav:hover {
  color: var(--neon-cyan);
}

/* Mobile search styling */
@media screen and (max-width: 768px) {
  .search-container {
    position: absolute;
    top: 1.5rem;
    right: 8rem;
    margin-left: 0;
  }
  
  .search-input-nav {
    width: 180px;
  }
  
  .search-input-nav:focus {
    width: 200px;
  }
}

/* ============================================
 * HERO SECTION STYLES - Main Landing Area
 * ============================================ */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  background: var(--gradient-bg);
}

/* Rich Cleaners Page Style */
.rich-cleaners-page {
  background: var(--gradient-bg) !important;
}

.rich-cleaners-page h1 {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rich-cleaners-page .hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/bg-hero.png') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.2rem;
  animation: fadeInUp 1s ease-out;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s both;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--gradient-neon);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 1s ease 0.4s both;
  border: 2px solid transparent;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px var(--glow-purple);
}

.cta-button:hover {
  background: transparent;
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--glow-cyan);
}

/* ============================================
 * PROJECTS SECTION STYLES - Portfolio Display
 * ============================================ */
.projects {
  padding: 120px 0;
  background: var(--bg-main);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: var(--text-primary);
  position: relative;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--gradient-neon);
  border-radius: 3px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 3rem;
}

.projects-grid-four {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 3rem;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.filter-btn.active,
.filter-btn.selected {
  background: var(--gradient-neon);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 15px var(--glow-purple);
}

.load-more-btn {
  display: block;
  margin: 3rem auto;
  padding: 15px 40px;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 250px;
}

.load-more-btn:hover {
  background: var(--gradient-neon);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px var(--glow-cyan);
  transform: translateY(-3px);
}

.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--bg-card);
  height: 400px;
  border: 1px solid var(--border-soft);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4);
  border: 1px solid var(--neon-purple);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-info h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-info p {
  color: #e0e7ee;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.demo-btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--gradient-neon);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 0 15px var(--glow-purple);
}

.demo-btn:hover {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-cyan);
}

/* ============================================
 * ABOUT SECTION STYLES - Personal Information
 * ============================================ */
.about {
  padding: 120px 0;
  background: var(--bg-secondary);
}

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

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-neon);
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.3rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.skills h3 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-neon);
  border-radius: 2px;
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-item span {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.progress-bar {
  height: 12px;
  background-color: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

/* ============================================
 * CONTACT SECTION STYLES - Contact Form & Info
 * ============================================ */
.contact {
  padding: 120px 0;
  background: var(--gradient-bg);
}

.contact h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-glass);
  border-radius: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
}

.contact-item:hover {
  transform: translateY(-5px);
  background: var(--bg-card);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.contact-item i {
  font-size: 1.8rem;
  margin-right: 1.2rem;
  color: var(--neon-cyan);
  min-width: 30px;
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-item p {
  color: #e0e7ee;
  line-height: 1.6;
}

.contact-form {
  background: var(--bg-glass);
  padding: 2.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--bg-card);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 0 3px var(--glow-cyan);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient-neon);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px var(--glow-purple);
}

.submit-btn:hover {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--glow-cyan);
}

/* ============================================
 * FOOTER STYLES - Page Footer Section
 * ============================================ */
.footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1.5rem 0 1rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-neon);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-content p {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-align: center;
}

.hosting {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hosting a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.hosting-link {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.hosting-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--gradient-neon);
  transition: width 0.3s ease;
}

.hosting-link:hover::after {
  width: 100%;
}

.hosting-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--glow-cyan), 0 0 10px var(--glow-purple);
}

.design-by {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 5px;
}

.design-by::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-neon);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
  width: 100%;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-soft);
}

.social-links a:hover {
  background: var(--gradient-neon);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 20px var(--glow-cyan);
}

/* ============================================
 * PRELOADER STYLES - Initial Loading Animation
 * ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.loader-container {
  text-align: center;
  max-width: 80%;
}

.neon-text {
  font-size: 2.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 8px;
  margin-bottom: 2rem;
  font-weight: 700;
  animation:
    glow 2s infinite alternate,
    pulse 1.5s infinite;
  text-shadow:
    0 0 5px var(--glow-cyan),
    0 0 10px var(--glow-purple),
    0 0 20px var(--glow-cyan),
    0 0 40px var(--glow-blue),
    0 0 80px var(--glow-purple);
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.loading-progress {
  width: 0;
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

@keyframes progressAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

@keyframes glow {
  from {
    text-shadow:
      0 0 5px var(--glow-cyan),
      0 0 10px var(--glow-purple),
      0 0 20px var(--glow-cyan),
      0 0 40px var(--glow-blue),
      0 0 80px var(--glow-purple);
  }
  to {
    text-shadow:
      0 0 10px var(--glow-cyan),
      0 0 20px var(--glow-purple),
      0 0 30px var(--glow-cyan),
      0 0 50px var(--glow-blue),
      0 0 90px var(--glow-purple);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}

/* ============================================
 * INTERACTIVE ELEMENTS - Hover Effects & Transitions
 * ============================================ */
a {
  transition: all 0.3s ease;
}

/* Subtle card lift effect for any content cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Smooth focus effects for form elements */
input:focus,
textarea:focus {
  outline: none;
  transform: translateY(-2px);
}

/* Enhanced scroll experience */
html {
  scroll-behavior: smooth;
}

/* Neon Glow Effect */
.neon-glow {
  box-shadow:
    0 0 10px var(--glow-cyan),
    0 0 20px var(--glow-purple);
}

/* Neon Button Effect */
.neon-btn {
  position: relative;
  overflow: hidden;
}

.neon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 240, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.neon-btn:hover::before {
  left: 100%;
}

.neon-btn:hover {
  box-shadow:
    0 0 15px var(--glow-cyan),
    0 0 30px var(--glow-purple);
}

/* Glass Effect */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-soft);
    border-radius: 50px;
    color: var(--text-primary);
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: var(--bg-card);
}

.flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

.gr-flag {
    background: linear-gradient(to bottom, #0d5eaf 0%, #0d5eaf 40%, #ffffff 40%, #ffffff 60%, #0d5eaf 60%, #0d5eaf 100%);
}

.en-flag {
    background: linear-gradient(to bottom, #b22234 0%, #b22234 20%, #ffffff 20%, #ffffff 40%, #b22234 40%, #b22234 60%, #ffffff 60%, #ffffff 80%, #b22234 80%, #b22234 100%);
    position: relative;
}

.en-flag::before {
    content: "★";
    position: absolute;
    color: #3C3B6E;
    font-size: 0.7rem;
    line-height: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: var(--bg-card);
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 10px;
    overflow: hidden;
    top: 100%;
    margin-top: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
}

.dropdown-content.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    gap: 10px;
}

.lang-option:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--bg-glass);
    color: var(--neon-cyan);
}

.lang-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
 * RESPONSIVE DESIGN - Mobile & Tablet Styles
 * ============================================ */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }

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

  .section-title {
    font-size: 2.5rem;
  }

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

  .skills h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    z-index: 999;
  }

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

  .nav-link {
    margin: 1rem 0;
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
  }

  .hamburger .bar {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navbar {
    padding: 0.7rem 0;
  }

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

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .projects {
    padding: 100px 0;
  }

  .contact h2 {
    font-size: 2.3rem;
  }

  .about-content {
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  /* Language Switcher Mobile */
  .language-switcher {
      position: absolute;
      top: 1.5rem;
      right: 5rem;
  }

  .nav-menu {
      padding-top: 4rem;
  }
}

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

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

  .skills h3 {
    font-size: 1.6rem;
  }

  .project-card {
    height: 350px;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 1.05rem;
  }

  .contact-item {
    padding: 1.2rem;
  }

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

  .projects-grid-four {
    grid-template-columns: 1fr;
  }
}

/* ============================================
 * ERROR PAGES STYLES - 403, 404, 500 Pages
 * ============================================ */
.error-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-bg);
}

.error-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.error-code {
  font-size: 10rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.error-actions .cta-button {
  padding: 16px 35px;
  text-decoration: none;
  display: inline-block;
}

.error-actions .back-btn {
  padding: 16px 35px;
  background: var(--bg-glass);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-soft);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.error-actions .back-btn:hover {
  background: var(--gradient-neon);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px var(--glow-cyan);
  transform: translateY(-3px);
}

/* Error page responsive adjustments */
@media (max-width: 768px) {
  .error-code {
    font-size: 7rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .cta-button,
  .error-actions .back-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Enhanced typography for better readability */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

/* Hero image container for business presentation pages */
.hero-image-container {
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
  padding: 1rem;
}

.hero-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-soft);
}