/* CSS Variables */
:root {
  /* Cyberpunk Theme (Default) */
  --primary-bg: #0f111a;
  --secondary-bg: #1a1c2b;
  --text-color: #e0e0e0;
  --accent-color: #00ffff;
  --accent-secondary: #ff6b6b;
  --card-bg: #1a1c2b;
  --navbar-bg: rgba(15,17,26,0.95);
  --skill-bg: rgba(100, 255, 218, 0.1);
  --gradient-angle: 120deg;
  --shadow-color: rgba(255, 107, 107, 0.5);
  --text-shadow: 0 0 5px var(--accent-color);
  --transition: all 0.3s ease;
}

.light-theme {
  /* Light Professional Theme */
  --primary-bg: #f8f9fa;
  --secondary-bg: #e9ecef;
  --text-color: #212529;
  --accent-color: #0d6efd;
  --accent-secondary: #dc3545;
  --card-bg: #ffffff;
  --navbar-bg: rgba(248,249,250,0.95);
  --skill-bg: rgba(13, 110, 253, 0.1);
  --gradient-angle: 60deg;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --text-shadow: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-secondary);
  text-shadow: var(--text-shadow);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

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

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

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent-color);
}

/* Navigation */
.navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar-brand {
  color: var(--accent-color) !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: var(--accent-color) !important;
  font-weight: 600;
  margin: 0 10px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-secondary) !important;
  text-shadow: 0 0 5px var(--accent-secondary);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-color);
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn-hero {
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 50px;
  background: var(--accent-secondary);
  color: #fff;
  border: 2px solid var(--accent-color);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-hero:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.hero-image {
  text-align: center;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 15px 35px var(--shadow-color);
  max-width: 100%;
  height: auto;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--secondary-bg);
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-details {
  margin-top: 2rem;
}

.detail-item {
  margin-bottom: 1.5rem;
}

.detail-item h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.detail-item p {
  margin-bottom: 0.5rem;
}

.about-image {
  text-align: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  max-width: 100%;
  height: auto;
}

/* Skills Section */
.skills {
  padding: 100px 0;
  background: var(--primary-bg);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

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

.skill-category h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

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

/* Projects Section */
.projects {
  padding: 100px 0;
  background: var(--secondary-bg);
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  height: 100%;
}

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

.project-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

.project-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.project-links a:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.project-info p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: var(--skill-bg);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--primary-bg);
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 2rem;
}

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

.contact-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  margin-bottom: 0.2rem;
  color: var(--accent-color);
}

.contact-item a, .contact-item p {
  margin-bottom: 0;
  color: var(--text-color);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: var(--secondary-bg);
  color: var(--text-color);
  transition: var(--transition);
}

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

/* Footer */
.footer {
  background: var(--secondary-bg);
  padding: 50px 0 20px;
  position: relative;
}

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

.footer-logo h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
  transform: translateY(-3px);
}

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

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .hero {
    text-align: center;
    padding: 80px 0 30px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-hero {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}


/* Projects Header */
.projects-header {
  padding: 120px 0 60px;
  background: var(--secondary-bg);
  text-align: center;
}

.projects-header h1 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--accent-color);
}

.projects-header .lead {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Project Cards Enhancements */
.project-card-3d {
  perspective: 1000px;
  height: 300px;
  margin-bottom: 2rem;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px var(--shadow-color);
  border-radius: 15px;
}

.project-card-3d:hover .card-inner {
  transform: rotateY(180deg);
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: 15px;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  text-align: center;
}

.light-theme .card-overlay {
  background: rgba(255, 255, 255, 0.9);
}

.card-overlay h5 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.card-overlay p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.btn-overlay {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-overlay:hover {
  background-color: var(--accent-color);
  color: var(--primary-bg);
}

/* Call to Action Section */
.cta-section {
  background: var(--secondary-bg);
  text-align: center;
}

.cta-section h2 {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design for Projects Page */
@media (max-width: 768px) {
  .projects-header {
    padding: 100px 0 40px;
  }
  
  .projects-header h1 {
    font-size: 2.2rem;
  }
  
  .project-card-3d {
    height: 250px;
  }
}