/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* For desktop */
body.home {
    background-image: url('Assets/profile.png'); /* Default desktop image */
    background-size: cover;
    background-position: 16.666% center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0; /* Start invisible */
    transition: opacity 1s ease-in-out;
}

/* For mobile */
@media (max-width: 768px) {
    body.home {
        background-image: url('Assets/profile_m.png'); /* Mobile-specific image */
        background-position: center; /* Center align for smaller screens */
        background-size: cover; /* Ensure full coverage */
    }
}

@media (max-width: 768px) {
    .white-box {
        display: none; /* Remove white column */
    }

    header {
        padding-left: 0; /* Adjust header padding when white-box is removed */
    }
}

/* Footer for mobile view */
@media (max-width: 768px) {
    footer {
        background-color: white; /* White stripe background */
        text-align: center; /* Center align text */
        padding: 10px 0; /* Vertical padding for spacing */
        font-family: 'Cormorant Garamond', serif; /* Match site font */
        font-size: 14px; /* Slightly smaller text */
        position: fixed; /* Stay at the bottom of the page */
        bottom: 0;
        width: 100%;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    }
}

/* Hide the logo on mobile */
/* Hide the entire logo, including the <svg>, on mobile */
@media (max-width: 768px) {
    .logo {
        display: none !important; /* Ensures the logo element is completely hidden */
    }
}

/* Show footer only on mobile */
footer {
    display: none; /* Hide footer by default */
}

/* Footer styling for mobile */
@media (max-width: 768px) {
    footer {
        font-family: 'Cormorant Garamond', serif; /* Use the specified font */
        font-size: 14px; /* Adjust font size */
        text-align: center; /* Center the text */
        padding: 10px 0; /* Vertical spacing */
        background-color: white; /* Ensure white background for contrast */
        position: fixed; /* Keep footer at the bottom */
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
        z-index: 1000; /* Ensure it appears above other elements */
        display: block; /* Ensure the footer is visible */
    }
}

body.home.fade-in {
    opacity: 1; /* Fully visible when fade-in class is added */
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* White box styles */
.white-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 16.666%; /* 2/12 of the screen width */
    height: 100vh;
    background-color: white;
    z-index: 1;
}

/* Content wrapper styles */
.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Container and grid system */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.5s; /* Delay the content fade-in */
}

.container.fade-in {
    opacity: 1;
}


/*.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}*/

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

/* Generate 12 column classes */
@media (min-width: 768px) {
    .col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-3 { flex: 0 0 25%; max-width: 25%; }
    .col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-6 { flex: 0 0 50%; max-width: 50%; }
    .col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-9 { flex: 0 0 75%; max-width: 75%; }
    .col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Header and navigation */
header {
   /* background-color: rgba(255, 255, 255, 0.8);*/
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

/* Ensure the burger menu stays on the right in mobile view */
@media (max-width: 768px) {
    nav {
        justify-content: flex-end; /* Align burger to the right */
        padding-right: 20px; /* Fine-tune spacing inside the nav */
    }

    .burger {
        margin-right: 0; /* Ensure no extra margin is applied */
    }
}


.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
  width: 52px;
  height: 52px;
  transition: transform 0.3s ease;   
}

.logo a:hover svg {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-family: 'Fjalla One', sans-serif;
    text-decoration: none;
    color: #000000;
    font-weight: normal;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;

}

/* Highlight the active menu item */
.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%; /* Full width underline */
    height: 4px; /* Thickness of underline */
    bottom: 0; /* Position the underline below the text */
    left: 0;
    background-color: #ff0606; /* Red underline color */
    transition: width 0.3s ease-in-out; /* Smooth transition */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: #ff0606;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}


/* Style for mobile menu (slide-in) */
/* Adjust the slide-in menu layout */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; /* Align with the top of the viewport */
        right: 0; /* Slide in from the right edge */
        height: 100%; /* Full height for the menu */
        background-color: white;
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align items to the left */
        padding: 50px 20px 20px; /* Add 50px padding at the top */
        width: 50%; /* Width of the menu */
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.5s ease-in;
        z-index: 1000;
    }

    .nav-links.nav-active {
        transform: translateX(0); /* Slide into view */
    }

    .nav-links li {
        list-style: none;
        margin-bottom: 15px; /* Spacing between menu items */
    }

    .nav-links a {
        text-decoration: none;
        color: #000; /* Black text color */
        font-size: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: color 0.3s ease;
        width: 100%; /* Make the link span the width */
    }

    .nav-links a:hover {
        color: #ff0606; /* Highlight color on hover */
    }
}

.nav-active {
    transform: translateX(0%);
}

/* Page content */
.page {
    min-height: 100vh;
    padding-top: 80px; /* Adjust based on your header height */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* Essays page grid layout */
.essays-grid {
    display: grid;
    grid-template-rows: 2fr 1fr 1fr;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 60px;
    height: 100vh;
    box-sizing: border-box;
}

.grid-row {
    display: contents;
}

.grid-col-4 {
    grid-column: span 4;
}

/* Essays title styling */
.essays-title {
    font-family: 'Fjalla One', sans-serif;
    font-size: 80px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    grid-row: 2;
    grid-column: 1 / span 4;
    align-self: start;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.essays-grid {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.essays-grid.fade-in {
    opacity: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .essays-grid {
        grid-template-rows: 1fr auto 1fr; /* Adjusts for mobile view */
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .essays-title {
        font-size: 60px;
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: center;
    }
}



/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 60px;
    min-height: 100vh;
    box-sizing: border-box;
}

.contact-title {
    font-family: 'Fjalla One', sans-serif;
    font-size: 44px;
    text-transform: uppercase;
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 150px;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #555;
}

.contact-info {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.contact-info li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    padding: 10px 15px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #555;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-title {
        font-size: 48px;
    }

    .grid-col-6 {
        grid-column: 1 / -1;
    }
}

/* Ensure the burger menu is positioned and styled correctly */
.burger {
    display: block; /* Ensure it appears in mobile view */
    position: fixed; /* Keep it fixed on the screen */
    top: 20px; /* Adjust spacing from the top */
    right: 20px; /* Align it to the right */
    z-index: 1100; /* Ensure it appears above the slide-in menu */
    cursor: pointer;
}

/* Styling the lines of the burger menu */
.burger div {
    width: 25px;
    height: 3px;
    background-color: #333; /* Match with your theme */
    margin: 5px;
    transition: all 0.3s ease;
}

/* Add animation for the toggle state of the burger menu */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0; /* Hide the middle line */
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Rectangular box styling */
.info-box {
    position: absolute;
    bottom: 50px; /* Distance from the bottom */
    left: 5%; /* Fixed distance of 5% from the left edge */
    width: 400px; /* Box width */
    background-color: white; /* White background */
    padding: 20px; /* Padding for content inside */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 100; /* Ensure it appears above the background */
    transform: none; /* No additional offset adjustments */
}

/* Hide the box for mobile */
@media (max-width: 768px) {
    .info-box {
        display: none;
    }
}

/* First line styling */
.info-box .line1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600; /* Semi-bold */
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333; /* Dark text */
}

/* Second line styling */
.info-box .line2 {
    font-family: 'Poiret One', cursive;
    font-size: 3rem;
    color: #000; /* Black text */
}


@media (max-width: 768px) {
    .info-box {
        display: none; /* Hide box on mobile */
    }
}

/* Hide burger menu on desktop */
@media (min-width: 769px) {
    .burger {
        display: none; /* Ensure the burger menu is hidden on larger screens */
    }
}

/* Menu Highlighting */

/* Highlight only the active menu item */
.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%; /* Full width underline */
    height: 4px; /* Thickness of underline */
    bottom: 0; /* Position the underline below the text */
    left: 0;
    background-color: #ff0606; /* Red underline color */
    transition: width 0.3s ease-in-out; /* Smooth transition */
}


/* Title Adjustment */
.essays-title {
    margin-top: 90px; /* Adjust spacing from the top to align below the logo */
    text-align: left; /* Align the title to the left */
    font-size: 2.5rem; /* Maintain a consistent font size */
    padding-left: 60px; /* Align with the left padding of the content */
}

/* Two-Column Grid Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Left column (years) and right column (content) */
    grid-auto-rows: min-content; /* Adjust row heights based on content size */
    gap: 20px;
    padding: 20px 60px;
}

/* Left Column: Years */
.left-column {
    display: contents; /* Ensures grid rows align properly */
}

.year {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: right;
    margin-bottom: 0; /* Ensure no extra spacing */
    align-self: start; /* Align each year with its corresponding content */
}

/* Right Column: Content */
.right-column {
    display: contents; /* Ensures grid rows align properly */
}

.content-section {
    margin-bottom: 40px; /* Space between content sections */
}

.paragraph-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.paragraph-description {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
}