/* Basic Reset & Font Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin: 0 1rem;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.hamburger-menu {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: #f0f0f5;
    min-height: 80vh;
}
.hero-text {
    max-width: 600px;
}
.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1.2rem;
}
.notification-bar {
    margin-top: 2rem;
    font-size: 1rem;
}
.notification-bar a {
    color: #007aff;
    text-decoration: none;
}

/* Expertise Section */
.expertise {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
}
.card {
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-10px);
}
.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.card p {
    font-size: 1.1rem;
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    background-color: #f8f8f8;
    background-attachment: fixed;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.project-card {
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 60%;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 1rem;
    text-align: center;
}
.project-info h3 {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact {
    padding: 4rem 2rem;
}
form input, form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
form input:focus, form textarea:focus {
    border-color: #007aff;
}
form button {
    padding: 1rem 2rem;
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
form button:hover {
    background-color: #005bbb;
}

/* Animations for Fade-in Effects */
.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}
.fade-in-right {
    animation: fadeInRight 1s ease-out;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-size: cover;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Keyframes for animations */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
/* General Reset */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #f8f8f8;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007aff;
}

/* Notification Bar */
.notification-bar {
    background-color: #eaeaea;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    margin-top: 4rem;
}

.notification-bar a {
    color: #007aff;
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 2rem;
    background-color: #f0f0f5;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInLeft 1s ease;
}

.hero p {
    font-size: 1.2rem;
    animation: fadeInLeft 1s ease;
}

.hero-image img {
    max-width: 350px;
    border-radius: 50%;
    animation: fadeInRight 1s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease; /* Smooth transition */
}

.hero-image img:hover{
    box-shadow: 0 0 30px rgba(0, 0, 0, .7);
}

/* Social Buttons Styling */
.social-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.github { background-color: #333; }
.linkedin { background-color: #0077b5; }
.twitter { background-color: #1da1f2; }



/* Expertise Section */
.expertise {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
}

.card {
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    font-size: 1.1rem;
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    background-color: #f8f8f8;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-link {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.project-info {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    padding: 1rem;
    text-align: center;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
}

/* Courses Section */
.courses {
    padding: 4rem 2rem;
    background-color: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background-color: #eaeaea;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.course-card p {
    font-size: 1.1rem;
}

/* Dashboards Section */
.dashboards {
    padding: 4rem 2rem;
    background-color: #f8f8f8;
    text-align: center;
}

.dashboard-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    width: 220px;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

/* Dashboard Card Images */
.dashboard-card {
    position: relative;
    text-align: center;
}

.dashboard-image {
    width: 60px;
    margin-bottom: 1rem;
}



/* Contact Form */
.contact {
    padding: 4rem 2rem;
    background-color: #f0f0f5;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

form input,
form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

form button {
    padding: 1rem 2rem;
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Responsive Styles for Mobile (screen width below 800px) */
@media (max-width: 800px) {


    /* Navbar: Hamburger Menu */
    .navbar .nav-links {
        display: none;
    }

    .navbar .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    /* Navbar for Mobile */
    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f8f8f8;
    }

    /* Hero Section: Display Image Above Text */
    .hero {
        flex-direction: column;
        text-align: center;
        background-size: auto;
    }

    .hero-content {
        max-width: 100%;
        padding: 1rem;
    }

    .hero-image {
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .project-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .project-card {
        width: 100%;
        margin: 0 auto;
    }

    .notification-bar {
        margin-top: 5rem;
        font-size: 1rem;
    }
    /* Expertise and Project Sections: Single Column Layout */
    .expertise, .project-grid, .course-grid, .dashboard-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card, .project-card, .course-card, .dashboard-card {
        margin: 1rem auto;
        max-width: 90%;
    }

    /* Contact Form: Centered Layout */
    .contact form {
        max-width: 90%;
    }

}


/* Hide the checkbox by default */
#menu-toggle {
    display: none;
}

/* Style the hamburger icon */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Display the hamburger icon on mobile */
@media (max-width: 800px) {
    .menu-icon {
        display: block;
    }

    /* Initially hide the nav links on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust according to navbar height */
        left: 0;
        width: 100%;
        background-color: #f8f8f8;
        z-index: 10;
    }

    .social-buttons, form button {
        margin: 0 auto;
        justify-content: center;
        margin-top: 1rem;
    }

    /* Show the nav links when the checkbox is checked */
    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    /* Navbar link styles for mobile */
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
}