/* ------------------------------------------------------ */
/* ----------------------general------------------------- */
/* ------------------------------------------------------ */
html {
    scroll-padding-top: 20px;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background-color: #f9f9f8;
    font-size: 21px;
    font-family:'Times New Roman';
    overflow-x: hidden;
}
img{
    user-select: none;
}


/* ----------------------------------------------------- */
/* ----------------------header------------------------- */
/* ----------------------------------------------------- */
header{
    width:100%;
    padding-top: 10px;
    position: fixed;
    background: rgba(255, 228, 240, 0.9);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    user-select: none;  
}
.menu-wrapper, .homepageTitle, #subtext{
    display: inline-block;
    vertical-align: middle;
}
.homepageTitle{
    font-size: 2rem;
    color: #f77fbe;
    margin: auto;
    letter-spacing: 1.5px;
    padding-right: 10px;
}
@media (max-width: 786px) {
    .homepageTitle {
        font-size: 1.5rem;
    }
}
@keyframes bounce {
    0% { transform: scaleY(0.8) translateY(0); opacity: 0; } 
    30% { transform: scaleY(1.2) translateY(-10px); opacity: 1; } 
    50% { transform: scaleY(1) translateY(0); opacity: 1; } 
    70% { transform: scaleY(1.1) translateY(-5px); opacity: 1; }
    100% { transform: scaleY(1) translateY(0); opacity: 1; }
}
.homepageTitle span {
    display: inline-block;
    animation: bounce 1s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}
.homepageTitle span:nth-child(n) {
    animation-delay: 0.1s;
}

@keyframes slide{
    from{
        transform:translateX(100%);
        opacity: 0;
    }
    to{
        transform: translateX(0%);
        opacity: 1;
    }
}
#subtext{
    color: #f77fbe;
    opacity: 0;
    font-size: 13px;
    font-style: italic;
    float: right;
    padding-right: 40px;
    padding-bottom: 8px;
    animation: slide .5s ease-out forwards;
    animation-delay: 1.2s;
}
@media (max-width: 786px) {
    #subtext {
        padding-right: 25px;
    }
}

hr{
    width: 100%;
    border-top: 1px solid #fd98cc;
    margin: 10px auto;
    margin-bottom: 0;
    margin-top: 0;
}


/* --------------------------------------------------- */
/* ----------------------menu------------------------- */
/* --------------------------------------------------- */
.menu-wrapper {
    align-items: center;
    margin: 0 15px 0 25px;
    position: relative;
}
@media (max-width: 786px) {
    .menu-wrapper {
        margin: 0 0px 0 10px;
    }
}
  
/* Hamburger icon */
.menu {
    width: 20px;
    height: 19px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 12px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-items: center;
}

/* circle shadow */
.menu:hover {
    background-color: rgba(247, 127, 190, 0.2);
}
  
.menu div:nth-child(1),
.menu div:nth-child(2),
.menu div:nth-child(3) {
    width: 100%;
    height: 3px;
    background-color: #f77fbe;
    border-radius: 3px;
}
  
/* Dropdown menu */
.dropdown {
    position: absolute;
    left: 0;
    background-color: #f9f9f8;
    border: 1.5px solid #f77fbe;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    z-index: 1000;
    min-width: 250px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
  
/* Dropdown link styles */
.dropdown a {
    padding: 0.8rem 1.3rem; 
    font-size: 1.1rem;    
    color: #333;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}
  
.dropdown a:hover {
    background-color: #f0f0f0;
}

.dropdown-section {
    padding: 0.5rem 0;
    width: 100%;
    position: relative;
}

.dropdown-section:not(:first-of-type)::before {
    content: '';
    display: block;
    height: 1px;
    width: 85%;   
    padding-top: 0;  
    margin: 0 auto;
    background-color: #eee;
}
  
.dropdown-section:first-of-type {
    border-top: none;
}
  
.dropdown-label {
    display: block;
    padding: 0.7rem 1.25rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}
  
/* Hover behavior for desktop */
@media (hover: hover) {
    .menu-wrapper:hover .dropdown {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }
}
  
/* Touch/toggle fallback */
.dropdown.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* -------------------------------------------------------- */
/* ----------------------container------------------------- */
/* -------------------------------------------------------- */
.container {
    padding-top: clamp(10px, 8vw, 130px);
    padding-bottom: clamp(10px, 7vw, 110px);
    gap: clamp(0px, 7vw, 120px);
    display: flex;
    flex-direction: row;
    justify-content: center; 
    align-items: center;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.notebook-wrapper{
    display: flex;
    flex: 1 1 600px;
    max-width: 660px;
    justify-content: center;
    align-items: top;
    padding-left: 10px;
}

.lightbulb-wrapper{
    flex: 1 1 450px; 
    height: auto;
    justify-content: center;
    align-items: top;
}


/* ------------------------------------------------------- */
/* ----------------------notebook------------------------- */
/* ------------------------------------------------------- */
#tape{
    height: 40px;
}
@font-face {
    font-family: 'handwriting';
    src: url('fonts/handwriting.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.notebook {
    user-select: none;
    position: relative;
    width: 600px;
    height: 425px;
    background-color: #fafafa;
    padding: 50px 20px 10px 40px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: .95;
}
.red-line {
    position: absolute;
    top: 0;
    left: 100px; /* Red line position near the left side */
    width: 3px;
    height: 100%;
    background-color: red;
    width: 2px;
}
.blue-lines {
    display: flex;
    flex-direction: column;
    margin-top: 50px; /* Top margin for blue lines */
    position: absolute;
    top: 50px; /* Starts right after the large top padding */
    left: 0; /* Align the blue lines to the right of the red line */
    right: 0px; /* Ensures blue lines span all the way across the white space */
}
.line {
    position: relative;
    z-index: -1;
    height: 2px;
    background-color: #66b3ff;
    margin-bottom: 30px; /* Vertical spacing between lines */
}
.line span {
    content: attr(data-text);
    position: absolute;
    top: -25.5px;
    left: 110px;
    font-size: 20px;
    white-space: pre;
    font-family: 'handwriting';
    color: 	rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    width: auto;
    opacity: 0; 
    transition: opacity 0.3s ease-in;
}
#aboutMe {
    position: absolute;
    top: -47px;
    left: 110px;
    font-size: 38px;
    font-family: 'handwriting', sans-serif;
    color: 	rgba(0, 0, 0, 0.95);
}

/* -------------------------------------------------------- */
/* ----------------------lightbulb------------------------- */
/* -------------------------------------------------------- */
#lightbulb{
    height: 370px;
    filter: grayscale(100%);
    transition: filter 1s ease;
}
#lightbulb_button{
    background-color: #f9f9f8;
    border: none;
}
#lightbulb_button:hover{
    cursor: pointer;
}

.lightbulbInfoBox{
    padding: 0 15px 0 15px;
    background-color:#f9f9f8;
    border-radius: 15px;
    border: 1.5px solid #f77fbe;
    box-shadow: 4px 5px 7px rgba(0, 0, 0, 0.03);
    margin-bottom: 5px;
    /* height: 150px; */
    max-width: 400px;
}
.lightbulbInfo{
    color: #f77fbe;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.lightbulb-table {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Ensure horizontal centering of content */
    align-items: center;    /* Ensure vertical centering */
}


/* -------------------------------------------------------- */
/* ----------------------jumbotron------------------------- */
/* -------------------------------------------------------- */
.jumbotron {
    width: 80%;
    border-radius: 10px;
    background-color: #f77fbe;
    padding: 5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 5rem auto;
    box-sizing: border-box;
}

.jumbotron-title {
    color: #f9f9f8;
    font-weight: 20;    
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 3rem;
    text-align: left;
}
  
/* Sections */
.jumbotron-sections {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
  
.section {
    flex: 1 1 250px;
    /* padding: 1.5rem; */
    text-align: center;
}
.section img{
    width: 100%;
    min-width: 100px;
    max-width: 270px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    will-change: transform;
    transform-origin: center;
}
.section img:hover{
    transform: scale(1.03);
}

.img-wrapper {
    overflow: visible;
}
.img-wrapper img {
    width: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
    transform-origin: center;
}
  .img-wrapper img:hover {
    transform: scale(1.03);
}
  
/* Responsive */
@media (max-width: 500px) {
    .jumbotron {
      padding: 2rem;
    }
  
    .jumbotron-title {
      font-size: 2rem;
    }
}


@media (max-width: 768px) {
    .jumbotron, .projects-card {
        width: 87% !important;
    }
}
/* ------------------------------------------------------- */
/* ----------------------projects------------------------- */
/* ------------------------------------------------------- */
/* Outer card */
.projects-card {
    background-color: #f7f7f6;
    width: 80%;
    padding: 4rem;
    margin: 10rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-sizing: border-box;
}
  
/* heading */
.projects-heading {
    color: #f77fbe;
    font-weight: 20;
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: 3rem;
    text-align: left;
}
  
/* Grid layout for project tiles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}
  
.project-item {
    display: flex;
    flex-direction: column;
}
.project-item-wrapper {
    perspective: 1000px;
}
  
/* tile */
.tile-link {
    text-decoration: none;
}
.title-link{
    text-decoration: none;
}
  
.tile-box {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: #f7f7f6;
    border-radius: 18px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    /* border: 2px solid #f77fbe; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.tile-preview {
    opacity: 0.85;
    width: 200%;          /* Expand the real page size */
    height: 200%;
    transform: scale(0.5); /* Zoom out 50% */
    transform-origin: top left;
    pointer-events: none;
    border: none;
}
.tile-preview::-webkit-scrollbar {
    display: none;
}
.tile-link:hover .tile-box {
    transform: translateY(-4px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.12);
}
  
/* text under tile */
.tile-title {
    margin: 0.7rem 0 0.3rem 0;
    font-size: 1.3rem;
    color: #999;
    text-transform: uppercase;
    text-align: left;
}
.tile-blurb {
    margin: 0;
    font-size: 1.2rem;
    color: #999;
    opacity: 0.7;
    text-align: left;
}
  
/* Responsive */
@media (max-width: 700px) {
    .projects-card {
      padding: 2.5rem;
    }
  
    .projects-heading {
      font-size: 2rem;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
}
  

/* ----------------------------------------------------- */
/* ----------------------footer------------------------- */
/* ----------------------------------------------------- */
footer {
    height: 100%;
    background-color: #f77fbdff;
    padding: 1.875rem 0 1.25rem 0;
}
  
.icon_table {
    text-align: center;
    user-select: none;  
}
  
.icons {
    font-size: 1.875rem;
    color: #f9f9f8;
    margin: 0 0.2rem; 
}
  
.icons:hover {
    opacity: 0.85;
}
  
.description {
    text-align: center;
    color: #f9f9f8;
}
  
.site_footer {
    font-size: 0.9375rem; 
    text-align: center;
    color: white;
    opacity: 0.9;
}