* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    background-color: #0b0b0b;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent navbar */
    backdrop-filter: blur(2px);
    /* frosted glass effect */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease-in-out;
}

#navbar nav a:hover {
    color: #00ffff;
}

.hero {
    height: 100vh;
    background-image: url('3bcc85ad-06e8-4949-958f-502bb60eda05.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* dark overlay for text visibility */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;

}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

.projects-image {
    height: 100%;
    width: 100%;
    background: #0d032b32;
    border-radius: 24px;
}

.projects {
    height: 100vh;
    width: 100%;
    background: #000000;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.projects h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    margin-top: 15px;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 1000px;
    min-height: 450px;
    background: #1a1a1a;
    border-radius: 16px;
    margin-left: 180px;

    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 60%;
    height: 70%;
    margin: 20px;
    border-radius: 24px;
    object-fit: cover;
}

.project-card h3 {
    margin: 0.2rm 0 0.5rem;
    font-size: 1.5rem;
}

.project-card p {
    font-size: 1rem;
    padding: 0 1rem 1rem;
}

.arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
}

.arrow.left {
    position: absolute;
    left: 0;
}

.arrow.right {
    position: absolute;
    right: 0;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 99;
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.about {
    width: 100%;
    min-height: 100vh;
    background-color: #2a243c;
    /* 👈 Your background image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem rem;
    box-sizing: border-box;
    position: relative;
    color: white;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Optional dark overlay for better text visibility */
    z-index: 0;
}

.about-container {
    transform: scale(1);
    transition: transform 0.3s ease;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 50px;
    background-image: url('AboutBg.png');
    display: flex;
    border-radius: 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 3rem;
    z-index: 1;
    /* Ensures content appears above overlay */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #e0e0e0;

}

.about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: #e0e0e0;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        justify-content: center;
        margin-top: 2rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }
}

.about-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}



/* Skills */
.skills {
    padding: 80px 10%;
    background-color: #0b0b0b;
    color: white;
    text-align: center;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(10, 10, 172, 0.3);
}

.skill h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #f9ffff;
}

.skill p {
    font-size: 1rem;
    color: #ccc;
}

/* Experience */
.experience {
    padding: 80px 10%;
    background-color: #000;
    color: white;
    text-align: center;
}

.experience h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    background-color: #1a1a1a;
    border-left: 4px solid #ffffff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(32, 7, 134, 0.3);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.timeline-content .date {
    font-size: 0.95rem;
    color: #aaa;
    display: block;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}



/*Education */
.education {
    position: relative;
    width: 100%;
    color: white;
    padding: 80px 0;

}

.education-bg {
    transform: scale(1);
    position: relative;
    background: url('Education.png') no-repeat center center/cover;
    border-radius: 16px;
    overflow: hidden;
    padding: 80px 10%;
    transition: transform 0.3s ease;
    margin-left: 2%;
    margin-right: 2%;
    margin-top: -40px;
    margin-bottom: -120px;

}

/*.education-bg:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}*/

.education-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    /* dark overlay for readability */
    z-index: 1;
}

.education-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    /* background: rgba(10, 10, 10, 0.85); */
}

.education h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.education-item {
    background-color: rgba(14, 14, 14, 0.9);
    padding: 20px 30px;
    border-left: 4px solid #ffffff;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(36, 4, 114, 0.3);
}

.education-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.education-item .date {
    font-size: 0.95rem;
    color: #aaa;
    display: block;
    margin-bottom: 10px;
}

.education-item p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}


/* Certificates */

.certificates {
    position: relative;
    width: 100%;
    color: white;
    background-color: rgba(0, 0, 0);
    padding: 80px 0;
    padding-top: 20;
    margin-top: 100px;
}

.certificates-bg {
    position: relative;
    background: url('Certificate.png') no-repeat center center/cover;
    border-radius: 16px;
    overflow: hidden;
    padding: 80px 10%;
    margin-left: 2%;
    margin-top: -20px;
    margin-right: 2%;

}

/* .Opacity {
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
} */
.certificates-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    /* for readability */
    z-index: 1;
}

.certificates-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.certificates h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-align: center;
}

.cert-item {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 20px 30px;
    border-left: 4px solid #ffffff;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(36, 4, 114, 0.3);
}

.cert-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.cert-item .date {
    font-size: 0.95rem;
    color: #aaa;
    display: block;
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

.certificate-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #240472;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.certificate-link:hover {
    background-color: #3b1fb2;
    transform: scale(1.05);
}


/* Resume */

.resume {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    position: relative;
    padding-bottom: 40px;
}

.download-resume {
    border-radius: 24px;
    text-align: center;
    margin: 40px;
}

.resume-btn {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 30px;
    background-color: #240472;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.resume-btn:hover {
    background-color: #3b1fb2;
    transform: scale(1.05);
}



.modern-footer {
    background-color: #0b0b0b;
    color: #ccc;
    padding: 60px 10% 20px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-right a {
    color: #fff;
    font-style: none;
}

.footer-logo {
    width: 190px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    /* Makes it perfectly oval/circular */
    margin-bottom: 15px;
    margin-top: -50px;
}

.footer-left p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-socials a {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #a874ff;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 10px;
}

.footer-center a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-center a:hover {
    color: #fff;
}

.footer-right h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-right p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    flex: 1;
}

.subscribe-form button {
    padding: 10px 20px;
    border: none;
    background-color: red;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #555;
}

.footer-right {
    color: #ccc;
}

.footer-right p {
    margin-bottom: 10px;
}

.footer-right i {
    margin-right: 8px;
    color: #ffffff;
}

.footer-socials a {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #fff;
}