@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik+80s+Fade&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik+80s+Fade&family=Stack+Sans+Notch:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik+80s+Fade&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Stack+Sans+Notch:wght@200..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
}

.hidden {
    display: none;
}

.currbtn {
    border-bottom: 2px solid black;;
}

nav{
    width: 100%;
    height: 10vh;
    background-color: whitesmoke;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 3rem;
    position: fixed;
    top: 0;
    z-index: 100;
}

nav div p {
    text-decoration: none;
    color: black;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: "Rubik 80s Fade", system-ui;
    font-weight: 580;
    font-style: normal;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 30%; */
    gap: 1rem;
}

nav ul li {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    /* font-weight: bold; */
    font-family: "Stack Sans Notch", sans-serif;
    font-optical-sizing: auto;
    font-weight: 580;
    font-style: normal;
    padding: 5px 10px;
    cursor: pointer;
    /* position: absolute; */
    /* transition: border-bottom 0.3s ease; */
    /* margin-left: 1em; */
}

nav ul li:hover {
    border-bottom: 2px solid black;
    cursor: pointer;
    /* transition: border-bottom 0.3s ease; */
}

nav button {
    padding: 10px 20px;
    border: none;
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 580;
    font-style: normal;
    transition: background-color 0.3s ease;
}

nav button:hover {
    background-color: rgba(0, 0, 0, 0.877);
    transition: background-color 0.3s ease;
}

header {
    background-color: rgba(0, 0, 0, 0.301);
    width: 100%;
    height: 100vh;
    display: flex;
}

header p {
    position: absolute;
    top: 30.5%;
    left: 10%;
    font-size: 1.5rem;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 380;
    font-style: normal;
    width: 50%;
}

header p span {
    font-size: 1.7rem;
    font-weight: bold;
}

#img1 {
    width: 20%;
    height: 39%;
    position: absolute;
    right: 10%;
    top: 28.5%;
    border-radius: 50%;
}

.projects {
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    padding: 7rem 5rem 7rem;
}

.cards {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 5px solid rgba(0, 0, 0, 0.61);
    background-color: rgba(0, 0, 0, 0.301);
    height: 80vh;

    /* Enable vertical scroll */
    overflow-y: auto;

    /* Disable horizontal scroll */
    overflow-x: hidden;

    /* Allow elements to wrap vertically */
    white-space: normal;
}

.project {
    margin: 20px 0 10px 10px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.692);
    padding: 10px 15px;
    background-color: whitesmoke;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 380;
    font-style: normal;
}

.project .card {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid rgba(0, 0, 0, 0.274);
    align-items: center;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.project .card p {
    max-width: 90%;
    font-size: 1.0rem;
    font-weight: bold;
}

.project .card a {
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 580;
    font-style: normal;
    transition: background-color 0.3s ease;
}

.project .card a:hover {
    background-color: rgba(0, 0, 0, 0.877);
    transition: background-color 0.3s ease;
}

/* .education {
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    padding: 7rem 5rem 7rem;
}

.contact {
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    padding: 7rem 5rem 7rem;
} */

/* Education Section Styles */
.education {
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    padding: 7rem 5rem 7rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: "Source Code Pro", monospace;
}

table th {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.3s ease;
}

table tr:last-child td {
    border-bottom: none;
}

/* Skills Section */
.skills {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills p {
    font-family: "Source Code Pro", monospace;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

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

.skills li {
    font-family: "Source Code Pro", monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.skills li:last-child {
    border-bottom: none;
}

.skills span {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
    display: inline-block;
    /* min-width: 200px; */
}

/* Contact Section Styles */
.contact {
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    padding: 7rem 5rem 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact h1 {
    font-family: "Source Code Pro", monospace;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

form {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    align-items: center;
}

form label {
    /* display: block; */
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

form input,
form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Source Code Pro", monospace;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

form textarea {
    height: 150px;
    resize: vertical;
}

form button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

form button:active {
    transform: translateY(0);
}

form ul {
    list-style: none;
    padding: 0;
    margin-top: 2.5rem;
    display: flex;
    width: 100%;
    justify-content: space-between;
    /* gap: .6rem; */
    /* I want fixed inner gap */

}

.contact ul li {
    padding: 10px 20px;
    border: none;
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 580;
    font-style: normal;
    transition: background-color 0.3s ease;
    /* margin-left: 2rem; */

}

.contact ul li a {
    text-decoration: none;
    color: white;
}

.contact ul li:hover {
    background-color: rgba(0, 0, 0, 0.877);
    transition: background-color 0.3s ease;
}

#responseMsg {
    margin-top: 1rem;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 580;
    font-style: normal;
    color: green;
    text-align: center;
}

.hamburger {
    margin-top: 14px;
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: black;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* Rotate animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ---------------------- MOBILE SLIDE MENU ---------------------- */

@media (max-width: 768px) {

    nav {
        padding: 12px 1.2rem;
    }

    /* Hide UL initially */
    nav ul {
        position: fixed;
        top: 0px;
        right: -768px; /* hidden */
        height: 100vh;
        width: 250px;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 2rem;
        /* gap: 1rem; */
        box-shadow: -4px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }

    /* Slide menu when active */
    nav ul.active {
        right: 0; /* slide into view */
        /* margin: 10px; */
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        /* margin-bottom: 100px; */
    }

    /* Hide desktop resume button */
    /* nav button {
        display: none;
    } */

    .cards {
        margin-top: 5rem;
        height: 90%;
    }
}

/* Responsive Design */
@media (max-width: 1350px) {
    nav ul {
        width: 45%;
    }
    
    header p {
        width: 55%;
        left: 8%;
    }
    
    #img1 {
        width: 22%;
        right: 8%;
    }
    
    .projects,
    .education,
    .contact {
        padding: 6rem 4rem;
    }

    .education,
    .contact {
        height: 100%;
    }

    .contact ul {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    nav ul {
        width: 50%;
    }
    
    header p {
        width: 60%;
        font-size: 1.3rem;
        left: 5%;
    }
    
    header p span {
        font-size: 1.5rem;
    }
    
    #img1 {
        width: 25%;
        height: 35%;
        right: 5%;
    }
    
    .projects,
    .education,
    .contact {
        padding: 6rem 3rem;
    }
    
    .cards {
        height: 70vh;
    }

    .contact ul {
        width: 100%;
    }
}

@media (max-width: 900px) {
    nav ul {
        width: 60%;
    }
    
    nav ul li a {
        font-size: 1.3rem;
        padding: 5px 8px;
    }
    
    header p {
        width: 70%;
        left: 5%;
        font-size: 1.2rem;
    }
    
    header p span {
        font-size: 1.4rem;
    }
    
    #img1 {
        width: 28%;
        height: 32%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 5px 1.5rem;
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    nav p {
        margin-bottom: 0.5rem;
    }
    
    nav p a {
        font-size: 2.2rem;
    }
    
    nav ul {
        width: 100%;
        /* justify-content: space-around; */
        margin: 1rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 7rem;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 5px 10px;
    }
    
    nav button {
        margin-top: 0.5rem;
        padding: 8px 16px;
        font-size: 1.1rem;
    }
    
    header {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 8rem 2rem 3rem;
        text-align: center;
        position: relative;
    }
    
    header p {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }
    
    header p span {
        font-size: 1.3rem;
    }
    
    #img1 {
        position: static;
        width: 200px;
        height: 200px;
        margin: 0 auto;
        border-radius: 50%;
    }
    
    .projects,
    .education,
    .contact {
        padding: 5rem 2rem;
        height: auto;
        min-height: 100vh;
    }
    
    .cards {
        height: 60vh;
        padding: 1rem;
    }
    
    .project .card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 1rem;
    }
    
    .project .card p {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .project .card a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
    
    .skills p {
        font-size: 1.8rem;
    }
    
    .skills li {
        font-size: 1rem;
    }
    
    .skills span {
        min-width: 150px;
    }
    
    form {
        padding: 2rem;
        width: 90%;
    }
    
    .contact ul {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .contact ul li {
        padding: 8px 16px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    nav p a {
        font-size: 2rem;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        padding: 4px 8px;
    }
    
    header {
        padding: 7rem 1.5rem 2rem;
    }
    
    header p {
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 10px;
    }
    
    header p span {
        font-size: 1.2rem;
    }
    
    #img1 {
        width: 180px;
        height: 180px;
    }
    
    .projects,
    .education,
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .cards {
        height: 50vh;
        padding: 0.8rem;
    }
    
    .project {
        margin: 10px 0;
        padding: 8px 10px;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    table th,
    table td {
        padding: 0.6rem 0.4rem;
    }
    
    .skills {
        padding: 1.5rem;
    }
    
    .skills p {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .skills li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .skills span {
        min-width: 120px;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .contact h1 {
        font-size: 1.8rem;
    }
    
    form {
        padding: 1.5rem;
        width: 95%;
    }
    
    form label {
        font-size: 1rem;
    }
    
    form input,
    form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    form button {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .contact ul {
        width: 100%;
        gap: 0.8rem;
    }
    
    .contact ul li {
        padding: 6px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem;
    }
    
    nav p a {
        font-size: 1.8rem;
    }
    
    nav ul {
        gap: 0.3rem;
        margin-top: 0;
    }
    
    nav ul li {
        margin-top: 1rem;
    }
    
    nav button {
        padding: 6px 12px;
        font-size: 1rem;
    }
    
    header {
        padding: 6rem 1rem 2rem;
    }
    
    header p {
        font-size: 0.9rem;
        margin-top: 4.4rem;
    }
    
    header p span {
        font-size: 1.1rem;
    }
    
    #img1 {
        width: 150px;
        height: 150px;
    }
    
    .projects,
    .education,
    .contact {
        padding: 3rem 1rem;
    }

    .projects {
        padding-top: 6rem;
    }
    
    .cards {
        height: 70vh;
    }
    
    .project .card p {
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.75rem;
        margin-top: 3rem;
    }
    
    .skills p {
        font-size: 1.4rem;
    }
    
    .skills li {
        font-size: 0.85rem;
    }

    .education {
        padding-top: 10rem;
        background-color: rgba(0, 0, 0, 0.301);
    }

    .contact {
        padding-top: 11rem;
        background-color: rgba(0, 0, 0, 0.301);
    }
    
    .contact h1 {
        font-size: 1.6rem;
    }
    
    form {
        padding: 1rem;
    }
    
    .contact ul li {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    nav p a {
        font-size: 1.6rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    header p {
        font-size: 0.85rem;
    }
    
    #img1 {
        width: 130px;
        height: 130px;
    }
    
    .skills span {
        min-width: 100px;
    }
}

/* Scrollbar Styling for Webkit Browsers */
.cards::-webkit-scrollbar {
    width: 8px;
}

.cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cards::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.cards::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background-color: rgba(0, 0, 0, 0.2);
    color: inherit;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid rgba(0, 0, 0, 0.7);
    outline-offset: 2px;
}
