/* Global Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #6c5ce7;
  --secondary-color: #74b9ff;
  --accent-color: #a29bfe;
  --light-accent: #e4ecff;
  --dark-color: #2d3436;
  --light-color: #fefefe;
  --text-color: #2c3e50;
  --light-text: #636e72;
  --bg-color: #f3f8ff;
  --border-color: #dcdde1;
  --gradient: linear-gradient(135deg, #74b9ff, #a29bfe);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #9b59b6;
  --secondary-color: #8e44ad;
  --accent-color: #c39bd3;
  --light-accent: #5e3c7f;
  --dark-color: #f8f9fa;
  --light-color: #1e1f26;
  --text-color: #eaeaea;
  --light-text: #b2bec3;
  --bg-color: #121212;
  --border-color: #2c2c2c;
  --gradient: linear-gradient(135deg, #8e44ad, #9b59b6);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  background-position: center;
  animation: bgMove 60s linear infinite;
}
@media (max-width: 768px) {
  body {
    animation: none; 
  }
}

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

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] a {
  color: var(--text-color);
}

header,
[data-theme="dark"] header,
.contact-form form,
.project-card,
.education-item,
.skill-item {
  backdrop-filter: blur(10px);
}

[data-theme="dark"] body,
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}


a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

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

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.primary-btn {
  background: var(--gradient);
  color: var(--light-color);
  box-shadow: var(--shadow);
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-3px);
  color: var(--light-color);
}

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

.secondary-btn:hover {
  background: var(--light-accent);
  transform: translateY(-3px);
}

.small-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 80px;
}

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

.hero-content {
  width: 50%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  width: 40%;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-img-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* About Section */
.about {
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* About Section (continued) */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3), 0 6px 10px rgba(0, 0, 255, 0.2);
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.profile-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
}

.profile-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: url('your-image.jpg') center/cover no-repeat;
  box-shadow: 0 8px 16px rgba(128, 0, 255, 0.4);
  position: relative;
  overflow: visible;
}

/* Orbit wrapper */
.orbit-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Rotating orbit container */
.orbit {
  width: 100%;
  height: 100%;
  position: relative;
  animation: rotate 40s linear infinite;
}

/* Each skill icon positioned on orbit */
.orbit i {
  position: absolute;
  font-size: 22px;
  transition: transform 0.2s;
  color: #333;
}

.orbit i:hover {
  transform: scale(1.4);
  transition: 0.2s ease-in-out;
}

/* Circular distribution of icons */
.orbit i:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit i:nth-child(2) { top: 20%; left: 85%; transform: translate(-50%, -50%); }
.orbit i:nth-child(3) { top: 50%; left: 100%; transform: translate(-50%, -50%); }
.orbit i:nth-child(4) { top: 80%; left: 85%; transform: translate(-50%, -50%); }
.orbit i:nth-child(5) { top: 100%; left: 50%; transform: translate(-50%, -50%); }
.orbit i:nth-child(6) { top: 80%; left: 15%; transform: translate(-50%, -50%); }
.orbit i:nth-child(7) { top: 50%; left: 0%; transform: translate(-50%, -50%); }
.orbit i:nth-child(8) { top: 20%; left: 15%; transform: translate(-50%, -50%); }
.orbit i:nth-child(9) { top: 0%; left: 50%; transform: translate(-50%, -50%); }

.orbit, .hero, .project-card {
  will-change: transform, opacity; 
}

/* Rotation Animation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .profile-img-placeholder {
    box-shadow: 0 8px 16px rgba(0, 153, 255, 0.4);
  }

  .orbit i {
    color: white;
  }
}


.about-text {
  flex: 1.5;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--light-text);
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0;
}

.detail {
  display: flex;
  align-items: center;
  margin-right: 30px;
  margin-bottom: 15px;
}

.detail i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 10px;
}

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

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skill-category h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.skill-item {
  background-color: var(--light-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.skill-item h4 {
  text-align: center;
  margin-bottom: 15px;
}

.skill-bar {
  height: 8px;
  background-color: var(--light-accent);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Experience Section */
.experience {
  background-color: var(--light-color);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-date {
  position: absolute;
  top: 12px;
  right: -150px;
  color: var(--primary-color);
  font-weight: 600;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -150px;
  right: auto;
  text-align: right;
}

.timeline-content {
  padding: 20px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

.timeline-content h4 {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 8px;
}

.tags span {
  background-color: var(--light-accent);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Education Section */
.education {
  background-color: var(--bg-color);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.education-item {
  background-color: var(--light-color);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

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

.education-icon {
  font-size: 2rem;
  color: var(--primary-color);
  min-width: 40px;
}

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

.education-details h4 {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 10px;
}

.education-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.education-details ul {
  margin-top: 15px;
}

.education-details ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.education-details ul li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* Projects Section */
.projects {
  background-color: var(--light-color);
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 10px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  background-color: transparent;
  color: #121212;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient);
  color: var(--light-color);
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-content p {
  color: var(--light-text);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.projects-more {
  text-align: center;
  margin-top: 50px;
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info, .contact-form {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.contact-info p {
  color: var(--light-text);
  margin-bottom: 30px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
  width: 20px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-5px);
  color: var(--light-color);
}

.contact-form form {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo .logo {
  margin-bottom: 15px;
}

.footer-links h3, .footer-newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--light-color);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-newsletter p {
  margin-bottom: 15px;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-bottom .fa-heart {
  color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
      font-size: 3rem;
  }
  
  .hero-content h2 {
      font-size: 1.8rem;
  }
  
  .about-content {
      flex-direction: column;
  }
  
  .timeline::before {
      left: 40px;
  }
  
  .timeline-item {
      width: 100%;
      padding-left: 80px;
  }
  
  .timeline-item:nth-child(even) {
      left: 0;
  }
  
  .timeline-dot {
      left: 31px;
      right: auto;
  }
  
  .timeline-date {
      position: relative;
      top: auto;
      right: auto;
      left: auto;
      margin-bottom: 10px;
      display: inline-block;
  }
  
  .timeline-item:nth-child(even) .timeline-date {
      left: auto;
      text-align: left;
  }
  
  .contact-container {
      flex-direction: column;
  }
}

@media (max-width: 768px) {
  section {
      padding: 60px 0;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .hero .container {
      flex-direction: column;
      text-align: center;
  }
  
  .hero-content {
      width: 100%;
      margin-bottom: 50px;
  }
  
  .hero-image {
      width: 100%;
  }
  
  .hero-buttons {
      justify-content: center;
  }
  
  .about-img-placeholder, .profile-img-placeholder {
      overflow: hidden;
      object-fit: cover;
      width: 100%;
      height: 100%;
  }
  
  nav ul {
      display: none;
  }
  
  .mobile-menu-btn {
      display: flex;
  }
  
  /* Mobile menu when active */
  nav.active ul {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--light-color);
      box-shadow: var(--shadow);
      padding: 20px;
  }
  
  nav.active ul li {
      margin: 10px 0;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .hero-content h2 {
      font-size: 1.5rem;
  }
  
  .projects-grid, .education-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.6s ease-in-out;
}

.slide-right {
  animation: slideRight 0.6s ease-in-out;
}

/* Keyframes */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes slideUp {
  from {
      transform: translateY(50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@keyframes slideRight {
  from {
      transform: translateX(-50px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

/* Dark mode variables */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #4834d4;
  --accent-color: #a29bfe;
  --light-accent: #dcd6ff;
  --dark-color: #2d3436;
  --light-color: #ffffff;
  --text-color: #333333;
  --light-text: #666666;
  --bg-color: #f8f9fa;
  --border-color: #e0e0e0;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #9b59b6;
  --secondary-color: #8e44ad;
  --accent-color: #c39bd3;
  --light-accent: #5e3c7f;
  --dark-color: #f8f9fa;
  --light-color: #1a1a2e;
  --text-color: #e0e0e0;
  --light-text: #b0b0b0;
  --bg-color: #222831;
  --border-color: #393e46;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

#theme-toggle-btn {
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#theme-toggle-btn:hover {
  transform: scale(1.1);
}

#theme-toggle-btn .fa-sun {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

#theme-toggle-btn .fa-moon {
  position: absolute;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

[data-theme="dark"] #theme-toggle-btn .fa-sun {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] #theme-toggle-btn .fa-moon {
  opacity: 0;
  transform: translateY(-20px);
}

/* Additional style updates for dark mode */
[data-theme="dark"] header {
  background-color: rgba(26, 26, 46, 0.95);
}

[data-theme="dark"] .logo {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero {
  background: linear-gradient(to right, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7)), url('hero-bg.jpg');
}

[data-theme="dark"] .skill-item,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .education-item,
[data-theme="dark"] .project-card,
[data-theme="dark"] .contact-form form {
  background-color: rgba(34, 40, 49, 0.8);
  border: 1px solid var(--border-color);
}

/* Update header on scroll for dark mode */
[data-theme="dark"] header.scrolled {
  background-color: rgba(26, 26, 46, 0.98);
}

/* Mobile responsive styles for theme toggle */
@media (max-width: 768px) {
  .theme-toggle {
      margin-right: 15px;
  }
  
  #theme-toggle-btn {
      width: 35px;
      height: 35px;
  }
  
  header .container {
      justify-content: space-between;
  }
  
  nav {
      display: flex;
      align-items: center;
  }
}

/* Popup Modal */
.popup-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 90%;
  width: 400px;
  color: var(--text-color);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

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

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Dark mode support */
[data-theme="dark"] .popup-content {
  background-color: var(--dark-color);
  color: var(--light-color);
}
