/* Enhanced CSS Variables with New Light Mode Colors */
:root {
  /* Dark theme colors */
  --primary: #0a0a0a;
  --secondary: #64ffda;
  --accent: #ff6b6b;
  --text: #e0e0e0;
  --text-secondary: #a0a0a0;
  --background: #0f0f0f;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
  --hover-shadow: rgba(100, 255, 218, 0.3);
  --gradient-primary: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme colors - Changed from pink to blue/teal theme */
[data-theme="light"] {
  --primary: #ffffff;
  --secondary: #2563eb;
  --accent: #0ea5e9;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --background: #f8fafc;
  --card-bg: rgba(37, 99, 235, 0.05);
  --glass: rgba(37, 99, 235, 0.08);
  --border-color: rgba(37, 99, 235, 0.15);
  --hover-shadow: rgba(37, 99, 235, 0.25);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--secondary);
  }
  50% {
    box-shadow: 0 0 30px var(--secondary), 0 0 40px var(--secondary);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
  }
  100% {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes bounce-horizontal {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(1px);
  }
}

/* Enhanced Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.animate {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Enhanced theme toggle with proper icon switching */
.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.theme-toggle:hover {
  background: var(--card-bg);
  transform: scale(1.1);
}

.theme-toggle i {
  color: var(--secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

/* Theme-specific icon visibility */
[data-theme="dark"] .theme-toggle .fa-sun {
  display: inline-block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: inline-block;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
}

/* Enhanced Hero Section */
.hero {
  min-height: 100vh;
  padding: 10rem 5% 5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease forwards 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.bold-text {
  font-weight: 700;
  color: var(--secondary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 3rem;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease forwards 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.typing-text {
  color: var(--secondary);
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.button-wrapper {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease forwards 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btns {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btns:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--hover-shadow);
}

.hire-btn {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.hire-btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.glow-animation {
  animation: glow 2s infinite;
}

/* Hero Right Content */
.hero-right-content {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.floating-code-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.code-snippet {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.code-snippet-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.code-snippet-2 {
  top: 120px;
  right: 20px;
  animation-delay: 2s;
}

.code-snippet-3 {
  bottom: 20px;
  left: 50px;
  animation-delay: 4s;
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.tech-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  animation: orbit 10s linear infinite;
}

.tech-icon-1 {
  animation-delay: 0s;
}
.tech-icon-2 {
  animation-delay: 2.5s;
}
.tech-icon-3 {
  animation-delay: 5s;
}
.tech-icon-4 {
  animation-delay: 7.5s;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-ring 3s ease-out infinite;
}

/* Particles */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 20%;
  animation-delay: 3s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 30%;
  animation-delay: 6s;
}

/* Section Styles */
.section {
  padding: 8rem 5%;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced About Section */
.about-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  transition: var(--transition);
  animation: slideInLeft 0.8s ease forwards;
  opacity: 0;
}

.about-content p:nth-child(1) {
  animation-delay: 0.1s;
}
.about-content p:nth-child(2) {
  animation-delay: 0.2s;
}
.about-content p:nth-child(3) {
  animation-delay: 0.3s;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2rem;
}

.skill-item-animate {
  background: var(--glass);
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  color: var(--secondary);
  font-weight: 500;
  transition: var(--transition);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.skill-item-animate:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item-animate:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item-animate:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item-animate:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item-animate:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item-animate:nth-child(6) {
  animation-delay: 0.6s;
}
.skill-item-animate:nth-child(7) {
  animation-delay: 0.7s;
}
.skill-item-animate:nth-child(8) {
  animation-delay: 0.8s;
}
.skill-item-animate:nth-child(9) {
  animation-delay: 0.9s;
}

.skill-item-animate:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-5px) scale(1.05);
}

.about-img-container {
  position: relative;
  animation: slideInRight 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--secondary);
  box-shadow: 0 20px 40px var(--hover-shadow);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-img:hover {
  transform: scale(1.05);
}

/* Enhanced Services Section */
.services {
  padding: 8rem 5%;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0.05;
  z-index: -1;
}

.services-description {
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--glass);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}
.card:nth-child(5) {
  animation-delay: 0.5s;
}
.card:nth-child(6) {
  animation-delay: 0.6s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: var(--transition);
  z-index: -1;
}

.card:hover::before {
  left: 0;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--hover-shadow);
}

.card i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Enhanced Projects Section */
.projects-description {
  color: var(--text);
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 10px;
}

.projects-subtitle {
  color: var(--secondary);
  text-align: center;
  margin-bottom: 30px;
  font-style: italic;
  font-size: 1rem;
}

.project-preview {
  padding: 20px;
  background: var(--glass);
  border-top: 1px solid var(--border-color);
}

.project-preview .project-title {
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-brief {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.click-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  transition: var(--transition);
}

.project-card:hover .click-indicator {
  opacity: 1;
  transform: translateX(5px);
}

.click-indicator i {
  font-size: 0.9rem;
  animation: bounce-horizontal 2s infinite;
}

.project-card {
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--hover-shadow);
  border-color: var(--secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--glass);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  cursor: pointer;
}

.project-animate:nth-child(1) {
  animation-delay: 0.1s;
}
.project-animate:nth-child(2) {
  animation-delay: 0.2s;
}
.project-animate:nth-child(3) {
  animation-delay: 0.3s;
}
.project-animate:nth-child(4) {
  animation-delay: 0.4s;
}
.project-animate:nth-child(5) {
  animation-delay: 0.5s;
}
.project-animate:nth-child(6) {
  animation-delay: 0.6s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px var(--hover-shadow);
}

.project-header {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-header img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
  color: white;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.project-links a{
  padding: 10px;
}
.project-btn {
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.view-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.view-btn:hover {
  background: white;
  color: var(--secondary);
}

.github-btn {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.github-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: white;
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.project-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-details {
  margin-bottom: 1.5rem;
  color: #f2f2f2;
}

.detail-section {
  margin-bottom: 1.2rem;

}

.detail-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-content {
  color: white;
  background: rgb(113, 93, 93);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 2px solid var(--border-color);
  padding: 1rem;
  border-radius: 0.5rem;
}
.skills-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  background: var(--card-bg);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Project Detail Modal */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.project-modal-container {
  max-width: 90vw;
  max-height: 90vh;
  width: 1000px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.project-modal-overlay.show .project-modal-container {
  transform: scale(1);
}

.project-modal-content {
  position: relative;
  height: 100%;
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
}

.project-modal-close:hover {
  transform: scale(1.1);
  background: var(--secondary);
}

.project-modal-close i {
  color: white;
  font-size: 1.2rem;
}

.project-modal-body {
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
}

.project-modal-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.project-modal-header img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid var(--border-color);
}

.project-modal-info {
  flex: 1;
}

.project-modal-info h2 {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.project-modal-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-modal-details {
  color: var(--text);
}

.project-modal-details .detail-section {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--glass);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.project-modal-details .detail-title {
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-modal-details .detail-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.ai-chat-toggle {
  background: var(--gradient-primary);
  border-radius: 50px;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
  animation: pulse-glow 2s infinite;
}

.ai-chat-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.ai-chat-toggle i {
  color: white;
  font-size: 1.5rem;
}

.chat-notification {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ai-chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  height: 500px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transform: scale(0) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ai-chat-container.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.ai-chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--glass);
  border-radius: 20px 20px 0 0;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-avatar i {
  color: white;
  font-size: 1.2rem;
}

.ai-info h3 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.ai-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.ai-chat-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition);
  margin-left: auto;
}

.ai-chat-close:hover {
  background: var(--card-bg);
  color: var(--accent);
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-message,
.user-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.user-message {
  flex-direction: row-reverse;
}

.ai-avatar-small {
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-avatar-small i {
  color: white;
  font-size: 0.9rem;
}

.user-avatar-small {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-small i {
  color: white;
  font-size: 0.9rem;
}

.message-content {
  background: var(--glass);
  padding: 12px 16px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  max-width: 80%;
}

.user-message .message-content {
  background: var(--secondary);
  color: white;
}

.message-content p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.user-message .message-content p {
  color: white;
}

.ai-chat-input {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-chat-input input {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.ai-chat-input input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ai-chat-input input::placeholder {
  color: var(--text-secondary);
}

#ai-send-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

#ai-send-btn:hover {
  transform: scale(1.1);
}

#ai-send-btn i {
  color: white;
  font-size: 0.9rem;
}

.ai-quick-questions {
  padding: 15px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-question {
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.quick-question:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Enhanced Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background: var(--glass);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--hover-shadow);
}

.skill-category h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 1rem;
  /* background: var(--card-bg); */
  border-radius: 15px;
  /* border: 1px solid var(--border-color); */
  transition: var(--transition);
  text-align: center;
}

.skill-item:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-5px) scale(1.05);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  transition: var(--transition);
  fill: var(--secondary);
}

.skill-item:hover .skill-icon {
  color: var(--primary);
  transform: scale(1.2);
}

.skill-name {
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.skill-item:hover .skill-name {
  color: var(--primary);
}

/* Enhanced Testimonials */
.client-reviews {
  padding: 8rem 5%;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
}

.heading-main {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.review-item {
  background: var(--glass);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.testimonial-animate:nth-child(1) {
  animation-delay: 0.1s;
}
.testimonial-animate:nth-child(2) {
  animation-delay: 0.2s;
}
.testimonial-animate:nth-child(3) {
  animation-delay: 0.3s;
}

.review-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--hover-shadow);
}

.quote-mark {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.review-message {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary);
}

.client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-name {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.client-position {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Enhanced Certificates */
.certificate-section {
  padding: 8rem 5%;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.certificate-card {
  background: var(--glass);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.certificate-animate:nth-child(1) {
  animation-delay: 0.1s;
}
.certificate-animate:nth-child(2) {
  animation-delay: 0.2s;
}
.certificate-animate:nth-child(3) {
  animation-delay: 0.3s;
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--hover-shadow);
}

.certificate-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}
.section-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.tab-btn:hover {
  background: var(--glass);
  box-shadow: 0 4px 12px var(--hover-shadow);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: var(--primary);
  border-color: transparent;
  box-shadow: 0 6px 16px var(--hover-shadow);
}

.certificate-card:hover img {
  transform: scale(1.05);
}

.certificate-card p {
  padding: 1.5rem;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  background: var(--card-bg);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.3s ease;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Enhanced Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  animation: slideInLeft 0.8s ease forwards;
  opacity: 0;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--secondary);
  transform: translateX(10px);
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--secondary);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-5px) scale(1.1);
}

/* Enhanced Contact Form */
.contact-form {
  background: var(--glass);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  animation: slideInRight 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--hover-shadow);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Popup */
.success-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.success-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-popup-container {
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.5s ease forwards;
}

.success-icon-container {
  margin-bottom: 2rem;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto;
  position: relative;
  animation: pulse 1s ease-in-out;
}

.check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-line {
  height: 3px;
  background: white;
  display: block;
  border-radius: 2px;
  position: absolute;
}

.line-tip {
  top: 19px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

.success-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-message {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-item i {
  color: var(--secondary);
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.success-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-btn {
  background: var(--gradient-primary);
  color: white;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--hover-shadow);
}

.secondary-btn {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.secondary-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.popup-close-btn:hover {
  color: var(--text);
  transform: scale(1.1);
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  background: #ff6b6b;
}
.confetti:nth-child(2) {
  left: 20%;
  animation-delay: 0.2s;
  background: #4ecdc4;
}
.confetti:nth-child(3) {
  left: 30%;
  animation-delay: 0.4s;
  background: #45b7d1;
}
.confetti:nth-child(4) {
  left: 40%;
  animation-delay: 0.6s;
  background: #96ceb4;
}
.confetti:nth-child(5) {
  left: 50%;
  animation-delay: 0.8s;
  background: #feca57;
}
.confetti:nth-child(6) {
  left: 60%;
  animation-delay: 1s;
  background: #ff9ff3;
}
.confetti:nth-child(7) {
  left: 70%;
  animation-delay: 1.2s;
  background: #54a0ff;
}
.confetti:nth-child(8) {
  left: 80%;
  animation-delay: 1.4s;
  background: #5f27cd;
}
.confetti:nth-child(9) {
  left: 90%;
  animation-delay: 1.6s;
  background: #00d2d3;
}
.confetti:nth-child(10) {
  left: 95%;
  animation-delay: 1.8s;
  background: #ff9f43;
}

/* Enhanced Footer */
.custom-footer {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 4rem 5% 2rem;
}

.custom-footer-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.custom-footer-brand {
  text-align: left;
}

.custom-footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
}

.custom-footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.custom-footer-social {
  display: flex;
  gap: 1rem;
}

.custom-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
 .section-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* border: 2px solid red; */
  }

.custom-links-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-links-column ul {
  list-style: none;
}

.custom-links-column li {
  margin-bottom: 0.8rem;
}

.custom-links-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.custom-links-column a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.custom-footer-cta {
  text-align: center;
}

.custom-cta-title {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.custom-btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--hover-shadow);
}

.custom-newsletter p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.custom-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.custom-newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text);
  font-size: 0.9rem;
}

.custom-newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary);
}

.custom-newsletter-form button {
  padding: 0.8rem 1rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.custom-newsletter-form button:hover {
  transform: scale(1.1);
}

.custom-footer-bottom-wrapper {
  position: relative;
}

.custom-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5% 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.custom-footer-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.custom-back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px var(--hover-shadow);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 8rem 5% 5rem;
  }

  .hero-right-content {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 3rem;
  }

  .floating-code-container {
    width: 300px;
    height: 300px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .custom-footer-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .custom-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: var(--transition);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .custom-footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .custom-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 200px;
  }

  .project-modal-container {
    max-width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }

  .project-modal-header {
    flex-direction: column;
    gap: 20px;
  }

  .project-modal-header img {
    width: 100%;
    height: 200px;
  }

  .ai-chat-container {
    width: 350px;
    height: 450px;
    right: -10px;
  }

  .chat-notification {
    display: none;
  }

  .ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .project-preview {
    padding: 15px;
  }

  .project-preview .project-title {
    font-size: 1.1rem;
  }

  .project-brief {
    font-size: 0.9rem;
  }

  .click-indicator {
    font-size: 0.8rem;
  }

  .ai-quick-questions {
    padding: 10px 15px 0;
  }

  .quick-question {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .projects-description {
    font-size: 1.1rem;
  }

  .projects-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 5% 3rem;
  }

  .section {
    padding: 5rem 5%;
  }

  .floating-code-container {
    width: 250px;
    height: 250px;
  }

  .code-snippet {
    font-size: 0.7rem;
    padding: 0.8rem;
  }

  .success-popup-container {
    padding: 2rem 1.5rem;
  }

  .success-actions {
    flex-direction: column;
  }

  .project-links {
    flex-direction: column;
  }

  .ai-chat-container {
    width: 300px;
    height: 400px;
    right: -20px;
  }

  .project-modal-body {
    padding: 20px;
  }
}

/* Animation delays for staggered effects */
.fade-in.delay-1 {
  animation-delay: 0.1s;
}
.fade-in.delay-2 {
  animation-delay: 0.2s;
}
.fade-in.delay-3 {
  animation-delay: 0.3s;
}

.slide-in-left.delay-1 {
  animation-delay: 0.1s;
}
.slide-in-left.delay-2 {
  animation-delay: 0.2s;
}

.slide-in-right.delay-1 {
  animation-delay: 0.1s;
}
.slide-in-right.delay-2 {
  animation-delay: 0.2s;
}

/* Utility classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Loading states */
.loading {
  overflow: hidden;
}

.loading * {
  animation-play-state: paused;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: var(--text);
    --glass: var(--background);
    --card-bg: var(--background);
  }
}

/* Print styles */
@media print {
  .header,
  .custom-back-to-top,
  .success-popup-overlay,
  .modal {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

@media(min-width:365px) and (max-width: 1024px) {
  .header-controls{
    /* border: 2px solid red; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    gap: 7px;
  }
  .header{
    position: fixed;
  }
}

/* Add this to your existing style.css file */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 5% 3rem;
    min-height: auto;
    flex-direction: column;
    text-align: center;
    margin-top: 0 !important; /* Remove any margin-top that might be causing issues */
  }

  .hero-content {
    max-width: 100%;
    order: 2; /* Move content below the visual elements on mobile */
  }

  .hero-right-content {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 2rem 0;
    order: 1; /* Move visual elements above content on mobile */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .floating-code-container {
    width: 280px;
    height: 280px;
  }

  .tech-orbit {
    width: 150px;
    height: 150px;
  }

  .tech-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .code-snippet {
    font-size: 0.7rem;
    padding: 0.8rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .button-wrapper {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 5% 2rem;
  }

  .floating-code-container {
    width: 220px;
    height: 220px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .code-snippet {
    font-size: 0.6rem;
    padding: 0.6rem;
  }

  .pulse-ring {
    width: 200px;
    height: 200px;
  }
}

/* Fix for header spacing on mobile */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 5%;
  }
  
  .header-controls {
    margin-right: 15px;
    gap: 5px;
  }
}

/* Remove the problematic media query at the end of your CSS */
@media (max-width: 485px) {
  .hero {
    padding-top: 120px; /* Adjusted for fixed header */
    margin-top: 0;
    /* Remove the border: 2px solid red; - this was for debugging only */
  }
}

/* Loading Animation - Portfolio Themed */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Code Background */
.loading-code-background {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.floating-code {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    opacity: 0.6;
    animation: float-code 8s ease-in-out infinite;
}

.loading-code-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.loading-code-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.loading-code-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-code {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Main Loading Content */
.loading-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

/* Animated Logo */
.loading-logo {
    margin-bottom: 2rem;
}

.logo-orbital {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.orbital-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: orbit-spin 3s linear infinite;
}

.logo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    animation: pulse-core 2s ease-in-out infinite;
}

.orbital-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    animation: orbit 4s linear infinite;
}

.dot-1 {
    animation-delay: 0s;
    background: rgba(100, 255, 218, 0.2);
}

.dot-2 {
    animation-delay: 1.3s;
    background: rgba(37, 99, 235, 0.2);
}

.dot-3 {
    animation-delay: 2.6s;
    background: rgba(255, 107, 107, 0.2);
}

@keyframes orbit-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-core {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Loading Text */
.loading-text {
    margin-bottom: 3rem;
}

.loading-title {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: text-glow 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: italic;
}

@keyframes text-glow {
    0% { text-shadow: 0 0 20px rgba(100, 255, 218, 0.3); }
    100% { text-shadow: 0 0 30px rgba(100, 255, 218, 0.6); }
}

/* Tech Loading */
.tech-loading {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    font-size: 2rem;
    color: var(--secondary);
}

.tech-progress {
    width: 60px;
    height: 4px;
    background: var(--glass);
    border-radius: 2px;
    overflow: hidden;
}

.tech-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Main Progress */
.loading-status {
    width: 400px;
    max-width: 90%;
    margin: 0 auto;
}

.status-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-current {
    font-weight: 600;
}

.progress-container {
    position: relative;
}

.main-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.main-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.3;
    filter: blur(8px);
    z-index: 1;
}

/* Floating Particles */
.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    animation: particle-float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 60%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 90%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2.2rem;
    }
    
    .tech-loading {
        gap: 1.5rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .loading-status {
        width: 300px;
    }
    
    .logo-orbital {
        width: 100px;
        height: 100px;
    }
    
    .logo-core {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}