* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #08131f 0%, #000 60%);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: rgba(0, 180, 255, 0.12);
  filter: blur(120px);
  top: -100px;
  left: -100px;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.03;
  pointer-events: none;
}

.intro-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  font-family: 'Orbitron', monospace;
}

.loader-wrapper {
  text-align: center;
}

.loader-text{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;

    font-family:Consolas, "Courier New", monospace;
    font-size:1.15rem;
    color:#00ff88;

    margin-bottom:20px;
}

.terminal-prompt{
    color:#00b4ff;
    font-weight:bold;
}

.loader-cursor{
    color:#00ff88;
    animation:loaderBlink .8s infinite;
}

@keyframes loaderBlink{
    50%{
        opacity:0;
    }
}

.loading-text{
    display: none;
    margin-top:18px;
    margin-bottom:10px;
    color:#8fb7c8;
    font-size:.9rem;
    font-family:Consolas, monospace;
    letter-spacing:1px;
}

.thin-progress{
    display: none;
    width:320px;
    height:2px;
    background:rgba(255,255,255,.12);
    border-radius:20px;
    overflow:hidden;
}

.thin-fill{
    display:block;
    width:0%;
    height:100%;
    background:#00b4ff;
    box-shadow:0 0 10px #00b4ff;
}

@keyframes loadProgress {
  to {
    width: 100%;
  }
}

.intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 180, 255, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #0087cb;
  font-size: 1.4rem;
  font-weight: bold;
}

.logo i {
  color: #00b4ff;
  animation: cloudPulse 2s infinite ease-in-out;
}

@keyframes cloudPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(0,180,255,0.5);
  }

  50% {
    text-shadow:
      0 0 16px rgba(0,180,255,0.9),
      0 0 28px rgba(0,180,255,0.5);
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #00b4ff;
  text-shadow: 0 0 10px #00b4ff;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 8%;
  gap: 3rem;
  flex-wrap: wrap;

  position: relative; 
}

.hero-title{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    font-size:3rem;
}

.hello-text{
    color:#00b4ff;
}

.typing-name{
    color:#fff;
    margin-left:10px;
}

.hero-role{
    animation:pulseText 3s infinite;
}

@keyframes pulseText{

0%,100%{
opacity:1;
}

50%{
opacity:.6;
}

}

.hero-text p {
  color: #ccc;
  max-width: 650px;
  margin: 1rem 0;
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00aaff;
  box-shadow:
    0 0 20px rgba(0, 180, 255, 0.5),
    0 0 50px rgba(0, 180, 255, 0.3);
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.section {
  padding: 5rem 8%;
  border-bottom: 1px solid rgba(0, 180, 255, 0.08);
}

.section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #00b4ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#about {
  text-align: center;
}

#about p {
  max-width: 900px;
  margin: auto;
  color: #ddd;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: rgba(0, 180, 255, 0.08);
  color: #00b4ff;
  border: 1px solid #00b4ff;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
  font-weight: 600;
  margin-right: 1rem;
}

.btn:hover {
  background: #00b4ff;
  color: #000;
  transform: translateY(-3px);
  box-shadow:
    0 0 12px #00b4ff,
    0 0 30px rgba(0, 180, 255, 0.5);
}

.project-card,
.skill-box,
.timeline-item {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    opacity 0.8s ease;
}

.timeline-item {
  width: 100%;
}

.timeline-content h3 {
  margin-bottom: 0.7rem;
  color: #00b4ff;
}

.timeline-content p {
  color: #d5d5d5;
  line-height: 1.7;
}

.project-card:hover,
.skill-box:hover,
.timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.4);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-img img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 180, 255, 0.4);
  transition: 0.4s ease;
}

.project-img img:hover {
  transform: scale(1.03);
}

.project-content h3 {
  color: #00b4ff;
  margin-bottom: 1rem;
}

.project-content p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.skills-section {
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(0, 180, 255, 0.08),
      transparent 70%);
  pointer-events: none;
}

.skills-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.skills-heading h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #00b4ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-skills-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.modern-skill-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 18px;
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  transition: 0.4s ease;
}

.modern-skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.4);
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.cloud-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aws-brand img {
  width: 70px;
}

.gcp-brand img {
  width: 70px;
}

.cloud-brand h3 {
  font-size: 2rem;
  color: white;
  font-weight: 700;
}

.brand-divider {
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.3);
}

.devops-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.devops-infinity {
  font-size: 4rem;
  font-weight: bold;
  color: #00b4ff;
  text-shadow: 0 0 18px rgba(0, 180, 255, 0.5);
}

.devops-header h3 {
  font-size: 2.4rem;
  color: #00b4ff;
}

.modern-skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modern-skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-skill-item i {
  color: #00b4ff;
  font-size: 1.8rem;
  min-width: 40px;
  margin-top: 3px;
}

.modern-skill-item p {
  color: #d9d9d9;
  font-size: 1rem;
  line-height: 1.5;
}

.modern-skill-item span {
  color: #00b4ff;
  font-weight: 700;
}

@media(max-width: 768px) {

  .skills-heading h2 {
    font-size: 2.4rem;
  }

  .modern-skills-grid {
    grid-template-columns: 1fr;
  }

  .modern-skill-card {
    padding: 1.5rem;
  }

  .skill-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .brand-divider {
    display: none;
  }

  .cloud-brand h3 {
    font-size: 2rem;
  }

  .devops-header h3 {
    font-size: 2.5rem;
  }

  .modern-skill-item p {
    font-size: 1rem;
  }

}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}

.tech-grid img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: 0.4s ease;
}

.tech-grid img:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.4);
}

#certifications {
  text-align: center;
}

.certifications-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.badge-img {
  width: 200px;
  transition: 0.3s ease;
}

.badge-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px #00b4ff);
}

.blog-container {
  display: flex;
  justify-content: center;
  max-width: 700px;
  margin: auto;
}

.blog-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
}

.blog-img {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 255, 0.3);
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content h3 {
  color: #00b4ff;
  margin-bottom: 0.3rem;
}

.blog-subtitle {
  color: #8fb7c8;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.blog-content p {
  color: #ccc;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .blog-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .certifications-container {
    flex-direction: column;
     gap: 1.5rem;
}

}

form {
  max-width: 650px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 180, 255, 0.4);
  background: rgba(15, 15, 15, 0.8);
  color: white;
  outline: none;
}

form textarea {
  min-height: 150px;
  resize: none;
}

footer {
  text-align: center;
  padding: 2rem;
}

.social-icons {
  margin-bottom: 1rem;
}

.social-icons a {
  color: #00b4ff;
  font-size: 1.8rem;
  text-decoration: none;   /* Remove underline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.7rem;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: white;
  transform: scale(1.2);
  text-shadow: 0 0 20px #00b4ff;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

.success-animation {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.cloud {
  position: relative;
  font-size: 5rem;
  color: #00b4ff;
}

.check {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00ff88;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-animation p {
  margin-top: 1rem;
  color: #00ff88;
  font-weight: bold;
}

@media(max-width: 768px) {

  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  nav ul li a {
    font-size: 0.85rem;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 4rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    margin: auto;
  }

  .hero-img img {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 4rem 1.5rem;
  }

.projects-container,
.skills-grid,
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
  width: 100%;
}

.timeline-item {
  width: 100%;
  margin-bottom: 0.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn {
    margin-bottom: 1rem;
  }

}

.experience-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.exp-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0.5rem;
  background: rgba(0, 180, 255, 0.08);
  border: 1px solid rgba(0, 180, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cloud-wrapper {
  margin-bottom: 1.5rem;
}

.cloud-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.cloud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #00b4ff;
  font-weight: bold;
  font-size: 0.9rem;
}

.cloud-item i {
  font-size: 3.5rem;
}

.cloud-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.cloud-divider {
  width: 1px;
  height: 50px;
  background: rgba(0, 180, 255, 0.4);
}

#training .timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dropdown-nav {
  position: relative;
}

.menu-btn {
  background: rgba(0, 180, 255, 0.08);
  border: 1px solid #00b4ff;
  color: #00b4ff;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.menu-btn:hover {
  background: #00b4ff;
  color: #000;
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.5);
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  width: 220px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  list-style: none;
  padding: 1rem 0;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.15);
  transform: scale(0.95);
  opacity: 0;
  transition: 0.2s ease;
  pointer-events: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.9rem 1.4rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.dropdown-menu li a:hover {
  background: rgba(0, 180, 255, 0.12);
  color: #00b4ff;
  padding-left: 1.8rem;
}

.dropdown-menu.show {
  display: flex;
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.project-card.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.project-card.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

#contact {
  text-align: center;
  padding: 5rem 8%;
}

#contact h2 {
  margin-bottom: 2rem;
}

#contact input,
#contact textarea {
  width: 100%;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 180, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  outline: none;
  transition: 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  border-color: #00b4ff;
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.4);
}

#contact textarea {
  min-height: 160px;
  resize: none;
}

#contact .btn {
  width: 100%;
  margin-right: 0;
  font-size: 1rem;
}

.success-animation {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.15);
  display: none;
  flex-direction: column;
  align-items: center;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1.2rem 1rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,180,255,0.3);
  border-radius: 12px;
  color: white;
  outline: none;
  font-size: 1rem;
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #aaa;
  font-size: 0.95rem;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -10px;
  left: 10px;
  font-size: 0.75rem;
  color: #00b4ff;
  background: #000;
  padding: 0 6px;
}

.send-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.send-icon {
  display: none;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.send-btn.loading .spinner {
  display: inline-block;
}

.send-btn.loading .btn-text {
  display: none;
}

.success-animation i {
  animation: fly 1s ease-in-out infinite;
}

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

#contact form {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 180, 255, 0.3);
  background: rgba(0,0,0,0.4);
  color: white;
  outline: none;
  font-size: 1rem;
}

#contact textarea {
  min-height: 140px;
  resize: none;
}

#contact .send-btn {
  width: auto;
  padding: 0.7rem 2rem;
  font-size: 0.95rem;
  margin: 0 auto;
  display: flex;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.send-btn.loading .spinner {
  display: inline-block;
}

.send-btn.loading .btn-text {
  display: none;
}

.dropdown-menu li a {
  position: relative;
  transition: 0.3s ease;
}

.dropdown-menu li a:active {
  transform: scale(0.96);
}

.terminal-body {
  padding: 10px;
  color: #00ff99;
  font-size: 13px;
  height: 170px;
  overflow: hidden;
  line-height: 1.5;
  white-space: pre-line;
}

.hero {
  position: relative;
}

.hero-terminal {
  font-family: monospace;
  color: #00ff99;
  font-size: 0.85rem;
  white-space: pre-line;

  position: absolute;
  top: 85px;
  left: 8%;
  z-index: 10;

  max-width: 320px;
  opacity: 0.9;

  background: transparent;
  border: none;
  padding: 0;
}

.status-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px;
  font-size: 0.85rem;
  color: #aaa;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
}

#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 55px;
  height: 55px;

  border-radius: 50%;
  border: 1px solid rgba(0, 180, 255, 0.5);

  background: rgba(0, 180, 255, 0.12);
  color: #00b4ff;

  font-size: 18px;

  display: none;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  backdrop-filter: blur(12px);

  box-shadow:
    0 0 10px rgba(0, 180, 255, 0.4),
    0 0 25px rgba(0, 180, 255, 0.2);

  transition: all 0.3s ease;
  z-index: 9999;
}

/* hover glow effect */
#topBtn:hover {
  transform: translateY(-5px) scale(1.1);
  background: #00b4ff;
  color: #000;

  box-shadow:
    0 0 20px #00b4ff,
    0 0 40px rgba(0, 180, 255, 0.6);
}

.floating-icons {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* base icon style */
.float-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.08;
  filter: blur(0.3px);
  animation: floatSlow 18s linear infinite;
}

/* different positions */
.icon1 {
  top: 20%;
  left: 10%;
  animation-duration: 22s;
}

.icon2 {
  top: 60%;
  left: 70%;
  animation-duration: 28s;
}

.icon3 {
  top: 80%;
  left: 30%;
  animation-duration: 25s;
}

/* slow floating motion */
@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-40px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.floating-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* nodes */
.node {
  position: absolute;
  width: 55px;
  height: 55px;
  opacity: 0.10;
  animation: drift 40s ease-in-out infinite;
}

.node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* positions */
#n1 { top: 15%; left: 10%; }
#n2 { top: 30%; left: 70%; animation-duration: 24s; }
#n3 { top: 55%; left: 20%; animation-duration: 28s; }
#n4 { top: 70%; left: 80%; animation-duration: 22s; }
#n5 { top: 85%; left: 40%; animation-duration: 26s; }
#n6 { top: 40%; left: 50%; animation-duration: 30s; }
#n7 { top: 40%; left: 60%; animation-duration: 32s; }
#n8 { top: 40%; left: 70%; animation-duration: 36s; }

/* floating movement */
@keyframes drift {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-25px); }
  100% { transform: translateY(0px); }
}

/* lines */
.network-lines {
  position: absolute;
  width: 100%;
  height: 100%;
}

.network-lines line {
  stroke: rgba(0, 180, 255, 0.2);
  stroke-width: 1;
}

.footer-terminal{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
    padding: 12px 20px;

    background: rgba(10,15,25,.8);
    border: 1px solid rgba(0,180,255,.25);
    border-radius: 12px;

    backdrop-filter: blur(10px);

    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.95rem;

    box-shadow:
        0 0 15px rgba(0,180,255,.15);

    transition: .3s ease;
}

.footer-terminal{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;

    margin-top:20px;
    padding:14px 22px;

    background:#0b1118;
    border:1px solid rgba(0,180,255,.25);
    border-radius:12px;

    font-family:Consolas, monospace;
    font-size:0.95rem;

    width:fit-content;
    margin-inline:auto;

    box-shadow:0 0 20px rgba(0,180,255,.15);
}

.terminal-user{
    color:#00b4ff;
    font-weight:bold;
}

#terminalCommand{
    color:#f5f5f5;
}

.terminal-cursor{
    color:#00ff88;
    font-weight:bold;
    animation:blink .8s infinite;
}

@keyframes blink{
    50%{
        opacity:0;
    }
}

.footer-terminal{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;

    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;

    font-family: Consolas, "Courier New", monospace;
    font-size: 16px;
}

.terminal-user{
    color:#00b4ff;
    font-weight:bold;

    width:150px;          /* Fixed width */
    text-align:right;     /* Align prompt neatly */
    flex-shrink:0;        /* Prevent shrinking */
    margin-right:8px;
}

#terminalCommand{
    color:#00ff88;
    min-width:260px;      /* Reserve space for the typing text */
    text-align:left;
}

.terminal-cursor{
    color:#00ff88;
    animation:blinkCursor .8s infinite;
}

@keyframes blinkCursor{
    50%{
        opacity:0;
    }
}

.hero-img img,
.project-card,
.timeline-item,

.modern-skill-card,
.tech-grid img,
.node{
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (max-width:768px){

/* Hero Section */
.hero{
    flex-direction:column-reverse;
    justify-content:center;
    text-align:center;
    padding:90px 20px 50px;
    gap:2rem;
}

.hero-text{
    width:100%;
}

.hero-title{
    display:block;
    white-space:normal;
    font-size:2rem;
    line-height:1.3;
}

.typing-name{
    display:block;
    margin:10px 0 0;
}

.hero-role{
    font-size:1rem;
}

.hero-text p{
    max-width:100%;
    font-size:.95rem;
}

.hero-buttons{
    display:flex;
    flex-direction:column;
    gap:15px;
    align-items:center;
}

.hero-buttons .btn{
    width:220px;
    margin:0;
}

.hero-img img{
    width:230px;
    height:230px;
}

/* Hero terminal */
.hero-terminal{
    position:static;
    max-width:100%;
    margin-bottom:20px;
    text-align:left;
}

/* Sections */
.section{
    padding:70px 20px;
}

.section h2{
    font-size:2rem;
}

/* About */
#about p{
    font-size:.95rem;
}

/* Tech Stack */
.tech-grid{
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    justify-items:center;
}

.tech-grid img{
    width:60px;
    height:60px;
}

/* Skills */
.modern-skills-grid{
    flex-direction:column;
    align-items:center;
}

.modern-skill-card{
    width:100%;
}

.skill-top{
    flex-direction:column;
}

.brand-divider{
    display:none;
}

/* Projects */
.projects-container{
    grid-template-columns:1fr;
}

.project-card{
    padding:1.3rem;
}

.project-img img{
    width:100%;
}

/* Experience & Training */
.experience-card{
    flex-direction:column;
    text-align:center;
}

.exp-logo img{
    width:70px;
    height:70px;
}

/* Contact */
#contact form{
    padding:1.5rem;
}

/* Footer */
.footer-terminal{
    font-size:13px;
    flex-wrap:wrap;
    text-align:center;
}

.terminal-user{
    width:auto;
    text-align:center;
}

#terminalCommand{
    min-width:auto;
}

/* Floating background */
.node{
    width:35px;
    height:35px;
    opacity:.06;
}

.network-lines{
    display:none;
}

/* Scroll button */
#topBtn{
    width:48px;
    height:48px;
    right:18px;
    bottom:18px;
}

}

.toast {
  position: fixed;
  bottom: 30px;
  right: -400px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 14px;

  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 25px rgba(0, 255, 136, 0.25),
    0 0 60px rgba(0, 180, 255, 0.15);

  overflow: hidden;
  transition: right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10000;
}

.toast.show {
  right: 30px;
}

.toast-check {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #00ff88 0%, #00b478 100%);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  transform: scale(0);
}

.toast.show .toast-check {
  animation: popCheck 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

@keyframes popCheck {
  0%   { transform: scale(0) rotate(-45deg); }
  60%  { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.toast-check i {
  color: #000;
  font-size: 1.1rem;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-text strong {
  color: #fff;
  font-size: 1rem;
}

.toast-text span {
  color: #bbb;
  font-size: 0.85rem;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #00ff88, #00b4ff);
  transform: scaleX(0);
  transform-origin: left;
}

.toast.show .toast-progress {
  animation: drainBar 4s linear forwards;
}

@keyframes drainBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== FIX: Intro loader centering on mobile ===== */
.intro-screen {
  height: 100dvh;
  width: 100vw;
  padding: 0 20px;
  text-align: center;
}

.loader-wrapper {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.loader-text {
  flex-wrap: wrap;
  word-break: break-word;
}

@media (max-width: 480px) {

  .blog-img {
    width: 120px;
    height: 120px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-img img {
    width: 180px;
    height: 180px;
  }

  .badge-img {
    width: 140px;
  }

  .certifications-container {
    gap: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {

  .hero {
    padding: 4rem 5%;
  }

  .hero-img img {
    width: 260px;
    height: 260px;
  }

  .modern-skills-grid {
    gap: 1rem;
  }
}

/* ===== SMOOTH TOUCH/TAP GLOW — Cards & Icons ===== */

.project-card,
.timeline-item,
.modern-skill-card,
.blog-card,
.tech-grid img,
.badge-img,
.social-icons a,
.exp-logo img,
.btn {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.4);
}

.tech-grid img:active {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.4);
}

.badge-img:active {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px #00b4ff);
}

.exp-logo img:active {
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.4);
}

.social-icons a:active {
  color: #fff;
  transform: scale(1.15);
  text-shadow: 0 0 15px #00b4ff;
}

.btn:active {
  background: #00b4ff;
  color: #000;
  transform: translateY(-2px);
  box-shadow:
    0 0 10px #00b4ff,
    0 0 25px rgba(0, 180, 255, 0.4);
}

/* prevent the blue tap-highlight box on mobile Chrome/Safari */
.project-card,
.timeline-item,
.modern-skill-card,
.blog-card,
.tech-grid img,
.badge-img,
.social-icons a,
.exp-logo img,
.btn {
  -webkit-tap-highlight-color: transparent;
}

/* ===== SCROLL PERFORMANCE FIX ===== */

body::before,
body::after {
  will-change: transform;
  transform: translateZ(0);
  contain: layout style paint;
}

header,
.project-card,
.timeline-item,
.modern-skill-card,
.blog-card,
.tech-grid img,
.dropdown-menu,
#contact form,
.toast {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

html, body {
  -webkit-overflow-scrolling: touch;
}

.floating-network {
  contain: layout style paint;
}

@media (max-width: 1024px) {
  #n6, #n7, #n8 {
    animation: none;
    opacity: 0.06;
  }
}

/* ===== Small Animated Header Logo ===== */
.header-logo-svg {
  width: 50px;
  height: 50px;
  display: block;
}

#headerCloudPath {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

#headerWPath {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.play #headerCloudPath {
  animation: drawCloudLoop 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.play #headerWPath {
  animation: drawWLoop 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes drawCloudLoop {
  0%   { stroke-dashoffset: 1000; }
  40%  { stroke-dashoffset: 0; }
  90%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1000; }
}

@keyframes drawWLoop {
  0%   { stroke-dashoffset: 300; }
  38%  { stroke-dashoffset: 300; }
  62%  { stroke-dashoffset: 0; }
  90%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 300; }
}