* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

body {
    overflow-x: hidden;
}

#main {
    width: 100%;
    height: 100%;
}

#cursor {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    z-index: 10;
}

/* =============== INTRO SECTION =============== */
.intro {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.cover-container {
    position: relative;
    width: 100%;
    height: 70%;
}

.cover-photo {
    width: 100%;
    height: 143%;
    object-fit: fill;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 143%;
    background-color: rgba(0, 0, 0, 0.7);
    /* makes it transparent dark */
}

.intro-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

/* Text styling */
.intro-heading {
    font-size: 3rem;
    margin-bottom: 10px;
}

.my-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.info-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.name {
    font-size: 2rem;
    margin-bottom: 10px;
}

.designation {
    font-size: 1.2rem;
    color: #cec4c4;
}

/* =============== EDUCATION SECTION =============== */
.education {
    padding: 80px 60px;
    background-color: #121212;
    color: #fff;
    text-align: center;
}

.education-title {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.education-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #00adb5;
    border-radius: 2px;
}

.education-details {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 40px;
}

.edu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    text-align: left;
}

.edu-card:hover {
    cursor: pointer;
    transform: translateY(-10px);
    background: rgba(0, 173, 181, 0.15);
    box-shadow: 0 12px 25px rgba(0, 173, 181, 0.2);
}

.edu-card h2 {
    font-size: 1.6rem;
    color: #00adb5;
    margin-bottom: 20px;
}

.edu-card h2 span {
    display: block;
    font-size: 1rem;
    color: #cccccc;
    margin-top: 5px;
}

.edu-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edu-card li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.edu-card li strong {
    color: #00adb5;
}

/* =============== SKILLS SECTION =============== */
.skills {
    position: relative;
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    overflow: hidden;
}

.skill-title {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.skill-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #00adb5;
    border-radius: 2px;
}

/* Skill Container */
.skill-details {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 40px;
    width: max-content;
    /* Needed for horizontal GSAP scroll */
}

/* Skill Card Design */
.skill-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    cursor: pointer;
    flex-shrink: 0;
    /* Important for smooth horizontal scroll */
}

/* Hover Effects */
.skill-card:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(0, 173, 181, 0.15);
    box-shadow: 0 12px 25px rgba(0, 173, 181, 0.25);
}

/* Skill Images */
.skill-card img {
    width: 65px;
    height: 65px;
    margin-bottom: 12px;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.5s ease;
}

.skill-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
}

/* Skill Names */
.skill-card span {
    font-size: 1rem;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.skill-card:hover span {
    color: #00adb5;
}

/* =============== PROJECTS SECTION =============== */
.projects {
    position: relative;
    background-color: #050505;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
}

.project-title {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #00adb5;
    border-radius: 2px;
}

/* Project Details Layout */
.project-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    position: relative;
}

/* Timeline Line */
.project-details::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Common Project Card Styling */
.project-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    width: 45%;
    padding: 30px 40px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    text-align: left;
    cursor: pointer;
}

/* Hover Effects */
.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(0, 173, 181, 0.15);
    box-shadow: 0 12px 25px rgba(0, 173, 181, 0.25);
}

/* Alternate Card Positioning */
.project-card:nth-child(odd) {
    align-self: flex-start;
    margin-left: 23px;
}

.project-card:nth-child(even) {
    align-self: flex-end;
    margin-right: 17px;
}

/* Decorative Dots on Timeline */
.project-card::before {
    content: "";
    position: absolute;
    top: 40px;
    width: 18px;
    height: 18px;
    background: #00adb5;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.6);
}

.project-card:nth-child(odd)::before {
    right: -58px;
}

.project-card:nth-child(even)::before {
    left: -58px;
}

/* Text Styling */
.project-card h2 {
    color: #00adb5;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.project-card p {
    color: #d6d6d6;
    line-height: 1.6;
    font-size: 1rem;
}

.project-card span {
    font-weight: bold;
    color: #00adb5;
    display: inline-block;
    margin-top: 10px;
}

.project-card ul {
    list-style: none;
    padding: 0;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
}

.project-card li::before {
    content: "▹ ";
    color: #00adb5;
}

/* =============== EXPERIENCE SECTION =============== */
.experience {
    position: relative;
    background-color: #1e1e1e;
    color: #fff;
    padding: 50px 40px;
    overflow: hidden;
}

.experience-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    position: relative;
}

.experience-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #00adb5;
    border-radius: 2px;
}

/* Road line */
.experience-details {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.road {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 0%;
    /* background: linear-gradient(to bottom, #00adb5, #00adb5); */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transform: translateX(-50%);
    z-index: 0;
}

/* Experience cards */
.experience-card {
    position: relative;
    width: 45%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px 30px;
    margin: 80px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    opacity: 0;
    cursor: pointer;
    transform: translateY(50px);
    transition: all 0.4s ease;
    z-index: 1;

}

/* Hover Effects */
.experience-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(0, 173, 181, 0.15);
    box-shadow: 0 12px 25px rgba(0, 173, 181, 0.25);
}

.experience-card.left {
    left: 0;
    text-align: left;
}

.experience-card.right {
    left: 55%;
}

.experience-card::before {
    content: "";
    position: absolute;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #00adb5;
    border-radius: 50%;
    z-index: 2;
}

.experience-card.left::before {
    right: -55px;

}

.experience-card.right::before {
    left: -55px;
}

.experience-card h2 {
    color: #00adb5;
    font-size: 1.3rem;
}

.experience-card span {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
}

.experience-card p {
    color: #ddd;
    line-height: 1.6;
    margin-top: 10px;
}

/* =============== CONTACT SECTION =============== */
.contact {
    padding: 40px;
    background: radial-gradient(circle at top left, #0a0a0a, #121212 70%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: #00adb5;
    font-weight: 600;
}

.contact-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: #00adb5;
    border-radius: 2px;
}

.contact-details {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.2);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 173, 181, 0.35);
}

.contact-left h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00adb5;
}

.contact-left p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 25px;
}

/* Resume Button */
.resume {
    padding: 12px 24px;
    background: #00adb5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease;
}

.resume:hover {
    background: #009ca5;
    transform: scale(1.05);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    margin-top: 30px;
}

.social-links a {
    color: #00adb5;
    font-size: 2.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.name-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    background: rgba(0, 173, 181, 0.15);
    border: 1px solid #00adb5;
}

textarea {
    height: 120px;
}

/* Send Button */
.send-btn {
    position: relative;
    background: #00adb5;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.send-btn:hover {
    background: #008c95;
}

/* Loader inside button */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled Button */
.send-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

/* Individual Toast */
.toast {
    background: rgba(0, 173, 181, 0.95);
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    max-width: 280px;
    word-wrap: break-word;
    text-align: center;
}

.toast.error {
    background: rgba(255, 77, 77, 0.95);
}

#go-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #555555;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 1.4rem;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 480px) {
    .send-btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .loader {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .toast {
        font-size: 0.9rem;
        padding: 12px 18px;
        border-radius: 8px;
    }
}

@media (max-width: 1024px) {
    .skill-card {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .my-info {
        flex-direction: column;
        text-align: center;
    }

    .info-text {
        width: 100%;
    }

    .education {
        padding: 60px 30px;
    }

    .education-title {
        font-size: 2.4rem;
    }

    .education-details {
        flex-direction: column;
        align-items: center;
    }

    .edu-card {
        max-width: 100%;
    }

    .skills {
        padding: 60px 20px;
    }

    .skill-card {
        width: 120px;
        height: 120px;
    }

    .skill-card img {
        width: 50px;
        height: 50px;
    }

    .skill-card span {
        font-size: 0.9rem;
    }

    .project-details::before {
        left: 10px;
    }

    .project-card,
    .project-card:nth-child(even),
    .project-card:nth-child(odd) {
        width: 90%;
        align-self: center;
        margin: 0;
        text-align: left;
    }

    .project-card::before {
        display: none;
    }

    .road {
        left: 5px;
    }

    .experience-card {
        width: 90%;
        left: 10%;
        margin-left: 50px;
        text-align: left !important;
    }

    .experience-card::before {
        left: -55px !important;
    }

    .experience-card.right {
        left: 0%;
    }

    .contact {
        padding: 60px 20px;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 380px;
    }

    .social-links {
        justify-content: center;
    }

    .toast-container {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        align-items: center;
    }

    .toast {
        width: 90%;
        max-width: 350px;
        font-size: 0.95rem;
    }
}