/* style.css 🌟✨*/
:root {
    --bg-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #dad8d8;
    --accent: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

main {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 

  min-height: 100vh;
  min-height: 100svh; 
  width: 100%;
}

.desaturate {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.8s ease, transform 1.2s ease;
}

.typewriter {
  overflow: hidden;
  border-right: 0.35vw solid rgb(236, 229, 229);
  white-space: nowrap;
  width: 0;
  display: inline-block;
  animation:
    typing 3s steps(30, end) forwards,
    blink .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

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

/* Background :) ✨*/
.bg {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background: 
    linear-gradient(
        to bottom,
        rgba(199, 193, 193, 0) 0%, 
        rgba(13, 13, 13, 0.2) 30%,
        rgba(54, 52, 52, 0.4) 80%, 
        rgba(13, 13, 13, 1) 100% 
    ),
    url('imgs/gray.gif') left / cover no-repeat;

  pointer-events: none;
  z-index: 0;
}

.bg > * {
  position: relative;
  z-index: 1;
}

/* Navogtion Bar ;P 🌟*/
.nav-container {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-pill {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}


/* Body Section :3 🌟*/ 
.intro-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
}

.name-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.name-title span { color: #555; }

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Me :D 🌟*/ 
.about-section {
    min-height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 140px 10% 80px;
    gap: 60px;
    text-align: left;
}

.about-content {
    max-width: 520px;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-title span {
    color: #555;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-text {
    font-size: 1rem;
    color: #dbd6d6;
    line-height: 1.7;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;          
}

.about-image-box {
    width: min(500px, 80vw);
    border-radius: 6px;
    overflow: hidden;           
    transform: translateX(-5px);
    transform: translateZ(0);
}

.about-image-box:hover .desaturate {
    transition: filter 0.8s ease, transform 1.2s ease;
    filter: grayscale(40%) brightness(0.9);
    transform: scale(1.05);
}

/* Images and Animations :D ✨*/
.featured-image {
    padding: 0 5vw 10vh;
}

.image-container {
    width: 100%;
    min-height: 50vh;
    height: clamp(300px, 70vh, 700px);
    overflow: hidden;
    position: relative;
    border-radius: 5px;

    margin-top: -30vh;
}

.image-container:hover .desaturate {
    transition: filter 0.8s ease, transform 1.2s ease;
    filter: grayscale(40%) brightness(0.9);
    transform: scale(1.05);
}

/* Journal Section ;) 🌟*/
/* Journal Banner ^-^ ✨*/
.journal-banner {
    padding: 0 3vw;
    margin-top: -100px;
    margin-bottom: 60px;
}

.journal-banner:hover .desaturate {
    transition: filter 0.8s ease, transform 1.2s ease;
    filter: grayscale(40%) brightness(0.9);
    transform: scale(1.05);
}

.banner-wrapper {
    width: 100%;
    height: clamp(200px, 30vw, 300px);
    overflow: hidden;
    border-radius: 4px;

    margin-top: -32vh;
}

.banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Journal Entries :3 🌟*/
.journal-format {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 3vw;
    position: relative;
    z-index: 1;
}

.journal-entry {
    padding: 10px 0;
}

.journal-entry h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.journal-entry p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Section :D 🌟*/
.footer-container {
    width: 100%;
    z-index: 1000;
    padding: 
        16px max(12px, env(safe-area-inset-right)) 
        16px max(12px, env(safe-area-inset-left));

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.site-footer {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 15px;
    border-radius: 32px;
    overflow: hidden;

    width: 100%;
    max-width: none;

    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 120px; 
}

.footer-links{
    min-width: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.footer-social {
    justify-self: start;
    display: flex;
    flex-direction: row;
    gap: 18px;
    white-space: nowrap;
}

.footer-links a{
    display: inline-block;
    overflow-wrap: normal;
    word-break: normal;
}

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

.footer-links li,
.footer-social a {
  margin-bottom: 6px;
  gap: 12px;
}

.site-footer a {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-footer a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;

  grid-column: 1 / -1;
}

/*Media Queries for Responsiveness 🌟*/
@media (min-width: 768px) {
     .about-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 140px 10% 120px;
        gap: 60px;
        text-align: left;
    }

    .about-content {
        max-width: 520px;
    }

    .about-image-box {
        transform: translateX(-5px);
        margin-top: 0;
    }

    .about-image {
        width: 100%;
    }

    .intro-section {
        min-height: 80vh;
    }

    .journal-banner {
        margin-top: -100px;
    }
}

@media (min-width:480px) and (max-width: 768px) {
    .nav-pill {
        padding: 10px 25px;
        gap: 16px;
    }

    .intro-section {
        min-height: 70vh;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 60px 5% 120vh;
        gap: 40px;
        text-align: center;
    }

    .about-content {
        max-width: 80%;
    }

    .about-image-box {
        transform: translateX(2vw);
        margin-top: 35px;
    }

    .about-image {
        width: min(400px, 80vw);
    }

    .journal-banner {
        margin-top: -35vh;
    }

    .site-footer{
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        gap: 8px;
    }

    .footer-links a {
        display: block;
        white-space: nowrap;
        overflow:hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .footer-container {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .name-title,
    .about-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .subtitle,
    .about-subtitle {
        letter-spacing: 2px;
        font-size: 0.9rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .intro-section {
        min-height: 60vh;
        padding: 0 4vw;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 40px 5% ;
        text-align: center;
        gap: 30px;
        min-height: auto;
    }

    .about-content {
        max-width: 100%;
    }

    .about-image-box {
        transform: translateX(0);
        margin-top: 20px;
    }

    .about-image {
        width: min(300px, 80vw);
        border-radius: 6px;
    }

    .journal-banner {
        margin-top: -30vh;
    }

    .site-footer{
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        gap: 8px;
    }

    .footer-links a {
        display: block;
        white-space: nowrap;
        overflow:hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .footer-container {
        padding-top: 20px;
    }
}

