html {
    scroll-behavior: smooth;
}

#loader {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.active .central {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 10em;
    height: 10em;
    border-radius: 50%;
    box-shadow: 0.5em 1em 1em red,
      -0.5em 0.5em 1em orange,
      0.5em -0.5em 1em orangered,
      -0.5em -0.5em 1em yellow;
}
  
#loader.active .external-shadow {
    width: 10em;
    height: 10em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0.5em 0.5em 3em red,
      -0.5em 0.5em 3em orange,
      0.5em -0.5em 3em orangered,
      -0.5em -0.5em 3em yellow;
    z-index: 999;
    animation: rotate 1s linear infinite;
    background-color: #212121;
}
  
.intern {
    position: absolute;
    color: white;
    z-index: 9999;
}
  
.intern::before {
    content: "100%";
}

#loader.active .intern::before {
    animation: percent 3s ease-in-out;
}
  
@keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
  
    50% {
      transform: rotate(180deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
}
  
@keyframes percent {
    0% {
      content: '0%';
    }
  
    25% {
      content: '25%';
    }
  
    33% {
      content: '33%';
    }
  
    42% {
      content: '42%';
    }
  
    51% {
      content: '51%';
    }
  
    67% {
      content: '67%';
    }
  
    74% {
      content: '74%';
    }
  
    75% {
      content: '75%';
    }
  
    86% {
      content: '86%';
    }
  
    95% {
      content: '95%';
    }
  
    98% {
      content: '98%';
    }
  
    99% {
      content: '99%';
    }
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 9998;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1e1e1e;
    color: #fff;
    padding: 2.5em 2em;
    border-radius: 1rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 1.5em 3em rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease;
    position: relative;
}

@media (max-width: 600px) {
    .modal {
        width: 18rem;
        padding: 2em 1.5em;
    }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal p {
    font-size: 1em;
    line-height: 1.5;
    opacity: 0.9;
}

.modal button {
    margin-top: 1.5em;
    padding: 0.7em 1.5em;
    border: none;
    border-radius: 2rem;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: white;
    box-shadow: 0 0.5em 1.5em rgba(255, 126, 95, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.7em 1.8em rgba(255, 126, 95, 0.6);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: white;
    width: 100%;
    min-height: 100vh;
    background-color: #111111;
    background-image: linear-gradient(32deg,
            rgba(8, 8, 8, 0.74) 30px,
            transparent);
    background-size: 3.75rem 3.75rem;
    background-position: -5px -5px;
}

@media (max-width: 600px) {
    body {
      font-size: 0.9rem;
      padding: 0;
    }
}

a {
    text-decoration: none;
}

p {
    margin: 0;
}

h1 {
    font-weight: 900;
    font-size: 3.5rem;
}

h2 {
    font-weight: 800;
    font-size: 3.5rem;
    text-align: center;
    margin: 0.7rem;
}

h4 {
    margin: 0;
}

section {
    scroll-margin-top: 9rem;
    margin-bottom: 9rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    section {
        scroll-margin-top: 6rem;
        margin-bottom: 4rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
  
body.loaded .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.menu-bar {
    display: none;
    position: fixed;
    top: 2%;
    right: 5%;
    background-color: black;
    border: 2px solid rgba(255, 72, 0, 0.253);
    padding: 5px;
    z-index: 999;
}

#checkbox {
  display: none;
}

.toggle {
  position: relative;
  width: 25px;
  height: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition-duration: .5s;
}

.bars {
  width: 100%;
  height: 2px;
  background-color: #FF7E5F;
  border-radius: 4px;
}

#bar2 {
  transition-duration: .8s;
}

#checkbox:checked + .toggle .bars {
  position: absolute;
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar2 {
  transform: scaleX(0);
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar1 {
  width: 100%;
  transform: rotate(45deg);
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar3 {
  width: 100%;
  transform: rotate(-45deg);
  transition-duration: .5s;
}

#checkbox:checked + .toggle {
  transition-duration: .5s;
  transform: rotate(180deg);
}
  

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.nav-links {
    display: flex;
    width: 50%;
    min-width: 900px;
    justify-self: center;
    justify-content: space-around;
}

.nav-links a {
    color: #ff7e5f;
    transition: color 0.1s ease-in-out;
}

.nav-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .menu-bar {
        display: block;
    }
    .navbar {
        display: none;
        position: fixed;
        top: 7%;
        left: 63%;
        padding: 0.8rem;
        width: 20%;
        min-width: 110px;
        border-radius: 5px;
        animation: slideLeft 0.3s ease-in-out;
    }

    @keyframes slideLeft {
        from { transform: translateX(40px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    .nav-links {
        /* font-size: 0.85rem;
        min-width: 90vw;
        flex-wrap: wrap;
        height: auto;
        column-gap: 50px;
        row-gap: 10px;*/
        margin-right: auto;
        margin-left: auto; 
        display: flex;
        flex-direction: column;
        width: 50%;
        min-width: 100%;
        justify-content: center;
        align-items: flex-start;
        border-radius: 5px
    }

    .value {
    background-color: transparent;
    border: none;
    padding: 10px;
    color: white;
    display: flex;
    position: relative;
    gap: 5px;
    cursor: pointer;
    border-radius: 4px;
    }
    
    .value:not(:active):hover,
    .value:focus {
    background-color: #21262C;
    }
    
    .value:focus,
    .value:active {
    background-color: #1A1F24;
    outline: none;
    }
    
    .value::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -10px;
    width: 5px;
    height: 80%;
    background-color: #FF7E5F;
    border-radius: 5px;
    opacity: 0;
    }
    
    .value:focus::before,
    .value:active::before {
    opacity: 1;
    }
}

.content {
    display: flex;
    flex-direction: column;
    justify-self: center;
    margin-top: 3.2rem;
    padding: 1.2rem;
    width: 55vw;
    min-width: 800px;
}

@media (max-width: 900px) {
    .content {
        width: 79vw;
        min-width: unset;
        padding: 1rem;
        margin-top: 1rem;
        justify-content: center;
    }
}

.myName {
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #ff7e5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 8s ease infinite;
}

.title {
    color: #ff7e5f;
}

.home h3 {
    font-size: 30px;
}

.home p {
    font-size: 20px;
}

@media (max-width: 768px) {
    .home h3 {
        font-size: 1.3rem;
    }
    
    .home p {
        font-size: 16px;
    }

    .title {
        font-size: 1.3rem;
    }
}

.about {
    display: grid;
    grid-template-columns: 300px 1fr;
    width: 80%;
    min-width: 800px;
    justify-self: center;
    position: relative;
    padding: 20px;
    column-gap: 20px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 0;
  }
  
.about::before {
    position: absolute;
    content: '';
    display: block;
    width: 160%;
    height: 70%;
    top: 30%;
    left: -30%;
    background: linear-gradient(
      180deg,
      transparent,
      #d17056,
      #E34F26,
      #E34F26,
      #d17056,
      transparent
    );
    animation: rotation 6s infinite linear;
    z-index: -2;
}
  
.about::after {
    opacity: 1;
    position: absolute;
    content: '';
    inset: 2px;
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    border-radius: 12px;
    z-index: -1;
    box-shadow:
        0 0 8px rgba(227, 79, 38, 0.4),
        0 0 16px rgba(200, 50, 20, 0.2);
}

@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        width: 90%;
        min-width: unset;
        padding: 15px;
        row-gap: 20px;
    }

    .about::before {
        width: 400%;
        height: 18rem;
        top: 40%;
        left: -150%;
    }
}
  
@keyframes rotation {
    0% {
      transform: rotateZ(0deg);
    }
    100% {
      transform: rotateZ(360deg);
    }
}
  
.overview {
    padding: 10px;
}

.overview-card {
    display: flex;
    flex-direction: column;
    row-gap: 0.25rem;
    margin-bottom: 1rem;
}

.profile {
    display: grid;
    grid-template-rows: 5fr 2fr;
}

@media (max-width: 900px) {
    .profile {
        grid-template-rows: auto auto;
    }
}

.image-container {
    display: flex;
    justify-self: center;
    align-self: flex-end;
    width: 200px;
    border-radius: 100%;
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.6);
    overflow: hidden;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: scale(1.05);
    animation: flicker 2s infinite alternate;
}

.image-container:active {
    transform: scale(0.95);
}

.image-container img {
    width: 200px;
}

@media (max-width: 900px) {
    .image-container {
        width: 150px;
        margin-bottom: 20px;
        align-self: center;
    }
    
    .image-container img {
        width: 150px;
    }
}

.accounts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 30px;
}

.accounts a {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    color: white;
    width: 110px;
    height: 40px;
    border-radius: 2px;
    transition: background 0.3s ease;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .accounts {
        gap: 15px;
    }
    
    .accounts a {
        width: 90px;
        height: 35px;
        font-size: 0.85rem;
    }
}

.linkedin {
    background-color: #0077B5;
}

.linkedin:hover {
    background-color: #005983;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 119, 181, 0.4);
}

.linkedin:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 3px 6px rgba(0, 119, 181, 0.3);
}

.github {
    background-color: #333;
}

.github:hover {
    background-color: #24292e;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(54, 57, 59, 0.3);
}

.github:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 3px 6px rgba(38, 42, 46, 0.3);
}

.overview li {
    margin: 15px;
}

.education-container {
    display: flex;
    justify-content: center;
    width: 90%;
}

.education {
    display: grid;
    grid-template-columns: 100px 500px;
}

@media (max-width: 768px) {
    .education-container {
        width: 100%;
    }
    
    .education {
        grid-template-columns: 80px 1fr;
        padding: 0 10px;
    }
}

.radio-group {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between;
    align-self: center;
    position: relative;
    height: 80%;
}

.radio-group::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #ccc;
    z-index: 0;
}

.radio-item {
    position: relative;
    z-index: 1;
}

.radio-item input {
    display: none;
}

.dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #555;
    display: block;
    cursor: pointer;
}

.dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    background-color: white;
}

@media (max-width: 768px) {
    .dot {
        width: 25px;
        height: 25px;
    }
}

.school {
    max-width: 500px;
    border: 0;
    width: 100%;
    margin-bottom: 15px;
}

.school {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    background-clip: padding-box;
    border-radius: 15px;
    padding-left: 40px;
    cursor: pointer;
}

.school::after {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    right: -1px;
    content: "";
    z-index: -1;
    border-radius: 15px;
    background: linear-gradient(71deg, #110e0e, #e26644, #110e0e);
}

.school.active {
    transform: translateX(8px);
    box-shadow: 0 0 10px 2px rgba(227, 79, 38, 0.5),
                0 0 20px 4px rgba(227, 79, 38, 0.3),
                0 0 30px 6px rgba(0, 0, 0, 0.4);
    animation: flicker 1.6s infinite alternate;
}

@media (max-width: 768px) {
    .school {
        padding-left: 20px;
        padding-right: 10px;
    }
    
    .school.active {
        transform: translateX(4px);
    }
}

.dot img.active {
    transform: scale(2.5);
}

@media (max-width: 768px) {
    .dot img.active {
        transform: scale(2);
    }
}

.school h5 {
    font-weight: 600;
    color: white;
    letter-spacing: -0.02em;
    font-style: normal;
    font-size: 20px;
}

.school h6 {
    font-weight: 600;
    color: hsla(0, 0%, 100%, 0.5);
    font-size: 12px;
    max-width: 470px;
}

@media (max-width: 768px) {
    .school h5 {
        font-size: 16px;
    }
    
    .school h6 {
        font-size: 11px;
        max-width: 100%;
    }
}

.projects {
    width: 70%;
    min-width: 800px;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 600px;
    perspective: 100%;
}

@media (max-width: 900px) {
    .projects {
        width: 90%;
        min-width: unset;
        grid-template-columns: 1fr;
        height: auto;
        gap: 30px;
        perspective: none;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    border: 1px solid rgba(255, 72, 0, 0.253);
    height: 85%;
    width: 85%;
    max-width: 350px;
    border-radius: 1.2rem;
    padding: 1rem;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .5s ease-in-out, background-color 0.5s ease-in-out;
}

@media (max-width: 900px) {
    .project-card {
        width: 90%;
        height: auto;
        min-height: 400px;
    }
    
    .project-card:hover {
        transform: none;
        background: #d673582d;
        background: linear-gradient(71deg, #0a0a0a, #2e1612, #2e1612);
        animation: flicker 2s infinite alternate;
        box-shadow: 0 15px 30px rgba(0,0,0,0.6),
                    0 0 25px rgba(255, 255, 200, 0.15);
    }
}

.project-image {
    background-color: grey;
    height: 12.5rem;
    border-radius: 0.8rem;
    overflow: hidden;
}

.project-image img {
    height: 100%;
    object-fit: contain;

}

@media (max-width: 900px) {
    .project-image {
        height: 9rem;
    }

    .project-image img {
        width: 100%;
        object-fit: contain;
    }
}

.github-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(90deg, #5b5f63, #202326);
    border-radius: 50%;
    transition: background 0.3s ease, transform 1s ease;
    z-index: 1000;
}
  
.github-icon img {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .github-icon {
        top: 25px;
        right: 25px;
        width: 28px;
        height: 28px;
    }
    
    .github-icon img {
        width: 16px;
        height: 16px;
    }
}

.project-detail {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin-bottom: 20px;
}

.project-card:hover {
    transform: translateZ(10px) rotateX(20deg) rotateY(20deg);
    background: #d673582d;
    background: linear-gradient(71deg, #0a0a0a, #2e1612, #2e1612);

    animation: flicker 2s infinite alternate;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6),
                0 0 25px rgba(255, 255, 200, 0.15);
}


.project-image,
.project-detail,
.stack,
.github-icon {
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out, text-shadow 0.6s ease-in-out;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.project-card:hover .project-image {
  transform: translateZ(100px);
  transition-delay: 0.3s;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.project-card:hover .github-icon {
    transform: translateZ(110px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-detail {
  transform: translateZ(100px);
  transition-delay: 0.6s;
}

.project-card:hover .stack {
    transform: translateZ(100px);
    transition-delay: 0.9s;
}

.project-card:hover .project-detail h4,
.project-card:hover .project-detail p {
  text-shadow: 0 30px 20px rgba(0,0,0,0.6);
  transition-delay: 0.6s;
}

.project-card:hover .stack span {
    text-shadow: 0 30px 20px rgba(0,0,0,0.6);
    transition-delay: 1s;
}

.projects h4 {
    font-size: 25px;
}

.projects p {
    font-size: 16px;
}

@media (max-width: 768px) {
    .projects h4 {
        font-size: 20px;
    }
    
    .projects p {
        font-size: 14px;
    }
}

.html       { color: #E34F26; }
.css        { color: #264DE4; }
.javascript { color: #F7DF1E; }
.python     { color: #3776AB; }
.react      { color: #61DAFB; }
.flask      { color: #BFBFBF; }
.django     { color: #44b78b; }

.skills {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 200px;
}

@media (max-width: 768px) {
    .skills {
        flex-wrap: wrap;
        height: auto;
        gap: 30px;
        padding: 20px 0;
    }
}

.skill {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill img {
    width: 60%;
    transition: filter 0.2s ease-in-out, width 0.2s ease-in-out;
}

.html img {
    filter: drop-shadow(0 0 6px #E34F26) drop-shadow(0 0 12px #E34F26);
}
.css img        { 
    filter: drop-shadow(0 0 6px #264DE4) drop-shadow(0 0 12px #264DE4);
}
.javascript img { 
    filter: drop-shadow(0 0 6px #F7DF1E) drop-shadow(0 0 12px #F7DF1E);
}
.python img     { 
    filter: drop-shadow(0 0 6px #3776AB) drop-shadow(0 0 12px #3776AB);
}
.react img      { 
    filter: drop-shadow(0 0 6px #61DAFB) drop-shadow(0 0 12px #61DAFB);
}
.flask img      { 
    filter: drop-shadow(0 0 6px #BFBFBF) drop-shadow(0 0 12px #BFBFBF);
}
.django img      { 
    filter: drop-shadow(0 0 6px #156D4C) drop-shadow(0 0 12px #156D4C);
}

.skill img:hover {
    width: 80%;
    filter: drop-shadow(0 0 6px #E34F26) drop-shadow(0 0 12px #E34F26);
}

@media (max-width: 768px) {
    .skill {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .skill img {
        width: 80%;
        max-width: 60px;
        transition: all 0.5s ease-in-out;
    }

    .skill img:hover {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 6px #E34F26) drop-shadow(0 0 12px #E34F26);
    }
}

.certificates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .certificates {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
}

.cert-card {
    position: relative;
    width: 320px;
    min-height: 320px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6),
            0 0 24px rgba(255, 77, 0, 0.5),
            0 0 48px rgba(255, 136, 0, 0.4),
            0 0 72px rgba(255, 187, 0, 0.3);
}

.cert-card::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -5px;
    margin: auto;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 15px;
    background: linear-gradient(-45deg, red 0%, rgb(255, 187, 0) 100%);
    z-index: -10;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-card::after {
    content: "";
    z-index: -10;
    position: absolute;
    inset: 0;
    background: black;
    transform: translate3d(0, 0, 0) scale(0.95);
    border-radius: 12px;
}

.cert-card:hover::before {
    transform: rotate(-90deg) scaleX(1.05) scaleY(0.95);
}

@media (max-width: 768px) {
    .cert-card {
        width: 90%;
        min-height: 280px;
        padding: 1.2rem;
    }

    .cert-card:hover::before {
        transform: rotate(-180deg)
    }
}

.cert-image {
    border-radius: 4px;
    overflow: hidden;
    background-color: #f84b20;
}

.cert-image img {
    width: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.cert-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    padding: 10px;
    text-align: center;
}
  
.cert-card h6 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .cert-card h5 {
        font-size: 1rem;
        padding: 5px;
    }
    
    .cert-card h6 {
        font-size: 0.85rem;
    }
}

.form-container {
    display: flex;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 72, 0, 0.253);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-form h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
}

.user-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.user-input input {
    width: 250px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 72, 0, 0.253);
    margin: 5px;
    padding: 0 15px;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.user-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.user-input input:focus {
    animation: flicker 2s infinite alternate;
    background-color: rgba(255, 0, 0, 0.12);
}

.contact-form textarea {
    width: 550px;
    height: 150px;
    border-radius: 6px;
    margin: 5px;
    padding: 15px;
    border: 1px solid rgba(255, 72, 0, 0.253);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
}

.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea:focus {
    background-color: rgba(255, 0, 0, 0.12);
    animation: flicker 2s infinite alternate;
}

.send-btn {
    border: none;
    background: linear-gradient(90deg, #df613e, #ff7614, #e26644);
    color: white;
    padding: 12px 20px;
    margin: 15px 5px 5px 5px;
    width: 580px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: linear-gradient(90deg, #ff6a00, #E34F26, #b33916);
    box-shadow: 0 0 12px rgba(227, 79, 38, 0.6),
                0 0 24px rgba(227, 79, 38, 0.3);
    transform: translateY(-2px);

}

.send-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .contact-form {
        padding: 30px 20px;
    }
    
    .user-input {
        flex-direction: column;
        gap: 0;
    }
    
    .user-input input,
    .contact-form textarea,
    .send-btn {
        width: 280px;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .contact-form {
        padding: 35px 25px;
    }
    
    .user-input input {
        width: 200px;
    }
    
    .contact-form textarea,
    .send-btn {
        width: 450px;
    }
}

.send-modal {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.send-modal.show {
    opacity: 1;
    visibility: visible;
}

.send-modal-content {
    background: #1e1e1e;
    padding: 40px 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1.5em 3em rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.send-modal.show .send-modal-content {
    transform: scale(1);
}

.send-modal-content button {
    border: none;
    background: linear-gradient(90deg, #df613e, #ff7614, #e26644);
    color: white;
    padding: 12px 12px;
    margin: 30px 5px 5px 5px;
    width: 200px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-modal-content button:hover {
    background: linear-gradient(90deg, #ff6a00, #E34F26, #b33916);
    box-shadow: 0 0 12px rgba(227, 79, 38, 0.6),
                0 0 24px rgba(227, 79, 38, 0.3);
    transform: translateY(-2px);
}

.send-modal-content button:active {
    transform: translateY(0px);
}

@media (max-width: 768px) {
    .send-modal-content {
        padding: 30px 40px;
        max-width: 90%;
    }
    
    .send-modal-content button {
        width: 150px;
        padding: 10px;
        font-size: 14px;
    }
}

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

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

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

.skill {
    animation: float 4s ease infinite;
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes flicker {
    0%   { box-shadow: 0 0 10px 2px rgba(227, 79, 38, 0.4), 0 0 20px 6px rgba(255, 106, 0, 0.3); }
    50%  { box-shadow: 0 0 16px 4px rgba(227, 79, 38, 0.8), 0 0 32px 10px rgba(255, 106, 0, 0.6); }
    100% { box-shadow: 0 0 12px 3px rgba(227, 79, 38, 0.6), 0 0 24px 8px rgba(255, 106, 0, 0.4); }
}