/* Light Mode Styles */
/* This file contains all the overrides needed for light mode */
/* Dark mode is the default, and light mode is applied as an override */

:root {
  --primary-color: #0077ff;
  --secondary-color: #8a2be2;
  --dark-bg: #f0f8ff;
  --darker-bg: #e6f2ff;
  --light-text: #222222;
  --gray-text: #555555;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 8px 25px rgba(0, 119, 255, 0.2);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --futuristic-bg: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 50%, #d1e7ff 100%);
  --futuristic-pattern: radial-gradient(circle at 10% 20%, rgba(0, 119, 255, 0.15) 0%, transparent 20%),
                        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.15) 0%, transparent 20%),
                        repeating-linear-gradient(45deg, rgba(0, 119, 255, 0.05) 0px, rgba(0, 119, 255, 0.05) 1px, transparent 1px, transparent 11px),
                        repeating-linear-gradient(-45deg, rgba(138, 43, 226, 0.05) 0px, rgba(138, 43, 226, 0.05) 1px, transparent 1px, transparent 11px);
}

body {
  background: var(--futuristic-bg);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--futuristic-pattern);
  z-index: -1;
  opacity: 0.8;
  animation: backgroundShift 20s ease-in-out infinite alternate;
  will-change: background-position;
}

/* Adjust particles container z-index for light mode */
#particles-js {
  z-index: -2;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 5px 30px rgba(0, 119, 255, 0.2);
}

.nav-item {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

.nav-item:last-child {
  margin-right: 0;
}

.profile-placeholder {
  background: linear-gradient(145deg, rgba(0, 119, 255, 0.1), rgba(138, 43, 226, 0.1));
}

.profile-placeholder::before {
  background: conic-gradient(transparent, var(--primary-color), transparent 30%);
}

.tech-stack,
.skill-category,
.project-card,
.contact-form {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-category:hover,
.project-card:hover {
  box-shadow: 0 8px 25px rgba(0, 119, 255, 0.2);
}

.footer {
  background: var(--darker-bg);
}

.footer-content {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 119, 255, 0.5);
}

.nav-link::after {
  background: var(--primary-color);
}

.bar {
  background-color: var(--primary-color);
}

.theme-toggle-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--primary-color);
  margin-left: 10px;
  position: relative;
  overflow: hidden;
  outline: none;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.3), inset 0 0 10px rgba(0, 119, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 0;
  border: 2px solid var(--primary-color);
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  align-self: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.3);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.theme-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.theme-toggle-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.theme-toggle-btn:hover {
  color: white;
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.5), inset 0 0 15px rgba(0, 119, 255, 0.2);
}

.theme-toggle-btn:hover::before {
  width: 100%;
}

.theme-toggle-btn:hover::after {
  opacity: 1;
}

.theme-toggle-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.7), inset 0 0 15px rgba(0, 119, 255, 0.2);
}

/* Improve desktop styling */
@media screen and (min-width: 769px) {
  .theme-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    border-width: 3px;
  }
}

.section-header h2::after {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.accent {
  color: var(--primary-color);
}

.stats {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 1rem;
}

.stat-item h4 {
  color: var(--primary-color);
}

.stat-item p {
  color: var(--gray-text);
}

.tech-icons i {
  color: var(--primary-color);
}

.tech-icons i:hover {
  color: var(--secondary-color);
}

.skill-info {
  color: var(--light-text);
}

.skill-info span:last-child {
  color: var(--primary-color);
}

.skill-progress {
  background: rgba(0, 0, 0, 0.08);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
}

.btn.primary-btn {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.secondary-btn {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn:hover {
  color: white;
}

.social-links a {
  background: rgba(0, 119, 255, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
}

/* Hero Section */
.hero::before {
  background: radial-gradient(circle at center, rgba(0, 119, 255, 0.1) 0%, rgba(248, 251, 255, 0) 70%);
}

.profile-placeholder i {
  background: var(--dark-bg);
  color: var(--primary-color);
}

.scroll-down a {
  color: var(--primary-color);
}

/* About Section */
.about {
  background: var(--darker-bg);
}

.about::before {
  background: radial-gradient(circle at top right, rgba(0, 119, 255, 0.1) 0%, rgba(248, 251, 255, 0) 70%);
}

.about-text h3 {
  color: var(--light-text);
}

.about-text p {
  color: var(--gray-text);
}

/* Skills Section */
.skills {
  background: var(--dark-bg);
}

.skills::before {
  background: radial-gradient(circle at bottom left, rgba(0, 119, 255, 0.1) 0%, rgba(248, 251, 255, 0) 70%);
}

.skill-category h3 {
  color: var(--primary-color);
}

/* Projects Section */
.projects {
  background: var(--darker-bg);
}

.projects::before {
  background: radial-gradient(circle at center, rgba(0, 119, 255, 0.1) 0%, rgba(248, 251, 255, 0) 70%);
}

.project-card .project-content h3 {
  color: var(--light-text);
}

.project-card .project-content p {
  color: var(--gray-text);
}

.project-placeholder {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.project-placeholder i {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact::before {
  background: radial-gradient(circle at bottom right, rgba(0, 119, 255, 0.1) 0%, rgba(248, 251, 255, 0) 70%);
}

.contact-info h3 {
  color: var(--light-text);
}

.contact-info p {
  color: var(--gray-text);
}

.contact-item h4 {
  color: var(--light-text);
}

.contact-item p {
  color: var(--gray-text);
}

/* Footer */
.footer-logo h2 {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links a {
  color: var(--gray-text);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social a {
  color: var(--gray-text);
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  color: var(--gray-text);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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