@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary: #6A5ACD;
    --primary-dark: #473d88;
    --primary-light: #8577dd;
    --white: #ffffff;
    --gray-light: #f5f5f7;
    --text-dark: #2c2c2c;
    --gradient: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #473d88, #6A5ACD);
    z-index: 1002;
    transition: width 0.1s ease;
}

html {
    scroll-behavior: smooth;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary);
    color: var(--white);
    overflow-x: clip !important;
    max-width: 100%;
}

.heading-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;
    margin: 30px;
}

.heading1 {
    font-size: 6.8vw;
    margin-left: -5vw;
    margin-right: 3vw;
    color: #473d88;
    text-wrap: nowrap;
    font-family: 'Open Sans';
    background: var(--primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 6s ease infinite;
}

.heading-image {
    border-radius: 100%;
    width: 20vw;
    aspect-ratio: 1 / 1;
    min-width: 350px;
    max-width: 500px;
    object-fit: cover;
    object-position: top;
    margin-left: 3vw;
    border: 8px solid #6A5ACD;
}

.section1,
.section5 {
    background-color: var(--gray-light);
    background-image: linear-gradient(0deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.9) 100%),
                      url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236a5acd' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    padding: 50px;
}

.section2,
.section3 {
    margin: 50px;
}

.section2-paragraph {
    margin-bottom: -25px;
}

.section2-container,
.section3-container,
.section4-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 75px;
    margin-bottom: 75px;
}

.section2-heading,
.section3-heading,
.section4-heading,
.section6-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
    text-decoration: underline;
}

.section2-paragraph,
.section3-paragraph {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-wrap: wrap;
    margin-right: 0px;
    font-family: 'Open Sans', sans-serif;
    margin-top: -10px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1.5s ease-in-out;
}

.fly-in-active {
    opacity: 1;
    transform: translateX(0);
}


.section4-heading {
    margin-left: 50px;
}


.section4-paragraph ul {
    margin-top: 0;
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;
    padding: 0;
}

.section4-paragraph ul li {
    margin: 20px;
    font-size: clamp(10px, 80px, 150px);

    opacity: 0;
    transform: translateY(-30%);
    transition: all 1s ease-in-out;
}

.section4-paragraph ul li.show {
    opacity: 1;
    transform: translateY(0);
}

.section5 {
    color: white;
    font-family: 'Raleway', sans-serif;
    text-align: center;
}

#other-skills-list, .languages-used {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.languages-used {
    gap: 10px;
    margin-top: -5px;
}

/* Style each <li> to look like a bubble */
#other-skills-list li {
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.languages-used li {
    color: var(--primary);
    border: 3px solid var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: clamp(14px, 2vw, 20px);
    display: inline-block;
    font-weight: 700;
    transition: all 0.3s ease;
}

#other-skills-list li:hover {
    background-color: white;
    color: #6A5ACD;
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.languages-used li:hover {
    background-color: var(--primary);
    color: white;
    cursor: pointer;
}

.section5 .card {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid rgba(106, 90, 205, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1.8rem;
    margin-bottom: 20px;
    width: 90%;
}

.section5 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(106, 90, 205, 0.15);
}

.section5 .card h3 {
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section5 .card h3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.section5 .card:hover h3::after {
    transform: scaleX(1);
    transform-origin: left;
}

.section5-heading {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 40px;
    font-family: 'Raleway', sans-serif;
    color: var(--primary);
    text-align: left;
    padding-bottom: 20px;
    position: relative;
    text-decoration: none;
}

/* Squiggly section underline */
.section5-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='8' viewBox='0 0 200 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,4c20,0,20-3,40-3s20,3,40,3s20-3,40-3s20,3,40,3s20-3,40-3' fill='none' stroke='%236A5ACD' stroke-width='2'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 200px 8px;
    animation: shiftLong 3s linear infinite;
}

.section5-paragraph {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    text-wrap: wrap;
    font-family: 'Open Sans', sans-serif;
    margin-top: -10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.section5-paragraph a {
    text-decoration: none;
    color: white;
}

.section5-paragraph h3 li {
    list-style-type: none;
    margin-bottom: 10px;
    white-space: nowrap;
    display: inline-block;
}

.section5-paragraph li i:hover {
    transform: translate(2.5px, -2.5px);
    transition: all 0.2s ease-in-out;
}

.section5 img {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    border-radius: 10px;
}

.section6 {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.section6-container {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.section6-heading {
    margin-left: 30px;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-family: 'Raleway', sans-serif;
    text-decoration: underline;
    margin-bottom: 25px;
}

.section6-paragraph {
    margin-right: -5px;
    display: flex;
    flex-direction: row;
}

.section6-paragraph a {
    display: flex;
    color: white;
    text-decoration: none;
    font-size: clamp(2rem, 5vw, 3rem);
    padding: 25px;
    right: 10%;
    position: relative;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.section6-paragraph a:hover {
    color: #362e68;
    transition: all 0.2s ease-in-out;
}

/* Tooltip container */
.resume-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.resume-link:hover::after {
    content: "Click to view my resume!";
    position: absolute;
    bottom: 100%; /* Tooltip appears above the link */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

/* Animation for tooltip */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Navigation styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
    background-color: rgba(106, 90, 205, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar.visible {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 12px;
    background-color: rgba(106, 90, 205, 0.9);
    border-radius: 5px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* X animation for all screen sizes */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Slightly larger for bigger screens */
@media (min-width: 768px) {
    .hamburger {
        padding: 14px;
    }

    .bar {
        width: 30px;
        height: 3px;
        margin: 6px auto;
    }

    /* Adjusted X animation for larger size */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Hover effect */
.hamburger:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    position: static;
    width: auto;
    height: auto;
    transform: none;
    transition: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        justify-content: flex-end;
        background: transparent;
        transform: none;
        transition: none;
    }

    .navbar.visible {
        box-shadow: none;
        transform: none;
    }

    .hamburger {
        display: block;
        margin-right: 2rem;
    }

    .nav-menu {
        position: fixed;
        right: -150%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(106, 90, 205, 0.95);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 2rem 0;
    }

    .nav-link {
        font-size: 1.75rem !important;
    }
}

/* Add responsive adjustments for different screen sizes */
@media (min-width: 1200px) {
    .nav-link {
        font-size: 1.2rem;
    }

    .nav-item {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 1.5rem;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .section5-heading {
        margin-bottom: 30px;
    }
    
    .section5-heading::after {
        height: 6px;
        background-size: 150px 6px;
    }
}

@media only screen and (max-width: 932px) {
    .heading-container {
        flex-direction: column;
    }

    .heading1 {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        font-size: 10vw;
        display: flex;

    }

    .heading-image {
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
        margin-bottom: 20px;
        width: 80vw;
        border: 10px solid #6A5ACD;
    }

    .section4-paragraph ul {
        grid-template-columns: repeat(4, 1fr);
    }

    .section5 img {
        width: 60vw;
    }

    .section6-paragraph a {
        right: 10%;
        padding: 15px;
    }
}

@media only screen and (max-width: 768px) {
    .section4-paragraph ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .section6-paragraph a {
        right: 10%;
        padding: 15px;
    }
}

@media only screen and (max-width: 600px) {
    .section4-paragraph ul {
        grid-width: repeat(2, 1fr);
    }

    .section5 {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        align-items: center;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .section5-heading {
        margin-left: 50px;
    }

    .section5 .card {
        width: 80vw;
        margin-bottom: 40px;
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .section5 img {
        width: 75vw;
    }

    .section6-heading {
        margin-left: 30px;
    }
}

@media screen and (max-width: 460px) {
    .section6-paragraph {
        margin-right: 1vw;
    }
    .section6-paragraph a {
        right: 10%;
        padding: 6px;
        font-size: 1.6rem;
    }
}

@supports (-webkit-overflow-scrolling: touch) {
    body {
        overflow-x: hidden;
    }
}

/* Add this to your existing CSS */
section[id] {
    scroll-margin-top: 2rem; /* This ensures the section titles aren't hidden under the navigation */
}


.section-divider {
    height: 100px;
    background: var(--gradient);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
    margin-top: -50px;
    margin-bottom: -50px;
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-category {
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(106, 90, 205, 0.1);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@keyframes shiftLong {
    from { background-position: 0 0; }
    to { background-position: 200px 0; }
}

/* Project Section Styles */
.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(106, 90, 205, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.card img {
    width: 100%;
    height: auto;
    max-width: 780px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

/* Make the entire card a clickable link */
.card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover effects */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(106, 90, 205, 0.2);
}

/* For cards without links */
.card.no-link {
    cursor: default;
}

/* Responsive adjustments */
@media (min-width: 1024px) {
    .card h3 {
        font-size: clamp(2.5rem, 4.5vw, 3.2rem);
    }

    .card h3 i {
        font-size: 1em;
    }
}

@media (min-width: 1440px) {
    .card h3 {
        font-size: clamp(3rem, 5.5vw, 3.8rem);
    }

    .card h3 i {
        font-size: 1.1em;
    }
}

/* Icon styles */
.card h3 i {
    font-size: 0.9em;

    transform: translateX(-5px); /* Start further left */
    transition: all 0.4s ease; /* Slightly slower for smoother effect */
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    margin-left: px;
}

/* Hover effect */
.card:hover h3 i {
    opacity: 1;
    transform: translateX(0);
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
    box-sizing: border-box;
}

.slideshow-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.project-slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(106, 90, 205, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-button.prev {
    left: 20px;
}

.slideshow-button.next {
    right: 20px;
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(106, 90, 205, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }

    .card {
        max-width: 100%;
    }
    
    .card img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .card img {
        max-height: 250px;
        zoom: 50%;
    }

    .slideshow-button.prev {
        left: 5px;
    }

    .slideshow-button.next {
        right: 5px;
    }

    .slideshow-wrapper {
        width: 130% !important;
        margin-left: -15% !important;
    }
}


