/* === Global Styles === */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

section {
  padding: 60px 20px;
}

h1, h2, h3 {
  margin-bottom: 20px;
  text-align: center;
}

/* === Header === */
header {
  background: #1f1f1f;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a:hover {
  color: #00bcd4;
}

.toggle-mode {
  cursor: pointer;
  font-size: 1.2rem;
  background: #00bcd4;
  color: white;
  padding: 8px;
  border-radius: 50%;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
}

.hero .highlight {
  color: #00bcd4;
  font-weight: bold;
}

.hero-buttons {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn.primary {
  background-color: #00bcd4;
  color: white;
  border: none;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid #00bcd4;
  color: #00bcd4;
}

.btn:hover {
  opacity: 0.85;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 20px auto;
  display: block;
  transition: transform 0.3s;
}

.profile-pic:hover {
  transform: scale(1.05);
}

/* === About Section === */
#about img {
  max-width: 200px;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* === Enhanced Skills Layout === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-card {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #004d40;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}


.skill-card:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 18px rgba(0, 188, 212, 0.3);
}


.skills-grid div {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* === Certification Cards Grid === */
#certifications .card {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#certifications .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 188, 212, 0.3);
}

#certifications .card img.cert-logo {
  max-width: 90px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 16px;
  transition: transform 0.4s ease;
}

#certifications .card:hover img.cert-logo {
  transform: scale(1.1);
}

#certifications .card h3 {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 10px;
}

#certifications .card p {
  font-size: 14px;
  color: #555;
  margin: 6px 0;
}

#certifications .card .btn {
  margin-top: 12px;
  font-size: 14px;
  padding: 8px 16px;
}

/* Grid for multiple cards */
#certifications .card {
  margin-bottom: 25px;
}

/* Add reveal animation */
#certifications .card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

#certifications .card.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* === Projects Enhanced Layout === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.project-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 188, 212, 0.2);
}

.project-card h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
}

.project-card .tech-used {
  font-size: 12px;
  color: #888;
  margin: 10px 0;
}

.project-card a {
  align-self: flex-start;
  background: #00bcd4;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s;
}

.project-card a:hover {
  background: #0097a7;
}


/* === Contact Section === */
.contact-list {
  margin-top: 15px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-list a {
  color: #007bff;
}

.contact-list a:hover {
  text-decoration: underline;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 32px;
  color: #00bcd4;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.contact-card a {
  color: #007bff;
  font-weight: bold;
  word-break: break-all;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Dark Mode Contact Styling */
body.dark-mode .contact-card {
  background-color: #2c2c2c;
  color: #f1f1f1;
}

body.dark-mode .contact-card a {
  color: #80d8ff;
}


/* === Footer === */
footer {
  background: #1f1f1f;
  color: white;
  text-align: center;
  padding: 20px;
}

footer .btn {
  margin: 10px;
  background: #444;
}

footer .btn:hover {
  background: #666;
}

/* === Dark/Light Mode === */
body.light-mode {
  background-color: #ffffff;
  color: #111;
}

body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode header,
body.dark-mode section,
body.dark-mode footer {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode .btn {
  background-color: #00bcd4;
  color: #ffffff;
}

body.dark-mode .btn:hover {
  background-color: #0097a7;
}

body.dark-mode .card,
body.dark-mode .project-card,
body.dark-mode .skills-grid div {
  background-color: #2c2c2c;
  color: #f1f1f1;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode footer .btn {
  background-color: #333;
}

body.dark-mode footer .btn:hover {
  background-color: #555;
}

body.dark-mode .contact-list a {
  color: #80d8ff;
}

/* === Media Queries === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 14px;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }
}
.footer {
  background: #1f1f1f;
  color: white;
  text-align: center;
  padding: 30px 20px;
  animation: fadeInUp 1s ease;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-icons {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-btn {
  font-size: 22px;
  color: white;
  background-color: #00bcd4;
  padding: 10px 14px;
  border-radius: 50%;
  transition: transform 0.3s, background-color 0.3s;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.footer-btn:hover {
  background-color: #0097a7;
  transform: translateY(-5px) scale(1.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode */
body.dark-mode .footer {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode .footer-btn {
  background-color: #00bcd4;
}

body.dark-mode .footer-btn:hover {
  background-color: #0097a7;
}




