/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    margin: 0;
    padding: 0;
    width: 100%;
}


/* Body and overall styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header styling */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

header .logo h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
    transform: scale(1.05);
}

/* Main content styling */
main {
    padding-top: 80px; /* Adjusted for fixed header */
    text-align: center;
}

/* Box-content for hero section */
/* Existing Styles */
.box-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    margin-top: 5%;
}

.box-image img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.box-image img:hover {
    transform: scale(05);
}

.box1 {
    margin-left: 30px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

.box1 h1 {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    transform: translateY(20px);
    animation: slideIn 1s ease-out forwards;
}

.box1 h2 {
    font-size: 24px;
    color: #777;
    margin-bottom: 20px;
    transform: translateY(20px);
    animation: slideIn 1.2s ease-out forwards;
}

.box1-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

.button-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button1, .button2 {
    background-color: #ffcc00;
    color: #1a1a1a;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    width: 200px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
}

.button1:hover, .button2:hover {
    background-color: #e0b000;
    transform: scale(1.05);
}

.links {
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 1.5s;
}

.links i {
    color: #1a1a1a;
    font-size: 30px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.links i:hover {
    color: #ffcc00;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}


/* About Section */
.about {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image img {
    width: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.about-text h3 {
    font-size: 22px;
    color: #555;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 18px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cv-btn {
    background-color: #1a1a1a;
    color: #fff;
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.cv-btn:hover {
    background-color: #ffcc00;
}


/* Education & Achievements section */
.skills__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 600px;
    margin: auto;
}

.skills__subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.skills__data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
    position: relative;
}

.skills__names {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.skills__icon {
    font-size: 1.5rem;
    color: #2563eb; /* Blue color for icons */
}

.skills__percentage {
    font-weight: bold;
}

.skills__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2563eb; /* Blue Progress Bar */
    border-radius: 5px;
}

.skills__html { width: 95%; }
.skills__css { width: 85%; }
.skills__js { width: 65%; }
.skills__ux { width: 85%; }
.skills{
    margin-bottom: 50px;
}
  @media screen and (min-width: 768px) {
  
    .skills__container {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 2rem;
      align-items: center;
      text-align: initial;
    }
  
  }  

.acheivemts-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.achive {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.society {
    width: 30%;
    text-align: center;
    margin-bottom: 20px;
}

.society img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.society h2 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Contact section */
.contact-page {
    padding: 50px 0;
    background-color: #ffffff;
    text-align: center;
}

.contact-page-content h1 {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-page-content p {
    font-size: 18px;
    color: #777;
}

.form-data form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.form-data input, .form-data textarea {
    width: 60%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-data input:focus, .form-data textarea:focus {
    border-color: #ffcc00;
}

.form-data button {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    width: 60%;
}

.form-data button:hover {
    background-color: #ffcc00;
}

/* Media queries for smaller screens */
@media screen and (max-width: 768px) {
    .box-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .Educationcontennt {
        flex-direction: column;
        align-items: center;
    }

    .achive {
        flex-direction: column;
    }

    .form-data input, .form-data textarea {
        width: 80%;
    }

    .form-data button {
        width: 80%;
    }
}

.owl-carousel .owl-stage {
    display: flex;
    transition: transform 25s linear !important; /* Smooth Infinite Scrolling */
    will-change: transform;
}