/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Animated Gradient */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(135deg, #6a0dad, #1e90ff, #ff6b6b);
  background-size: 200% 200%;
  animation: gradientAnimation 10s ease infinite;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  transition: background-color 0.3s ease;
  background: transparent;
}

#navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
}

#navbar .logo a {
  text-decoration: none;
  font-size: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: #6a0dad;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #000000, #1e90ff, #6a0dad);
  color: #fff;
  text-align: center;
  padding: 0 20px;
  margin-top: 60px;
  position: relative;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

#cta-btn {
  padding: 12px 30px;
  font-size: 1rem;
  background: #1e90ff;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

#cta-btn:hover {
  background: #6a0dad;
  transform: scale(1.05);
}

/* About Section */
#about {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0D1B2A, #1B263B);
  color: #fff;
}

.skills-container {
  margin-top: 30px;
  text-align: left;
}

.skills-container h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace;
}

.skill-bar {
  margin-bottom: 15px;
}

.skill-label {
  font-size: 1rem;
  margin-bottom: 5px;
  display: block;
}

.bar {
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  background: linear-gradient(to right, #1e90ff, #6a0dad);
  height: 20px;
  width: 0;
  border-radius: 3px;
  transition: width 1.5s ease-in-out;
}

.tools-container {
  margin-top: 50px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.tools-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tools-list li {
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.tools-list li:hover {
  transform: translateY(-5px);
}

.tools-list li i {
  font-size: 1.5rem;
  color: #6a0dad;
}

/* Projects Section */
#projects {
  padding: 100px 20px;
  background: linear-gradient(135deg, #2C3E50, #6A0DAD);
  color: #fff;
  text-align: center;
}

.slider-container {
  position: relative;
  overflow: hidden;
  margin: auto;
  max-width: 1200px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slider .card {
  flex: 0 0 calc(25% - 20px);
  margin-right: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 5px;
  min-height: 350px;
}

.slider .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.slider .card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.slider .card:hover .overlay {
  opacity: 1;
}

.overlay .tech-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1.2rem;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  border-radius: 50%;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Enhanced Contact Section */
#contact {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info h2 {
  font-size: 2.5rem;
  color: #e2e8f0;
  margin-bottom: 40px;
  position: relative;
  padding-left: 20px;
}

.contact-info h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background: #3b82f6;
}

.detail-item {
  background: rgba(30, 41, 59, 0.6);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-5px);
}

.detail-item i {
  font-size: 1.8rem;
  color: #3b82f6;
  margin-bottom: 15px;
  background: rgba(59, 130, 246, 0.1);
  padding: 15px;
  border-radius: 8px;
}

.social-cards {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.social-card {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-card.linkedin {
  background: rgba(10, 102, 194, 0.1);
  border: 1px solid rgba(10, 102, 194, 0.2);
  color: #0a66c2;
}

.social-card.github {
  background: rgba(36, 41, 46, 0.1);
  border: 1px solid rgba(36, 41, 46, 0.2);
  color: #24292e;
}

.glassmorphism-form {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group.dual-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.form-encryption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.tech-map-frame {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  filter: grayscale(20%) contrast(110%);
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .form-group.dual-input {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}
/* --- NEW FEATURES BELOW --- */

/* 🔹 Floating Navbar Glow */
#navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(106, 13, 173, 0.4);
}

/* 🔹 Scroll Reveal Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}
.slide-left.show {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}
.slide-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* 🔹 3D Hover Effect for Project Cards */
.slider .card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.slider .card:hover {
  transform: rotateY(6deg) scale(1.05);
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.4);
}

/* 🔹 Dark Mode Toggle */
.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
  transition: background 0.4s ease, color 0.4s ease;
}

.dark-mode header,
.dark-mode footer {
  background: #000;
}

.dark-mode .card {
  background: rgba(255,255,255,0.05);
}

/* Toggle Switch */
#dark-mode-toggle {
  position: fixed;
  top: 90px;
  right: 25px;
  background: linear-gradient(135deg, #6a0dad, #1e90ff);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
  z-index: 999;
  transition: transform 0.3s ease;
}
#dark-mode-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

/* 🔹 Scroll Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #6a0dad, #1e90ff);
  width: 0;
  z-index: 1001;
  transition: width 0.2s ease-out;
}

/* 🔹 Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #6a0dad;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  background: #1e90ff;
  transform: translateY(-4px);
}
