/* Body style */
body {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background: #F0EBFF;  /* light purple background */
    margin: 0;
    font-size: 25px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between; /* Align items right */
    padding: 20px 50px;
    background: linear-gradient(to bottom, rgba(245,242,255,0.9), rgba(245,242,255,0.6));
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Nav links (right-aligned row) */
nav ul.nav-right {
    display: flex;
    flex-direction: row-reverse;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 19px;
}

nav ul.nav-right li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 19px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul.nav-right li a:hover,
nav ul.nav-right li a.active {
    font-weight: 700;
    color:#663399; /* highlight color */
}

/* Left name + degree */
.nav-left {
    display: flex;
    flex-direction: row;
    line-height: 1.2;
    align-items:first baseline;
    gap: 120px;
}

.nav-name {
    font-size: 27px;
    font-weight: 700;
    color: #151317;
}

.nav-degree {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #663399;
}



/* Sections */
.section {
    padding: 100px 50px;       /* spacing inside section */
    scroll-margin-top: 100px;  /* offset for sticky nav */
}

/* Home section typing animation */
.home h1 {
    font-size: 50px;
    font-family:initial;
    color:darkviolet;
    text-align: center;
    border-right: 3px solid #663399; /* cursor effect */
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(25, end) forwards, blink 0.5s step-end infinite;
}

/* Typing animation */
@keyframes typing {
    from { width: 0; }
    to { width: 355px; } /* adjust to text length */
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Headings inside other sections */
.section h2 {
    color: #663399;
    font-size: 36px;
    margin-bottom: 40px;
}

/* Paragraphs inside sections */
.section p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Search in navbar */
.search-wrapper {
    display: flex;
    align-items: center;
}

#search-icon {
    cursor: pointer;
}

#search-input {
    display: none;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}
#search-input.active {
    display: inline-block;
}


/* When active */
#search-input.active {
    width: 160px;
    opacity: 1;
}

/*skills section */
.skills {
    margin-top: 50%;
    background: #fffaf0;
    padding: 5 px;
    margin: 120px auto;
    width: 100%;
}

.skills-title {
    text-align: center;
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #000;
    letter-spacing: 2px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 90%;
    margin: auto;
}

.skills-card {
    padding: 40px 30px;
    text-align: center;
}

.skills-card:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.skills-icon {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.skills-card h3 {
    font-size: 25px;
    font-weight: 400px;
    margin-bottom: 15px;
}

.skills-card p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 10;
    color: #444;
}

/* FOOTER */
.site-footer {
    margin-top: 120px;
    padding: 40px 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

/* Mail on left */
.footer-left a {
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

/* Center icons */
.footer-center {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-center img {
    width: 40px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-center img:hover {
    opacity: 1;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        order: 2;
    }

    .footer-center {
        order: 1;
    }
}


/* About page layout */
.about-section {
    display: flex;
    justify-content: flex-end;   /* move content to right */
    padding-top: 30px
}

.about-content {
    max-width: 600px;           /* readable width */
}
.about-content h2 {
    margin-top: 0;
}

/* Social profile icons */
.social-links {
    margin-top: 25px;
    width: 100%;
    height: 13px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.social-links img {
    margin-top: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%; /* circular profile look */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(102,51,153,0.35);
}
.section-divider {
    padding-top: 10px;
    border:aliceblue;
    height: 130px;
    width: 100%;
    margin: 15px 0;
    background: white;

}

/* Mail section in the about page */
.contact-mail {
    text-align: left;
    margin-left: 10px;
    margin: 6px 0 20px 0;
    font-size: 18px;
    font-weight: 20%;
    color:#663399;
    margin-left: 15px;
}
.contact-mail a {
    color: #663399;
    text-decoration: none;
    font-weight: 600;
}

.contact-mail a:hover {
    text-decoration: underline;
}

/* Academic Journey Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 30px auto 40px auto;
    z-index: 0;
}
.container {
    padding: 10px 40px;
    position: relative;
    width: 38%;
    border-radius: 8px;
    z-index: 2;
}
.text-box {
    padding: 20px 30px;
    background:lavenderblush;
    position: relative;
    border-radius: 20px;
    font-size: 15px;
    border-style:groove;
    line-height: 1.6;
}
.text-box p{
    margin: 6px 0;
}

.left-container {
    left: 6.2%;
}

.right-container {
    left: 50%;
}

.container img {
    position: absolute;
    width: 60px;
    height: 55px;
    border-radius:50%;
    right: -20px;
    top: 32px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.right-container img{
    left: -27px
}

.timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #663399;
    top: 0;
    left: 50%;
    margin-left: -3px;
    border:black;
    z-index: 1;
    animation: moveline 3s linear forwards;
}
@keyframes moveline {
    0%{
        height:0;
    }
    100% {
        height: 100%;
    }

}
.text-box h2 {
    font-weight: 600;
}
.text-box span{
    font-style: oblique;
}

.left-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid #fff;
    right: -8px;
}

.right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid #fff;
    left: -10px;
}

/* Education page */

/* Portfolio section */
.portfolio {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 40px;
}

.portfolio-title {
    font-size: 35px;
    font-weight: 500px;
    margin-bottom: 40px;
    color: #151317;
    margin-left: 510px;
    margin-bottom: 40px;

}

/* Project row */
.projects {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    flex-direction: row;
}

/* Individual card */
.project-card {
    margin-left: 20px;
    width: 550px;
    height: 500px;
    background: #ebecee;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    row-gap: 5px;
}

.project-card:hover {
    transform: translateY(-6px);    
    box-shadow: 0 16px 35px rgba(0,0,0,0.18);
}

/* Image */
.project-images {
    display: flex;
    gap: 5px;
    padding: 12px;
    height: 250px;
}

.project-images img {
    margin-top: 10px;
    margin-right: 9px;
    margin-left: 10px;
    width: 45%;
    height: 105%;
    object-fit:inherit;
    border-radius: 8px;
    flex: 1;
}

/* Text */
.project-info {
    padding: 18px 20px 22px;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #151218;
}

.project-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

/* Link */
.project-link {
    font-weight: 600;
    color: #663399;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-btn {
    display: inline-block;
    margin-top: 15px;
    margin-left: 150px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: #040305;
    border: 2px solid #0e0a13;
    background: transparent;
    text-decoration: none;
    border-radius: 10px;

    transition: all 0.3s ease;
}

.project-btn:hover {
    background: #1313127d;
    color: #e8e3e8;
    transform: translateY(-2px);
}

/* Project pages */

.project-page {
    background-color: whitesmoke;
    display: flex;
    justify-content: center;
    padding: 80px, 20px;
}

.project-box {
    background: #f4f1fa;
    margin-top: 40px;
    padding: 50px 40px 60px;
    max-width: 1100px;
    width: 100%;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.project-gallery {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
}   

.slider-window {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    overflow: hidden;
    border-radius: 14px;
    background: white;
}
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 12, 13, 0.85);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: rgba(102, 51, 153, 1);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.left {
    left: -22px;
}

.slider-btn.right {
    right: -22px;
}

.project-title {
    font-size: 28px;
    margin: 30px 0 25px;
    color: #2a1e3f;
    font-weight: 600;
}

.project-main-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #663399;
    border: 2px solid #663399;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-main-btn:hover {
    background: #663399;
    color: #fff;
    transform: translateY(-2px);
}







/* ART SECTION */

.video-section {
    display: flex;
    align-items: flex-end;
    gap: 45px;
    max-width: 1000px;
    padding-top: 50%;
}

.video-text p{
    font-size: 30px;
    font-weight: 75%;
    font-family: 'Courier New', Courier, monospace;
    padding-bottom: 400px;
    display: inline-block;
    margin: 0;
}

.video-section iframe {
    margin-left: 50px;
    height: 500px;
    width: 720px;
    padding-bottom: 20px;
}


