/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1b1b32;
    color: #fff;
}

header {
    background-color: #1b1b32;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s;
}

.navbar li a:hover {
    color: #e63946;
}

/* Hero Section */
#hero {
    padding: 80px 20px;
    background-color: #1b1b32;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Ensures that content wraps on smaller screens */
}

.hero-text {
    flex: 1; /* Takes up half of the width */
    max-width: 600px;
}

.hero-image {
    flex: 1; /* Takes up half of the width */
    text-align: right; /* Aligns the image to the right */
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e63946;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ddd;
}

.btn {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d62839;
}

footer {
    background-color: #1b1b32;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}
/* About Section Styles */
#about {
    padding: 40px 10px;
    background-color: #cbe9d1;
    color: #333;
    text-align: left;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Ensures responsiveness */
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #ddd;
    object-fit: cover;
}

.about-content {
    flex: 2;
    padding-left: 4px;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin-top: 10px;
}

.about-content h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
}

.personal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}

.detail-item {
    width: 35%;
    font-size: 1rem;
}

.detail-item span {
    font-weight: bold;
    color: #333;
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}
/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* General styling for sections */
.section {
    min-height: 100vh; /* Make each section take full viewport height */
    padding: 60px 20px; /* Add some padding */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth fade and slide-in effect */
}

.navbar {
    position: fixed;
    top: 0;
    width: 80%;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 10px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #555;
    border-radius: 5px;
}
.btn {
    display: inline-block;
    background-color: #f70404;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}
/* Skills Section Styles */
#skills {
    color :#1b1b32 ;
    padding: 80px 20px;
    background-color: #767fd7;
    text-align: center;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skills-container h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: #333;
}

.skills-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e20f40;
    margin: 10px auto 0;
}

.skill {
    margin-bottom: 20px;
    text-align: left;
}

.skill-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #555;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.skill-percentage {
    height: 100%;
    background-color: #0dc8d5;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.skill-percentage::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}
/* Contact Section Styles */
#contact {
    padding: 80px 20px;
    background-color: #f7f7f7;
    color: #333;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: #333;
}

.contact-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
}

.contact-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.contact-info {
    margin-top: 20px;
    font-size: 1rem;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

/* Optional Map Styles */
.contact-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 5px;
}
@media (max-width: 600px) {
    .nav-links {
        display: none; /* Hide the nav links on small screens */
        flex-direction: column;
        width: 100%;
        background-color: #1b1b32;
        position: absolute;
        top: 60px; /* Adjust based on navbar height */
        left: 0;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex; /* Show the nav links when toggled */
    }

    .menu-toggle {
        display: block; /* Show the menu toggle button */
    }
    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        padding: 2px 2px;
        border-bottom: 1px solid #333;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
     .intro h1 {
        font-size: 1.5rem;}
}
