/* ========================
   GLOBAL RESET
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #020617;
  color: #e5e7eb;
}

/* ========================
   HEADER / HERO
======================== */
header {
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  color: #38bdf8;
  font-size: 2.5rem;
}

header p {
  margin-top: 8px;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: 15px;
}

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  margin: 5px;
}

.btn:hover {
  color: greenyellow;
}

.btn-secondary {
  font-weight: 300;
}

.cta-buttons {
  margin-top: 12px;
}

/* ========================
   NAVBAR
======================== */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: greenyellow;
}

/* ========================
   SECTIONS
======================== */
section {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  animation: fadeUp 0.8s ease;
}

h2 {
  color: #38bdf8;
  margin-bottom: 20px;
}

.about-content {
  width: 90%;
  padding: 6px;
}

/* ========================
   CARDS
======================== */
.card {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

.card .btn {
  margin-top: 12px;
  background: #0d6efd;
  border-radius: 6px;
  font-size: 14px;
}

.card .btn:hover {
  background: #084298;
}

/* ========================
   ACCORDION (SKILLS)
======================== */
.accordion,
.exp-accordion {
  max-width: 900px;
  margin: auto;
}

.accordion-item,
.exp-item {
  margin-bottom: 15px;
}

.accordion-header,
.exp-header {
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  background: #1a1a1a;
  border-radius: 8px;
  transition: background 0.3s;
}

.accordion-header:hover,
.exp-header:hover {
  background: #222;
  color: greenyellow;
}

.accordion-content,
.exp-content {
  max-height: 0;
  overflow: hidden;
  background: #0f0f0f;
  transition: max-height 0.4s ease;
}

.accordion-content ul,
.exp-content ul {
  padding: 20px;
  list-style: none;
}

.accordion-content li,
.exp-content li {
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.exp-item.active .exp-content {
  max-height: 800px;
}

/* ========================
   GRIDS
======================== */
.projects-grid,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* ========================
   CERTIFICATIONS
======================== */
.cert-card {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.4s;
}

.cert-card:hover {
  transform: scale(1.08);
}

.cert-card img {
  width: 100%;
  border-radius: 8px;
}

.hidden {
  display: none;
}

/* ========================
   IMAGE MODAL
======================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.image-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
}

/* ========================
   FOOTER
======================== */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1e293b;
}

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

/* ========================
   RESPONSIVE – MOBILE
======================== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.9rem;
  }

  nav {
    gap: 12px;
    font-size: 14px;
  }

  .about-content {
    width: 100%;
  }

  .projects-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .card:hover {
    transform: scale(1.02);
  }
}

/* ========================
   RESPONSIVE – TABLET
======================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================
   RESPONSIVE – LARGE SCREENS
======================== */
@media (min-width: 1400px) {
  section {
    max-width: 1200px;
  }

  header h1 {
    font-size: 3rem;
  }
}

/* ========================
   TOUCH DEVICES
======================== */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }
}

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

body {
  background: #020617;
  color: #e5e7eb;
}

header {
  text-align: center;
  padding: 40px;
}

header h1 {
  color: #38bdf8;
  font-size: 2.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

section {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  animation: fadeUp 0.8s ease;
}

h2 {
  color: #38bdf8;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.cert-card {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.4s;
}

.cert-card:hover {
  transform: scale(1.08);
}

.cert-card img {
  width: 100%;
  border-radius: 8px;
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1e293b;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-pic {
  height: 110px;
  width: 100px;
}

.btn {
  color: white;
  padding: 10px;
}

.cta-buttons {
  margin-top: 10px;

}

.btn:hover {
  color: greenyellow;

}

a {
  color: white;
}

nav :hover {
  color: greenyellow;
}

.about-content {
  width: 90%;
}

a:hover {
  color: greenyellow
}
.skill{
   background: #020617;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.accordion {
  max-width: 900px;
  margin: auto;
}

.accordion-item {
  background: #111;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 18px;
  cursor: pointer;
  font-weight: bold;
  background: #1a1a1a;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: #222;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #0f0f0f;
  transition: max-height 0.4s ease;
}

.accordion-content ul {
  padding: 20px;
  list-style: none;
}

.accordion-content li {
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}
.accordion-header:hover
{
color: greenyellow;
}
.card .btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #0d6efd;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

.card .btn:hover {
  background: #084298;
}
.exp-accordion {
  max-width: 900px;
  margin: auto;
}

.exp-item {
  margin-bottom: 15px;
}

.exp-header {
  background: #1a1a1a;
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
}

.exp-header:hover {
  background: #222;
}

.exp-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.exp-item.active .exp-content {
  max-height: 800px;
}
.exp-content:hover
{
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}
/* Image modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.image-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
.btn-secondary
{
font-weight:300
}
.about-content p{
  padding: 4px;
  font-size: large;
}