* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}
/* Base styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    padding: 10px;
    text-align: right;
    margin-right: 20px;
    word-spacing: 20px;
    z-index: 1000;
}

a {
    border: 1px solid white;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 2px;
}

a:hover {
    background-color: #806d21;
    color: rgb(254, 253, 253);
}

.para {
    float: left;
    color: bisque;
    word-spacing: 5px;
    margin-top: 2px;
    font-family: cursive;
    font-size: 30px;
}

@media (max-width: 768px) {
  
    nav {
        text-align: center;
        padding: 10px;
        height: 50px;
        word-spacing: 0.5px;
    }

    .nav-links a {
        display: block;
        margin-top: 10px;
        padding: 12px 20px; 
    }

   
    .para {
        font-size: 15px;
        margin-top: 1px;
    }
    
    a {
        width: auto;
        padding: 12px 7px;
        border:1px solid beige;
        border-radius: 5px;
        font-size: 7px;
    }
}

header {
    padding: 50px 10px;
    background-color: black;
    min-height: 100vh;
    width: 100%;
    color: white;
    overflow: hidden; 
}

.image-container {
    float: right;
    width: 40%; 
    text-align: center;
    margin: 0 0 20px 20px;
    height: 50px;
}

.circular-image {
    width: 500px;
    height: 500px;
    object-fit: cover; animation: slideInFromRight 2s ease-out forwards;
}
@media only screen and (max-width: 768px) {
    .circular-image {
      width: 300px;
      height: 300px;
      margin: 10px auto; 
      object-fit: cover;
      animation: slideInFromRight 2s ease-out forwards;
      position: absolute; 
      top: 50px; 
      left: 1%; 
      transform: translateX(-50%); 
      justify-content: center;
    align-items: center; 
    margin-right: 5px;
    }
  }
  

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

header img {
    animation: slideInFromRight 1s ease-out forwards;
}

.header-content {
    float: left;
    width: 55%; 
    text-align: left;

}

.animated-text {
    font-size: 30px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text {
font-size: 1.5rem;
color: #DDD;
line-height: 1.8;
margin: 20px 0;
text-align: center;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
animation: slideInFromLeft 2s ease-out forwards;
opacity: 0; 
}
@media only screen and (max-width: 480px) {
    .intro-text {
      font-size: 1rem; /* Smaller font size for better readability on small screens */
      margin: 15px 0; /* Adjust margin for a balanced layout */
      text-align: center; /* Keep the text centered */
      line-height: 1.5; /* Slightly reduced line height */
      animation: slideInFromLeft 1.5s ease-out forwards; /* Shorten animation duration */
    }
  }
  

@keyframes slideInFromLeft {
from {
transform: translateX(-100%); 
opacity: 0;
}
to {
transform: translateX(0); 
opacity: 1;
}
}

.header-content {
display: flex;
flex-direction: column; 
align-items: center; 
justify-content: center;
text-align: center; 
}
.about-me-btn {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-me-btn:hover {
    background: linear-gradient(to right, #2575fc, #6a11cb);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    header {
        display: block;
        text-align: center;
    }

    .image-container, 
    .header-content {
        float: none;
        width: 100%;
        margin: 0 auto;
    }

    .image-container {
        margin-bottom: 20px;
    }
}
.animated-text {
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
    border-right: 3px solid #fff;
    font-family: cursive;
    color: aqua;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

/* Media query for laptops and tablets */
@media (max-width: 1024px) {
    .animated-text {
        font-size: 1.6rem;
    }

    .typing-text {
        animation: blink-caret 0.75s step-end infinite;
    }
}

/* Media query for extra small devices (e.g., smartphones) */
@media (max-width: 480px) {
    .animated-text {
        font-size: 1.2rem;
    }

    .typing-text {
        animation: blink-caret 0.75s step-end infinite;
    }
}


.section9 {
padding: 10px;
height: 800px;
width: 100%;
}

/* Skills Section */
.skills {
background-color: #fff;
border-radius: 10px;
padding: 30px;
margin: 20px 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
text-align: center;
min-height: 710px;
}

.container {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}

.skill-cards {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}

.skill-card {
background-color: #e0e0e0;
border-radius: 10px;
width: calc(33.33% - 20px);
padding: 20px;
margin: 10px;
text-align: left;
position: relative;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, transform 0.3s;
}

.skill-card img {
width: 40px;
height: 40px;
float: left;
margin-right: 15px;
}

.skill-card h3 {
font-size: 1rem;
margin-bottom: 10px;
}

.progress-bar {
background-color: #ddd;
border-radius: 5px;
overflow: hidden;
position: relative;
height: 20px;
}

.progress {
background-color: #4caf50;
height: 100%;
border-radius: 5px;
width: 0;
transition: width 1s ease-in-out;
}


.skill-card:hover {
background-color: gray;
transform: scale(1.09);
color: white;
}

.skill-card:hover .progress {
width: var(--progress-width);
}


@media (max-width: 480px) {
.container {
padding: 0 10px; 
}

.skill-card {
width: 100%; 
height: auto; 
margin: 10px 0;
}

.section9 {
height: auto;
padding-bottom: 20px;
}

section {
height: auto; 
padding: 20px; 
background-color: #333;
}

/* Certificates Section */
.certificates-container {
display: flex;
flex-direction: column;
align-items: center; 
}

.certificate-card {
width: 90%; 
margin: 10px 0; 
}

.certificate-card img {
height: 120px;
}

.certificate-card h3 {
font-size: 16px;
}

.certificate-card p {
font-size: 12px;
}
}



.section10{
    padding: 10px;
    background-color: #DDD;
    height: 00px;
}
/* Certificates Section */
.certificates-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.certificate-card {
background-color: #f7f7f7;
padding: 20px;
margin: 20px;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: calc(25% - 20px);
}

.certificate-card img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 10px 10px 0 0;
}

.certificate-card h3 {
font-size: 18px;
margin-top: 10px;
}

.certificate-card p {
font-size: 14px;
color: #666;
}

/* For small screens (Mobile phones) */
@media (max-width: 480px) {
.certificates-container {
display: flex;
flex-direction: column;
align-items: center;
}

.certificate-card {
width: 90%; 
margin: 10px 0;
}

.certificate-card img {
height: 120px; 
}

.certificate-card h3 {
font-size: 16px; 
}

.certificate-card p {
font-size: 12px; 
}
}
/* Footer Styles */
footer {
background-color: #333;
color: #fff;
padding: 20px 0;
text-align: center;
}

footer .footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

footer .footer-content p {
margin: 10px 0;
font-size: 14px;
}

footer .footer-content a {
color: #fff;
text-decoration: none;
transition: color 0.3s ease;
}

footer .footer-content a:hover {
color: #FF5722; 
}

/* Responsive Styles for Footer */
@media (max-width: 480px) {
footer .footer-content p {
font-size: 12px; 
}

footer .footer-content a {
font-size: 14px; 
}
}

.view-image-btn {
background-color: #FF5722; 
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 9px;
cursor: pointer;
margin-top: 10px;
transition: background-color 0.3s ease;
}

.view-image-btn:hover {
background-color: #E64A19; 
}
.koushi{
    margin-left: 13px;
    font-size: 40px;
    font-family: cursive;
    color: aqua;
}
h1 {
    font-size: 1em;
    color: white;
    text-transform: uppercase;
    color: #FF7F50;
    margin-left: 340px;
    margin-top: 10px;
  }
  
  span {
    border-right: .05em solid;
    animation: caret 1s steps(1) infinite;
  }
  /* Media query for mobile phones */
@media (max-width: 768px) {
    .koushi {
        margin-left: 0; /* Center the text for smaller screens */
        font-size: 30px; /* Adjust font size for better readability */
        text-align: center; /* Center-align text */
        margin-top: 200px; /* Add some spacing from the top */
    }

    h1 {
        font-size: 1px; /* Slightly larger font for headings */
        margin-left: 20px; /* Adjust margins for smaller screens */
        text-align: center; /* Center-align text */
        margin-top: 20px; /* Add some spacing from the top */
    }

    span {
        font-size: 1.5rem;
        border-right: 0.05em solid;
        animation: caret 1s steps(1) infinite; /* Ensure smooth animation */
    }
}
  
  @keyframes caret {
    50% {
      border-color: transparent;
    }
  }
  @media (max-width: 768px) {
    h1 {
        font-size: 1.2em; /* Decrease font size for smaller screens */
        margin-left: 20px; /* Adjust margin to fit smaller screens */
        text-align: center; /* Center the text on small screens */
    }
}

span {
    border-right: .05em solid;
    animation: caret 1s steps(1) infinite;
}

@keyframes caret {
    50% {
        border-color: transparent;
    }
}

/* Adjust caret animation for mobile */
@media (max-width: 768px) {
    span {
        animation: caret 1s steps(1) infinite;
    }
}
svg{
    color: red;
}
svg:hover{
    background-color: #806d21;
    color: rgb(254, 253, 253);
}