/* ================================
   Global Theme & Variables
================================ */
:root {
  --bg: linear-gradient(135deg, #182848, #4b6cb7);
  --text: #f5f5f5;
  --accent: #00ff9d;
  --card: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.light {
  --bg: #f9f9f9;
  --text: #222;
  --accent: #4b6cb7;
  --card: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.6s, color 0.6s;
  scroll-behavior: smooth;
}

/* ================================
   Navbar
================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

nav a {
  color: var(--text);
  margin: 0 18px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  transform: scale(1.05);
}

/* ================================
   Dark/Light Toggle
================================ */
.toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1100;
}

.toggle:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(20deg);
}

/* ================================
   Hero Section - Enhanced
================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  min-height: 65vh;
  padding: 60px 10% 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}


.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  animation: fadeInUp 1s ease forwards;
}

/* ✨ Glowing Aura Animation Behind Name */
.hero-title .accent {
  position: relative;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 8px var(--accent), 0 0 20px var(--accent);
  }
  50% {
    text-shadow: 0 0 18px var(--accent), 0 0 35px var(--accent);
  }
}

/* Typing Effect */
#typing {
  color: var(--accent);
  font-weight: 700;
  border-right: 3px solid var(--accent);
  padding-right: 6px;
  animation: blinkCursor 0.8s steps(2) infinite;
  font-size: 1.4rem;
}

@keyframes blinkCursor {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1.6s ease forwards;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  animation: fadeInUp 1.9s ease forwards;
}

.btn-primary,
.btn-secondary {
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 255, 157, 0.25);
}

.btn-primary:hover {
  transform: scale(1.05);
  background: #00e686;
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

/* Hero Image */
.hero-image img {
  width: 460px;
  max-width: 90%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 255, 157, 0.15);
  animation: float 3s ease-in-out infinite;
}

/* Glow lines (background animation) */
.glow-lines span {
  position: absolute;
  width: 2px;
  height: 120px;
  background: var(--accent);
  opacity: 0.2;
  border-radius: 2px;
  animation: moveLines 6s linear infinite;
}

.glow-lines span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.glow-lines span:nth-child(2) {
  left: 35%;
  animation-delay: 2s;
}
.glow-lines span:nth-child(3) {
  left: 60%;
  animation-delay: 4s;
}
.glow-lines span:nth-child(4) {
  left: 85%;
  animation-delay: 1s;
}

/* Animations */
@keyframes moveLines {
  0% { top: -150px; opacity: 0; }
  50% { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

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

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

/* Light Theme Adjustments */
body.light .hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(240,255,250,0.8));
}
body.light .hero-title { color: #000; }

/* ================================
   Rest of Your Styles (unchanged)
================================ */


/* ================================
   Section Styling
================================ */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  letter-spacing: 1px;
}

section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ================================
   Skills Grid
================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
}

.skill-card {
  background: var(--card);
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  background: var(--accent);
  color: #fff;
}

.skill-card i {
  font-size: 32px;
  margin-bottom: 10px;
}

/* ================================
   Certificates Gallery
================================ */
.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.gallery .card {
  background: var(--card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery .card:hover {
  transform: translateY(-8px);
}

.gallery .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid var(--accent);
}

.gallery .card h3 {
  margin: 10px 0 5px;
  text-align: center;
  color: var(--accent);
}

.gallery .card p {
  text-align: center;
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* ================================
   Modal for Certificates
================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ================================
   Documents
================================ */
#resume iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}

#resume .btn {
  display: inline-block;
  margin-top: 15px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

#resume .btn:hover {
  background: #00cc7d;
}

/* ================================
   Projects
================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: var(--card);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

.card h3 {
  margin-top: 0;
  color: var(--accent);
}

.card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ================================
   Projects - Enhanced Styling
================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: var(--card);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 255, 157, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.card h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* GitHub Button */
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  background: var(--accent);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 255, 157, 0.25);
}

body.light .project-btn {
  color: #fff;
  background: var(--accent);
}

.project-btn i {
  font-size: 18px;
}

.project-btn:hover {
  background: #00cc7d;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 255, 157, 0.35);
}


/* ================================
   Education
================================ */
.timeline {
  border-left: 3px solid var(--accent);
  padding-left: 25px;
}

.timeline div {
  margin-bottom: 30px;
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.timeline h3 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

.timeline p {
  margin: 5px 0 0;
  opacity: 0.9;
}

/* ================================
   Contact
================================ */
.contact-card {
  background: var(--card);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  max-width: 650px;
  margin: auto;
  box-shadow: var(--shadow);
}

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

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.social-icons a {
  color: var(--text);
  font-size: 30px;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ================================
   Contact Section - Enhanced
================================ */
#contact {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(9, 140, 163, 0.1), rgba(0, 0, 0, 0.6));
  border-top: 2px solid var(--accent);
  color: var(--text);
}

#contact h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

#contact h2::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  bottom: -10px;
  left: 20%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.15);
  min-width: 220px;
}

.contact-card:hover {
  transform: translateY(-8px);
  background: rgba(8, 119, 163, 0.15);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.25);
}

.contact-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.2);
  color: #00e686;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

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

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

/* Light theme tweak */
body.light #contact {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), rgba(255, 255, 255, 0.5));
}


/* ================================
   Animations
================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }
  header h1 {
    font-size: 34px;
  }
  .toggle {
    width: 40px;
    height: 40px;
  }
  section {
    padding: 70px 15px;
  }
}
/* ================================
   Modal Animation & Styling
================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
  opacity: 1;
  transform: scale(1);
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.4s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#skills {
  padding-top: 40px !important;
}
