body {
  font-family: system-ui, sans-serif;
  background: #f7f7f7;
  color: #333;
  margin: 0;
  padding: 0;
  text-align: center;
}
header {
  background: #1e90ff;
  color: white;
  padding: 40px 0;
}
section {
  margin: 40px auto;
  max-width: 800px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
footer {
  margin-top: 40px;
  padding: 20px;
  font-size: 0.9em;
  color: #666;
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
    body { font-family: 'Poppins', sans-serif; background: #0f172a; color: #e2e8f0; line-height: 1.6; }
    nav { position: fixed; width: 100%; background: rgba(15,23,42,0.9); padding: 15px 40px; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(10px); }
    nav a { color: #38bdf8; text-decoration: none; margin-left: 20px; font-weight: 600; transition: color 0.3s; }
    nav a:hover { color: #0ea5e9; }
    section { min-height: 100vh; padding: 120px 10%; display: flex; flex-direction: column; justify-content: center; }
    h1, h2 { color: #38bdf8; margin-bottom: 15px; }
    p { max-width: 700px; margin-bottom: 20px; }
    .hero { text-align: center; }
    .hero h1 { font-size: 3rem; margin-bottom: 10px; }
    .hero p { color: #94a3b8; font-size: 1.2rem; }
    .btn { background: #38bdf8; color: #0f172a; padding: 12px 25px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s; }
    .btn:hover { background: #0ea5e9; }
    .projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 40px; }
    .card { background: #1e293b; border-radius: 12px; padding: 20px; transition: transform 0.3s; cursor: pointer; }
    .card:hover { transform: translateY(-5px); }
    footer { text-align: center; padding: 30px; background: #0f172a; color: #64748b; }* {margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth;}
    body {
      font-family:'Poppins',sans-serif;
      background:#0b0f19;
      color:#e2e8f0;
      overflow-x:hidden;
    }

    /* Glowing accent color */
    :root {
      --accent:#00f5d4;
      --accent-dark:#00c6a7;
    }

    nav {
      position:fixed; top:0; left:0; width:100%;
      padding:20px 50px;
      display:flex; justify-content:space-between; align-items:center;
      background:rgba(10,15,30,0.7);
      backdrop-filter:blur(10px);
      z-index:1000;
    }
    nav h1 {color:var(--accent); letter-spacing:1px;}
    nav a {
      color:#94a3b8; text-decoration:none; margin-left:25px; transition:0.3s;
    }
    nav a:hover {color:var(--accent);}

    section {
      min-height:100vh; padding:120px 10%; display:flex;
      flex-direction:column; justify-content:center;
    }

    /* Hero Section */
    .hero {
      text-align:center;
      background:radial-gradient(circle at 50% 20%, #111933, #0b0f19 60%);
      position:relative;
    }
    .hero h2 {color:var(--accent); font-weight:600; font-size:2rem;}
    .hero h1 {
      font-size:3.5rem; margin-top:15px;
      background:linear-gradient(90deg, var(--accent), #05f0ff);
      -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    }
    .hero p {margin-top:15px; color:#94a3b8; font-size:1.2rem;}
    .btn {
      margin-top:30px; background:var(--accent);
      color:#0b0f19; border:none; border-radius:8px;
      padding:12px 28px; font-weight:600; font-size:1rem;
      transition:0.3s; cursor:pointer;
      box-shadow:0 0 10px var(--accent);
    }
    .btn:hover {background:var(--accent-dark); box-shadow:0 0 20px var(--accent-dark);}

    /* Floating glow orbs */
    .orb {
      position:absolute; border-radius:50%;
      filter:blur(100px); opacity:0.3; animation:float 8s ease-in-out infinite;
    }
    .orb.one {width:300px; height:300px; top:-50px; left:-100px; background:var(--accent);}
    .orb.two {width:400px; height:400px; bottom:-100px; right:-100px; background:#00b4d8;} 
    .orb.three {width:400px; height:400px; bottom:-850px; left:-100px; background:#00b4d8;}
    .orb.four {width:400px; height:400px; bottom:-1450px; right:-100px; background:#00b4d8;}
    /*.orb.five {width:400px; height:400px; bottom:-2100px; left:-100px; background:#00b4d8;}*/
    @keyframes float {0%,100%{transform:translateY(0);}50%{transform:translateY(-30px);} }

    /* About */
    #about { min-height: auto;
      position: relative;background:radial-gradient(circle at 50% 20%, #111933, rgba(11,15,25,0.5) 60%, rgba(11,15,25,0) 100%); text-align:center; backdrop-filter: blur(5px); overflow: hidden;}
    #about h2 {color:var(--accent); margin-bottom:20px; font-size:2rem;}
    #about p {color:#94a3b8; max-width:700px; margin:auto; line-height:1.7;}

    /* Projects */
    #projects {position: relative; background:radial-gradient(circle at 50% 20%,rgba(15, 23, 42, 0.85),rgba(15, 23, 42, 0.5) 70%,rgba(15, 23, 42, 0) 100%); backdrop-filter: blur(5px); overflow: hidden;}
    #projects h2 {color:var(--accent); margin-bottom:40px; text-align:center;}
    .projects {
      display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
      gap:30px; padding:0 20px;
    }
    .card {
      background:#1e293b; border-radius:15px; padding:25px; transition:0.3s;
      box-shadow:0 0 0px transparent;
    }
    .card:hover {
      transform:translateY(-8px);
      box-shadow:0 0 25px rgba(0,245,212,0.2);
    }
    .card h3 {color:var(--accent); margin-bottom:10px;}
    .card p {color:#94a3b8;}

    /* Certifications */
    #certifications { min-height: auto;
      position: relative; background:radial-gradient(circle at 50% 20%, #111933, rgba(11,15,25,0.5) 60%, rgba(11,15,25,0) 100%); text-align:center; backdrop-filter: blur(5px); overflow: hidden;
    }
    #certifications h2 {color:var(--accent); margin-bottom:40px; text-align:center;}
    .certifications {
      display: grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
      gap:30px; padding:0 20px;
    }
    

    /* Contact */
    #contact {text-align:center; background:#0b0f19;}
    #contact h2 {color:var(--accent);}
    #contact p {margin-top:10px; color:#94a3b8;}
    #contact a button {margin-top:25px;}

    footer {
      text-align:center; padding:25px; background:#0b0f19; color:#64748b;
      border-top:1px solid #1e293b;
    }

    @media (max-width:768px) {
      .hero h1 {font-size:2.5rem;}
      .hero h2 {font-size:1.3rem;}
    }




    .lang-icon{
      width: 40px;
      height: 40px;
      object-fit: contain;
      margin-right: 10px;
      margin-top: 10px;
      vertical-align: midlde;
      filter: drop-shadow(0 0 4px rgba(0, 245, 212, 0.4));
    }
/* FULL-SCREEN OVERLAY (but visually transparent) */
.modal {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  pointer-events: none;     /* disabled until active */
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2000;
  background: transparent;  /* page stays fully visible behind */
}

/* When open */
.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* PANEL that slides */
.modal-panel {
  width: 50vw;              /* half of the window */
  max-width: 800px;
  height: 100%;
  background: rgba(30, 41, 59, 0.55);   /* slightly transparent */
  backdrop-filter: blur(12px);
  padding: 40px;
  overflow-y: auto;
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.25);
  display: flex;
  flex-direction: column;

  /* Start state (for "right" mode) */
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

/* ─── RIGHT SIDE MODE ─── */
.modal.right {
  justify-content: flex-end;   /* panel sticks to the right */
}

.modal.right.active .modal-panel {
  transform: translateX(0);    /* slide in from the right */
}

/* ─── LEFT SIDE MODE ─── */
.modal.left {
  justify-content: flex-start; /* panel sticks to the left */
}

.modal.left .modal-panel {
  transform: translateX(-100%); /* start fully off-screen on the left */
}

.modal.left.active .modal-panel {
  transform: translateX(0);     /* slide in from the left */
}

/* Close button */
.close-btn {
  align-self: flex-end;
  font-size: 2rem;
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Images inside modal */
#modal-images img {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* MOBILE – panel full width */
@media (max-width: 768px) {
  .modal-panel {
    width: 100vw;
    max-width: 100%;
  }
}

#modal-images {
  display: flex;
  flex-wrap: wrap;          /* allows wrapping on small screens */
  gap: 15px;                /* space between images */
  justify-content: center;  /* center the row */
}

#modal-images img {
  width: 345px;             /* thumbnail size */
  height: 400px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

#modal-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.5);
}

.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.img-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.img-viewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.6);
  animation: zoomIn 0.25s ease;
}

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


/* CUSTOM SCROLLBAR FOR THE MODAL PANEL */
.modal-panel::-webkit-scrollbar {
  width: 10px;                 /* scrollbar width */
}

.modal-panel::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);   /* dark track */
  border-radius: 10px;
}

.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.5);  /* accent turquoise */
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.7); /* blends smoothly */
}

.modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 212, 0.8);  /* brighter on hover */
}


.modal-panel p {
  white-space: pre-line;
}



.certifications-modal{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 3000;
}

.certifications-modal.active{
  opacity: 1;
  pointer-events: auto;
}

.certifications-modal-box{
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(15px);
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.35);
  text-align: center;
  animation: popup 0.25s ease;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden; 
}

@keyframes popup {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.certifications-modal.box img{
 display: block;
  margin: 0 auto;
  max-width: 80vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;  
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

.certifications-close {
  font-size: 2.2rem;
  color: var(--accent);
  cursor: pointer;
  float: right;
  margin-bottom: 10px;
}