* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F5F5F5; /* Ash white */
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: #FFFFFF; /* White */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    width: 40px;
    height: auto;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.navbar h1 {
    font-size: 1.5rem;
    color: #000000;
    flex-grow: 1;
    text-align: left;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    color: #A9A9A9;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #000000;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
    background: #D3D3D3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.hero-image {
    width: 100%;
    max-width: 300px; /* Increased from 150px */
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-text {
    text-align: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Button */
.btn {
    background: rgb(65, 64, 64);
    color: #F5F5F5;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #1d1b1b;
}

/* About Section */
.about {
    background: #F5F5F5;
    min-height: 70vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem; /* Space below heading */
}

/* About Content Container */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Spacing between boxes */
    width: 100%;
    max-width: 600px; /* Matches your existing max-width */
}

/* About Box */
.about-box {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left; /* Left-align text inside boxes */
}

.about-box p {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.about-skills h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem; /* Space below h3 */
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Spacing between skill items */
}

.progress-bar {
    background-color: #bdbbbb; /* Dark grey background */
    height: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background-color: #000; /* Black fill */
    height: 100%;
    color: white;
    text-align: center;
    line-height: 20px;
    border-radius: 5px;
    width: 0; /* Start at 0 for animation */
}

/* Animation keyframes for different widths */
@keyframes load90 {
    from { width: 0; }
    to { width: 90%; }
}

@keyframes load85 {
    from { width: 0; }
    to { width: 85%; }
}

@keyframes load80 {
    from { width: 0; }
    to { width: 80%; }
}

@keyframes load75 {
    from { width: 0; }
    to { width: 75%; }
}

@keyframes load70 {
    from { width: 0; }
    to { width: 70%; }
}

@keyframes load65 {
    from { width: 0; }
    to { width: 65%; }
}

@keyframes load60 {
    from { width: 0; }
    to { width: 60%; }
}

/* Ensure icons and text align nicely */
.skills-list p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about {
        padding: 1.5rem;
    }

    .about h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-content {
        gap: 1.5rem; /* Reduced spacing on mobile */
    }

    .about-box {
        padding: 1rem;
    }

    .about-box p {
        font-size: 1rem;
    }

    .about-skills h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .skills-list {
        gap: 0.5rem;
    }
}

/* Certificates */
.certificates {
    background: #D3D3D3;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    margin-top: 1rem;
}

.cert-box {
    background: #F5F5F5;
    padding: 1.5rem;
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-image {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 1rem;
    cursor: pointer; /* Indicate clickability */
    transition: transform 0.2s ease;
}

.cert-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.cert-download-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.cert-download-btn:hover {
    background: #555;
}

.certificates h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black overlay with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%; /* Limit width */
    max-height: 90vh; /* Limit height */
    width: auto;
    height: auto;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ccc; /* Lighter shade on hover */
}

/* Projects */
.projects {
    padding: 4rem 2rem;
    background: #F5F5F5;
    text-align: center;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.project-card {
    background: #D3D3D3;
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
    cursor: pointer; /* Indicate clickability */
    transition: transform 0.2s ease; /* Smooth zoom effect */
}

.project-image:hover {
    transform: scale(1.05); /* Slight zoom on hover, like certificates */
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.project-card p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.project-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.view-btn, .demo-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.view-btn {
    background: #333;
    color: #fff;
}

.view-btn:hover {
    background: #555;
}

.demo-btn {
    background: rgb(26, 24, 24);
    color: #fff;
}

.demo-btn:hover {
    background: gray;
}

/* Contact */
.contact {
    padding: 4rem 2rem;
    background: #D3D3D3;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #333;
}

.contact-form {
    max-width: 600px; /* Limit form width */
    margin: 2rem auto 0; /* Center form with top margin */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between form elements */
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left; /* Align labels and inputs to the left */
}

.form-group label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    width: 100%; /* Full width of the container */
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007BFF; /* Blue border on focus */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 100px; /* Minimum height for textarea */
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    background: gray; /* Blue button */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: black; /* Darker blue on hover */
}

/* Footer Styles */
.footer {
    background: #A9A9A9;
    color: black;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effects */
.social-icon:hover {
    color: #000;
    transform: translateY(-3px);
}

/* Platform-specific hover colors (optional) */
.social-icon .fa-github:hover { color: #24292e; }
.social-icon .fa-linkedin:hover { color: #0077b5; }
.social-icon .fa-facebook:hover { color: #1877f2; }
.social-icon .fa-instagram:hover { color: #e4405f; }

/* Responsive design */
@media (max-width: 768px) {
    .social-links {
        gap: 15px;
    }
    
    .social-icon {
        font-size: 20px;
    }
    
    .footer {
        padding: 0.75rem;
    }
}

.social-icon:hover {
    color: #007bff; /* Hover color, adjust as needed */
}

.flash {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    line-height: 1.5;
}

.flash.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.flash.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.navbar nav ul li a.active::after {
    background-color: #000 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar ul {
        display: none; /* Hide nav links */
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0; /* Align to the right for minimal space */
        width: 200px; /* Smaller fixed width (reduced from full width) */
        background: #FFFFFF;
        padding: 0.5rem; /* Reduced padding for minimalism */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .navbar .nav-toggle:checked ~ nav ul {
        display: flex; /* Show nav links when checkbox is checked */
    }

    .navbar ul li {
        padding: 0.5rem 0; /* Minimal vertical spacing */
    }

    .hamburger {
        display: flex; /* Show hamburger icon */
    }

    .navbar-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        justify-content: space-between;
        align-items: center;
    }

    .navbar h1 {
        font-size: 1.2rem;
    }

    .hero-image {
        max-width: 150px; /* Slightly larger than before (from 100px) */
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cert-card, .project-card {
        max-width: 100%;
    }

    section {
        opacity: 0;
        transition: opacity 0.5s ease-in;
    }

    .fade-in {
        opacity: 1;
    }
}

/* Remove the hamburger animation styles */
.hamburger span {
    width: 100%;
    height: 3px;
    background: #000000;
    /* Removed transition property */
}


/* Keep the existing responsive design */
@media (max-width: 1200px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: #FFFFFF;
        padding: 0.5rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .navbar .nav-toggle:checked ~ nav ul {
        display: flex;
    }

    .navbar ul li {
        padding: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .navbar-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
}