/* ========================================
   RESET AND BASE STYLES
   ======================================== */

/* Universal reset to remove default browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body styling with background texture and noise overlay */
body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: url('lightpurpletexture.jpg') center/contain repeat;
    min-height: 100vh;
    color: #FFFFFF;
    line-height: 1.6;
    position: relative;
}

/* Noise texture overlay for subtle texture effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('noise.jpeg');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 9999;
}

/* ========================================
   HEADER NAVIGATION
   ======================================== */

/* Main header container */
.header {
    background: transparent;
    padding: 8rem 0 2rem 0;
    position: relative;
    z-index: 1000;
}

/* Header content wrapper with flexbox layout */
.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 30;
    height: 100%;
}

/* Navigation link styling */
.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 2.5rem;
    font-family: 'Bauer Bodoni', serif;
    text-transform: lowercase;
    position: relative;
    z-index: 40;
}

/* Header logo container with full-width background */
.header-logo {
    display: flex;
    align-items: center;
    background: #d6b1ef;
    padding: 1rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 100%;
}

/* Header logo image with extended height */
.header-logo-img {
    height: 500px;
    width: auto;
    position: relative;
    z-index: 20;
    margin: -200px 0;
}

/* ========================================
   HERO SECTION
   ======================================== */

/* Hero section container */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
    margin: 0 auto;
    background: transparent;
}

/* Hero content box with layered shadow effect */
.hero-content {
    position: relative;
    background: #d6b1ef;
    padding: 2rem 6rem;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    box-shadow: 16px 16px 0px #fff7b3;
}

/* Main hero title styling */
.hero-title {
    font-family: 'Bauer Bodoni', serif;
    font-size: 10rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: lowercase;
}

/* Italic styling for "language" in hero title */
.hero-title em {
    font-style: italic;
}

/* ========================================
   WORD OF THE DAY SECTION
   ======================================== */

/* Word section with dune background image */
.word-section {
    padding: 6rem 2rem;
    width: 100%;
    margin: 4rem auto 0 auto;
    background: transparent;
    background-image: url('dune.png');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 10;
    min-height: 80vh;
}

/* Dark overlay for better text readability */
.word-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Container for word and definition blocks */
.word-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 12rem;
}

/* Left block: Word and pronunciation */
.word-block {
    position: relative;
    background: #d6b1ef;
    padding: 4rem;
    flex: 1;
    text-align: center;
    box-shadow: 16px 16px 0px #fff7b3;
    z-index: 3;
}

/* Word title styling */
.word-title {
    font-family: 'Bauer Bodoni', serif;
    font-size: 5rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

/* Word pronunciation styling */
.word-pronunciation {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.4rem;
    color: #FFFFFF;
    font-style: italic;
    font-weight: 400;
}

/* Right block: Definition with logo */
.definition-block {
    position: relative;
    background: #d6b1ef;
    padding: 4rem;
    flex: 1;
    box-shadow: 16px 16px 0px #fff7b3;
    z-index: 3;
}

/* Logo in definition block */
.definition-logo-img {
    position: absolute;
    top: 2rem;
    left: 2rem;
    height: 60px;
    width: auto;
    z-index: 2;
}

/* Definition text styling */
.definition-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2rem;
    color: #FFFFFF;
    line-height: 1.7;
    margin-left: 6rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* ========================================
   ABOUT ME SECTION
   ======================================== */

/* About section container */
.about-section {
    padding: 0 2rem 8rem 2rem;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: 12rem;
    min-height: 100vh;
}

/* Spacing element to push content down */
.about-section::before {
    content: '';
    display: block;
    height: 18rem;
}

/* About section title with absolute positioning */
.about-section .section-title {
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

/* General section title styling */
.section-title {
    font-family: 'Bauer Bodoni', serif;
    font-size: 5rem;
    font-weight: 400;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: -3rem;
    text-transform: lowercase;
    position: relative;
    z-index: 5;
}

/* About container with flexbox layout */
.about-container {
    display: flex;
    gap: 4rem;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0 0.5rem;
    flex-direction: row;
    min-height: 100vh;
    margin-top: 6rem;
}

/* About text block (left side) */
.about-text-block {
    position: relative;
    background: #d6b1ef;
    padding: 3rem;
    flex: 1;
    box-shadow: 16px 16px 0px #fff7b3;
    z-index: 3;
    min-height: 600px;
    width: 60%;
    overflow: visible;
    align-self: flex-end;
}

/* About text styling */
.about-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2rem;
    color: #FFFFFF;
    line-height: 1.7;
    font-weight: 400;
}

/* About image container (right side) */
.about-image-block {
    position: relative;
    background: transparent;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    height: 400px;
    width: 40%;
    padding-right: 2rem;
    margin-top: 10rem;
    transform: translateY(0);
}

/* About image styling with layered shadow effect */
.about-image {
    width: 1000px !important;
    height: 900px !important;
    border-radius: 0;
    position: relative;
    object-fit: cover;
    background: #d6b1ef;
    padding: 1rem;
    box-shadow: 25px 25px 0px #fff7b3;
    min-width: 1000px;
    min-height: 900px;
}

/* First about image with slight offset */
.about-image-1 {
    transform: translate(10%, -10%);
    z-index: 2;
}

/* Second about image with diagonal offset */
.about-image-2 {
    transform: translate(-10%, 10%);
    z-index: 1;
}

/* ========================================
   MISSION SECTION
   ======================================== */

/* Mission section container */
.mission-section {
    padding: 8rem 2rem;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 10;
    transform: translateY(8rem);
}

/* Mission container with flexbox layout */
.mission-container {
    display: flex;
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

/* Individual mission block */
.mission-block {
    position: relative;
    background: #d6b1ef;
    padding: 4rem;
    flex: 1;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 16px 16px 0px #fff7b3;
}

/* Mission text styling */
.mission-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2rem;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and smaller screens */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-content {
        padding: 0 1rem;
    }
    
    .header-logo-img {
        height: 350px;
    }
    
    .nav-link {
        font-size: 1.8rem;
        font-family: 'Bauer Bodoni', serif;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    /* Section title adjustments */
    .section-title {
        font-size: 3rem;
    }
    
    /* Word section adjustments */
    .word-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .word-block {
        min-width: auto;
        padding: 2rem;
    }
    
    .word-title {
        font-size: 3rem;
    }
    
    .word-pronunciation {
        font-size: 1.5rem;
    }
    
    .definition-text {
        font-size: 1.5rem;
        margin-left: 3rem;
    }
    
    /* About section adjustments */
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text-block {
        padding: 2rem;
    }
    
    .about-text {
        font-size: 1.5rem;
    }
    
    .about-image-block {
        min-width: auto;
        padding: 1rem;
    }
    
    /* Mission section adjustments */
    .mission-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .mission-block {
        padding: 2rem;
        min-height: 200px;
    }
    
    .mission-text {
        font-size: 1.5rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Header adjustments */
    .header-logo-img {
        height: 250px;
    }
    
    /* Hero title adjustments */
    .hero-title {
        font-size: 4rem;
    }
    
    /* Section title adjustments */
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Word section adjustments */
    .word-title {
        font-size: 2.5rem;
    }
    
    .word-pronunciation {
        font-size: 1.2rem;
    }
    
    .definition-text {
        font-size: 1.2rem;
        margin-left: 2rem;
    }
    
    /* About text adjustments */
    .about-text {
        font-size: 1.2rem;
    }
    
    /* Mission text adjustments */
    .mission-text {
        font-size: 1.2rem;
    }
}