* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}

body {
    color: #ededed;
    background: black;
}

/* ---------- HEADER STYLING ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 8%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
}

/* when scrolled: smaller header */
.header.scrolled {
  background: rgba(8, 27, 41, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 8%;
  box-shadow: 0 0 20px rgba(12, 24, 24, 0.4);
}

/* hide header when scrolling down */
.header.hide {
  transform: translateY(-100%);
  opacity: 0;
}

/* Logo left */
.logo {
  font-size: 22px;
  color: #0ef;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: default;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

/* Navbar right */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
}

/* Navigation links */
.navbar a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: calc(0.15s * var(--i));
  letter-spacing: 1px;
}

.navbar a:hover,
.navbar a.active {
  color: rgb(234, 242, 243);
  transform: scale(1.05);
}

/* ---------- Animations ---------- */
@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: black;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50px;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.btn-box {
    display: inline-block;
    padding: 12px 20px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef,
        0 0 25px #0ef
}

.btn-box:hover {
    box-shadow: 0 0 5px cyan,
        0 0 25px cyan, 0 0 50px cyan,
        0 0 100px cyan, 0 0 200px cyan;
}

.picture {
    width: 400px;              /* make it smaller */
    height: 400px;             /* maintain circle shape */
    border-radius: 50%;
    object-fit: cover;         /* ensures image fits nicely */
    float: right;              /* moves image to right side */
    margin: 10px 0 20px 20px;  /* spacing around image */
    background: #0ef;
    padding: 5px;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}


.about {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    justify-content: center;
}

.about-text h2 {
    font-size: 60px;
}

.about-text h2 span {
    color: #0ef;
}

.about-text h4 {
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 15px 0 50px;

}

.about-text p {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 5rem;
}

#services {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}

.sub-title {
    text-align: center;
    font-size: 60px;
    padding-bottom: 70px;
}

.sub-title span {
    color: #0ef;
}

.container {
    padding: 90px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background-color: transparent;
    padding: 40px;
    font-size: 13px;
    border-right: 10px;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 1px 1px 20px #012290f7,
        1px 40px #0053b6f7
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.read {
    display: inline-block;
    padding: 12px 20px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef,
        0 0 25px #0ef;
}

.read:hover {
    box-shadow: 0 0 5px cyan,
        0 0 25px cyan, 0 0 50px cyan,
        0 0 100px cyan, 0 0 200px cyan;
}

.services-list div:hover {
    transform: translateY(-10px);
}

section {
    display: flex;
    flex-wrap: wrap;
}

.container1 {
    width: 600px;
    height: 500px;
    padding: 75px 90px;
    margin-left: 120px;
}

.heading1 {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}

.bar {
    font-size: 23px;
}

.Technical-bars .bar {
    margin-top: 40px 0;
}

.Technical-bars .bar:first-child {
    margin-top: 0;
}

.Technical-bars .bar:last-child {
    margin-bottom: 0;
}

.Technical-bars .bar .info {
    margin-bottom: 5px;
}

.Technical-bars .bar .info span {
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.Technical-bars .bar .progress-line {
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 5px;
    background-color: #043050;
    animation: animate 1s cubic-bezier(0, 0, 1, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

.Technical-bars .bar .progress-line span {
    height: 100%;
    background-color: #0ef;
    position: absolute;
    border-radius: 10px;
    animation: animate 1s cubic-bezier(0, 0, 1, 1) 1s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.progress-line.html span {
    width: 90%;
}

.progress-line.css span {
    width: 85%;
}

.progress-line.javascript span {
    width: 75%;
}

.progress-line.database span {
    width: 60%;
}

.progress-line.java span {
    width: 80%;
}

.progress-line.cprogram span {
    width: 75%;
}

.progress-line.c-program span {
    width: 65%;
}

.progress-line span::after {
    position: absolute;
    padding: 1px 8px;
    background-color: #081b29;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -20px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}

.progress-line.html span::after {
    content: "90%";
}

.progress-line.css span::after {
    content: "85%";
}

.progress-line.javascript span::after {
    content: "75%";
}

.progress-line.database span::after {
    content: "60%";
}

.progress-line.java span::after {
    content: "80%";
}

.progress-line.cprogram span::after {
    content: "75%";
}

.progress-line.c-program span::after {
    content: "65%";
}

.progress-line span::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-top-color: #176fae;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}

@keyframes showText {
    100% {
        opacity: 1;
    }
}

.radial-bars {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.radial-bars .radial-bar {
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;
}

.radial-bars .radial-bar svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}

.radial-bars .radial-bar .progress-bar {
    stroke-width: 10;
    stop-color: #081b29;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    animation: animate-bar 1s linear forwards;
}

@keyframes animate-bar {
    100% {
        stroke-dashoffset: -1;
    }
}

.path {
    stroke-width: 10;
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}

.path-1 {
    animation: animate-path1 1s 1s linear forwards;
}

.path-2 {
    animation: animate-path2 1s 1s linear forwards;
}

.path-3 {
    animation: animate-path3 1s 1s linear forwards;
}

.path-4 {
    animation: animate-path4 1s 1s linear forwards;
}

@keyframes animate-path1 {
    100% {
        stroke-dashoffset: 50;
        ;
    }
}

@keyframes animate-path2 {
    100% {
        stroke-dashoffset: 55;
        ;
    }
}

@keyframes animate-path3 {
    100% {
        stroke-dashoffset: 50;
        ;
    }
}

@keyframes animate-path4 {
    100% {
        stroke-dashoffset: 5;
        ;
    }
}

.radial-bar .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.radial-bar .text {
    width: 100;
    position: absolute;
    text-align: center;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
}

.main-text {
    padding-top: 130px;
    margin-top: 100px;
}

.main-text h2 {
    font-size: 60px;
    line-height: 1;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 120px;
    justify-content: center;
    align-items: center;
}

.main-text h2 span {
    color: #0ef;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(359px, auto));
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), #0ef);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: 0.5s;
}

.layer h5 {
    color: #081b29;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p {
    color: #081b29;
    font-size: 1rem;
    line-height: 1.8;
}

.layer i {
    color: red;
    margin-top: 20px;
    font-size: 20px;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img {
    transform: scale(1.1);
}

.row:hover .layer {
    height: 100%;
}

/* Common section styling */
.dialog-section {
  background: black;
  color: white;
  padding: 100px 0;
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

/* Heading centered */
.dialog-section .heading {
  font-size: 60px;
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.dialog-section .heading span {
  color: #0ef;
}

/* Container (boxes below heading) */
.dialog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centers all boxes */
  gap: 2rem;
  padding: 0 50px;
}

.dialog-box.experience {
  background: #0a0a0a;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #0ef, #00bcd4) 1;
  border-radius: 20px;
  padding: 30px;
  width: 350px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  transition: 0.3s ease;
}

/* Hover effect */
.dialog-box.experience:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px #0ef;
}

/* Responsive layout — 2 boxes on top, 1 below */
@media (max-width: 1100px) {
  .dialog-box.experience {
    width: 300px;
  }
}

@media (max-width: 900px) {
  .dialog-container {
    justify-content: center;
  }
  .dialog-box.experience {
    width: 80%;
  }
}


.dialog-box.experience:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px #0ef;
}

/* ---------- Certifications Flip Card Effect ---------- */

.flip-card {
  background: transparent;
  width: 350px;
  height: 250px;
  perspective: 1000px;
  margin: 20px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* Front Side */
.flip-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.3s ease;
}

.flip-front h3 {
  color: #0ef;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Back Side */
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #081b29;
  color: #0ef;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  font-size: 1rem;
  line-height: 1.6;
}

.flip-back p{
    color: #fff;
}


/* Achievement boxes - Neon glow */
.dialog-box.achievement {
  background: #081b29;
  border: 1px solid #0ef;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.3), inset 0 0 10px rgba(0, 238, 255, 0.1);
  padding: 30px;
  width: 350px;
  transition: all 0.4s ease;
}
.dialog-box.achievement:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.6);
}

/* Text inside dialog boxes */
.dialog-box h3 {
  color: #0ef;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.dialog-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.contact {
    display: grid;
    align-items: center;
    margin-top: 130px;
    justify-content: center;
    text-align: center;
}

.contact-text h2 {
    font-size: 90px;
    line-height: 1;
    text-align: center;

}

.contact-text h2 span {
    color: #0ef;
}

.contact-text h4 {
    margin: 15px 0;
    color: rgba(228, 228, 228);
    font-size: 20px;
    font-weight: 600;
}

.contact-text p {
    color: rgb(177, 177, 177);
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
}

.contact-list {
    margin-bottom: 3rem;
}

.contact-list li {
    margin-bottom: 10px;
    display: block;
}

.contact-list i {
    display: inline-block;
    color: #0ef;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s ease;
}

.contact-list li a:hover {
    transform: scale(1.01) translateY(-5px);
    color: #0ef;
}

.contact-icons i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 30px 15px 30px;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.contact-icons i:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.last-text p {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(7, 85, 91);
    font-weight: 300;
    margin-top: 70px;
}

.top {
    position: fixed;
    bottom: 2.1rem;
    right: 2, 1rem;
}

.top i {
    color: #081b29;
    background: #0ef;
    font-size: 20px;
    padding: 10px;
    border-radius: 0.5rem;
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}