:root {
  --primary: #0a192f;
  --secondary: #172a45;
  --accent: #64ffda;
  --text: #ccd6f6;
  --text-secondary: #8892b0;
  --black: #020c1b;
  --white: #e6f1ff;
  --card-bg: rgba(10, 25, 47, 0.5);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
  --primary: #f8f9fa;
  --secondary: #e9ecef;
  --accent: #4361ee;
  --text: #212529;
  --text-secondary: #495057;
  --black: #dee2e6;
  --white: #020c1b;
  --card-bg: rgba(248, 249, 250, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--transition);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader-inner {
  position: relative;
  width: 100px;
  height: 100px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
}

.preloader-spinner {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-spinner:nth-child(2) {
  border: 3px solid transparent;
  border-bottom-color: var(--accent);
  animation: spinReverse 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10, 25, 47, 0.8);
  transition: var(--transition);
}

[data-theme="light"] header {
  background: rgba(248, 249, 250, 0.8);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), #3a86ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration:none;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle, .menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  transform: rotate(30deg);
}

.menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* leave room for fixed header */
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent), #3a86ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.typewriter {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 5px;
  animation: blink 0.7s infinite;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3a86ff);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
}

.hero-image {
  position: absolute;
  right: 5%;
  width: 35%;
  max-width: 500px;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.1);
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 15%;
  animation-delay: 2s;
}

/* Sections */
section {
  padding: 5rem 5%;
  position: relative;
}

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

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

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-image {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(2, 12, 27, 0.25);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.about-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), transparent);
  z-index: 1;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 12px;
  z-index: -1;
  transition: all 0.4s ease;
}

.about-image:hover::after {
  top: 15px;
  left: 15px;
}

.about-content {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease 0.2s;
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.about-content p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.skill-icon {
  color: var(--accent);
  font-size: 1.2rem;
}


/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(100, 255, 218, 0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(2, 12, 27, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.service-link i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}
[data-theme="light"] .service-card {
  border: 1px solid rgb(67, 97, 238);
}

/* Portfolio Section */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: var(--black);
}

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

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(2, 12, 27, 0.2);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
  display:block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--primary), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-category {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.portfolio-links {
  display: flex;
  gap: 1rem;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.2);
  color: var(--accent);
  transition: var(--transition);
}

.portfolio-link:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-3px);
}

/* Light mode portfolio overlay adjustments */
[data-theme="light"] .portfolio-overlay {
  background: linear-gradient(to top, rgba(248, 249, 250, 0.95), transparent);
}

[data-theme="light"] .portfolio-link {
  background: rgba(67, 97, 238, 0.2);
  color: var(--accent);
}

[data-theme="light"] .portfolio-link:hover {
  background: var(--accent);
  color: var(--white);
}

/* Testimonials Section */
.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  padding: 4rem 0;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2.5rem;
  margin: 0 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-content {
  margin-bottom: 2rem;
  position: relative;
}

[data-theme="light"] .testimonial-card {
  border: 1px solid rgb(67, 97, 238);
}

.testimonial-content::before {
  content: "“"; /* opening curly quote */
  position: absolute;
  top: -10px;
  left: -28px;
  font-size: 3rem;
  color: rgba(67, 97, 238, 0.15); /* soft accent color */
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  font-weight: bold;
  z-index: -1;
}




.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-info h4 {
  margin-bottom: 0.3rem;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.swiper-pagination-bullet {
  background: var(--text-secondary);
  opacity: 0.5;
  width: 10px;
  height: 10px;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.contact-info {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-text h4 {
  margin-bottom: 0.3rem;
}

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

.contact-text a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease 0.2s;
}

.contact-form.visible {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

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

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), #3a86ff);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(58, 134, 255, 0.3);
}

/* Footer */
footer {
  background: var(--secondary);
  padding: 5rem 5% 2rem;
  position: relative;
}

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

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), #3a86ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.1);
  color: var(--text);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3::after, .footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 1.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px 0 0 8px;
  color: var(--text);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-btn {
  padding: 0 1.5rem;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: #3a86ff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

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

.back-to-top {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #3a86ff);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-5px);
}

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
  }

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

  .hero::before {
    display: none;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-image {
    position: relative;
    width: 80%;
    margin: 2rem auto 0;
    right: auto;
  }

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

@media (max-width: 576px) {
  section {
    padding: 5rem 5%;
  }

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

  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Theme Selection Popup */
.theme-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 27, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.theme-popup.show {
  opacity: 1;
  visibility: visible;
}

.theme-popup-content {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(2, 12, 27, 0.5);
  border: 1px solid rgba(100, 255, 218, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.theme-popup.show .theme-popup-content {
  transform: scale(1);
}

.theme-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.theme-popup-header h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin: 0;
}

.theme-popup-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-popup-close:hover {
  background: rgba(100, 255, 218, 0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.theme-popup-body {
  margin-bottom: 1.5rem;
}

.theme-popup-body p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.theme-option {
  background: var(--secondary);
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.theme-option:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.theme-option.active {
  border-color: var(--accent);
  background: rgba(100, 255, 218, 0.1);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.theme-option-icon {
  font-size: 2.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.theme-option:hover .theme-option-icon {
  transform: scale(1.1);
}

.theme-popup-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.theme-popup-dismiss {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  text-decoration: underline;
}

.theme-popup-dismiss:hover {
  color: var(--accent);
}

[data-theme="light"] .theme-popup {
  background: rgba(248, 249, 250, 0.8);
}

[data-theme="light"] .theme-popup-content {
  border: 1px solid rgba(67, 97, 238, 0.2);
}

[data-theme="light"] .theme-option {
  background: var(--secondary);
  border-color: rgba(67, 97, 238, 0.2);
}

[data-theme="light"] .theme-option:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.2);
}

[data-theme="light"] .theme-option.active {
  border-color: var(--accent);
  background: rgba(67, 97, 238, 0.1);
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
}

@media (max-width: 576px) {
  .theme-popup-content {
    padding: 2rem 1.5rem;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .theme-option {
    padding: 1.5rem;
  }
}