

/***********************************************************************/
/*****                        PAGE FUNCTIONS                       *****/
/***********************************************************************/


/* Setting background image, scoll behavior, and default font & color */
html {
    background-image: url("https://i.pinimg.com/originals/09/01/e5/0901e529a555493ba5b58ba6579db104.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    scroll-behavior: smooth;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Making links appear white in color */
a:link {
    text-decoration: none;
    color: inherit;
}

/* Underline text when hovering over link */
a:hover {
    text-decoration: underline;
}

/* Making visited links remain white in color */
a:visited {
    color: inherit;
}

/* Links to external sources */
.text-link {
    color: #66ccff !important;
}

    .text-link:hover {
        color: white !important;
        text-decoration: underline;
        transition: color 0.3s ease;
    }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #66ccff;
    border-bottom: 3px solid #66ccff;
    display: inline-block;
    padding-bottom: 0.3rem;
    font-weight: 700;
}

.spacer {
    height: 40px;
}



/***********************************************************************/
/*****                   Opening Page Functions                    *****/
/***********************************************************************/


/* Creating and customizing navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.8); /* dark background for visibility */
    display: grid;
    grid-template-columns: 500px auto 500px;
    border-bottom: 2px solid white;
    text-align: center;
    padding: 10px 0;
    border-radius: 12px;
}

/* Setting behavior of page navigating */
.nav {
    font: bold;
    scroll-behavior: smooth;
    font-size: 20px;
}

/* Full-page center container */
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* full viewport height */
    text-align: center;
}

/* Block link */
.intro-block {
    text-decoration: none;
    color: inherit;
}

/* Name */
.intro {
    font-size: 2.5rem;
    color: #66ccff;
    margin: 0;
    transition: text-decoration 0.3s ease, color 0.3s ease;
    text-align: center;
    text-decoration: underline;
    padding-top: 4%;
}

/* Subtitle */
.sub-intro {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-top: 5px;
    transition: color 0.3s ease;
}

/* Hover effects */
.intro-block:hover .intro {
    text-decoration: underline;
    color: #ffffff;
}

.intro-block:hover .sub-intro {
    color: #ffffff;
}

/* Setting parameters for name at top of the page */
.intro {
}

/* Customizing mail, linkedin, resume icons */
.icons {
    text-align: center;
    width: 50px;
}

/* Setting parameters for title under name at top of the page */
.sub-intro {
    text-align: center;
    color: white;
}

.icon-bar {
    display: flex;
    justify-content: center;
    gap: 50px; /* horizontal spacing between items */
    padding: 10px 0;
}

.icon-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .icon-text-group img {
        object-fit: contain;
        width: auto;
        margin-bottom: 6px; /* consistent spacing below all icons */
        max-width: 50px;
        transition: transform 0.2s ease;
    }

    .icon-text-group:hover img {
        transform: scale(1.1);
    }

.icon-label {
    font-size: 12px;
    color: #66ccff;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.icon-text-group:hover .icon-label {
    text-decoration: underline;
}


/***********************************************************************/
/*****                   About Section Functions                   *****/
/***********************************************************************/

.education-card {
    background: linear-gradient(135deg, transparent, #2774AE, #1E4F7A);
    padding: 2.2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.college-logo img {
    max-width: 250px;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 0 4px #66ccff);
}

.college-name a {
    font-size: 1.55rem;
    color: white;
}

    .college-name a:hover {
        text-decoration: underline;
    }

/* Degree layout */
.degree-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.degree {
    max-width: 260px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.6rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.degree:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Uniform vertical spacing */
.degree-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
}

/* Typography */
.degree-title {
    font-size: 1rem;
    line-height: 1.3;
}

.degree-type {
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFD700; /* gold for readability */
}

.degree-date {
    margin-top: -0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.degree-honor {
    font-size: 0.9rem;
    color: white;
    text-decoration: underline;
}

.degree-date strong {
    color: #fff;
}

/* Thesis */
.thesis {
    margin-top: 0.6rem;
}

.thesis-label {
    text-decoration: underline;
    font-weight: 500;
    margin-right: 0.2rem;
    color: white;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #FFD700, transparent); /* gold divider */
    margin: 2.5rem 0 0.5rem;
}

/* Conference */
.conference-talks {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.8rem;
}

.conference-entry {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
}

/***********************************************************************/
/*****                    Experience Functions                    *****/
/***********************************************************************/

.experience-titles {
    text-decoration: underline;
    font-size: 20pt;
    font-weight: bold;
    color: #66ccff;
}

/* Setting parameters for general photos */
.general-photo {
    max-width: 100%;
    height: auto;
    width: auto;
}

/* Centering general photos vertically and horizontally */
.center-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
}




/***********************************************************************/
/*****                 Media Appearances Functions                 *****/
/***********************************************************************/

.appearances-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

/* Media appearance card */
.appearances-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid white;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 1.5rem 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appearances-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 750px;
    margin-bottom: 1rem;
}

.appearances-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.appearances-card img,
.appearances-card video {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

    .appearances-card img:hover,
    .appearances-card video:hover {
        transform: scale(1.05);
    }


/* Anchor for clickable appearance */
.appearances-link {
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: inline-block;
    width: auto;
    max-width: 100%;
}

/* Image with hover effect */
.appearances-img {
    width: 100%;
    max-width: 750px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .appearances-img:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    }

/* Text */
.appearances-title {
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #66ccff;
}

.appearances-date {
    font-size: 14px;
    color: #ccc;
}

.appearances-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eee;
    text-align: center;
}




/***********************************************************************/
/*****                   PARAGRAPH/TEXT FUNCTIONS                  *****/
/***********************************************************************/


/* Setting parameters for general text boxes*/
.general-text-boxes {
    padding: 30px;
    position: center;
    border: 1px solid white;
    margin: auto;
    line-height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: auto;
    max-height: 100%;
}

/* Setting parameters for experience block paragraphs */
.paragraphs {
    padding-top: 15px;
    font-size: 13pt;
}



/***********************************************************************/
/*****                     DIVISION FUNCTIONS                      *****/
/***********************************************************************/


/* 2 division horizontal grid pattern with space between */
.columns2-uneven {
    display: grid;
    grid-template-columns: minmax(50px, 500px) 50px minmax(50px, 5000px);
    padding: 50px;
}

/* 2 division horizontal grid pattern with space between */
.columns2-even {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    padding: 50px;
    text-align: center;
    vertical-align: middle;
    margin: 0;
    overflow-y: auto;
    max-height: 100%;
}



/***********************************************************************/
/*****                     SLIDESHOW FUNCTIONS                     *****/
/***********************************************************************/

/* Experience Project Slide */
.project-slide {
    display: none;
    animation: fade 1.5s;
    height: auto;
    overflow: hidden;
    position: relative;
    border: 1px solid white;
    border-radius: 12px;
}

/* Nav dots below each experience project */
.project-dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 5px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .project-dot.active, .project-dot:hover {
        background-color: dimgray;
    }



/* Centers slideshow within division */
.slideshow-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Helps with the dots */
    width: 100%;
}

/* Slideshow container */
.slideshow-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: auto;
    width: 100%;
}

.slideshow-images {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.image-boxes {
    max-width: 800px;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    text-align: center;
    padding: 30px;
    border: 1px solid white;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.mySlides {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Next & previous buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s;
    background-color: dimgray;
    opacity: 0.5;
    border-radius: 3px 0 0 3px;
}

/* Position the prev and next buttons on each side */
.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
        background-color: black;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot-container {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    display: block;
}

.dot.active, .dot:hover {
    background-color: dimgray;
}

/* Image fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}
