/* home.css */

/* 1. Base Styles (For huge Desktop screens) */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent side-scrolling */
}

.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    /* By default, align text to bottom-right */
    align-items: flex-end;
    justify-content: flex-end;

    /* The image URL is passed from HTML via a variable */
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 2. Navigation */
.top-nav {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 1000;
    font-family: sans-serif;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.top-nav a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px #000000;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.top-nav a:hover {
    border-bottom: 2px solid white;
}

/* Dropdown Logic */
.dropdown {
    position: relative;
    display: inline-block; 
}
.dropbtn {
    cursor: pointer
}
/* The hidden list of pages */
.dropdown-content {
    display: none;             /* Hidden by default */
    position: absolute;
    background-color: #f9f9f9; /* Light background */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 10px 0;
    text-align: left;
    top: 100%;                 /* Push it right below the text */
    left: 0;
}
/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;         /* Slightly smaller than main menu */
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;         /* Slightly smaller than main menu */
}
.dropdown-content a:hover {
    background-color: #f1f1f1; }

/* 3. Text Box Styles */
.content-box {
    width: 40%;
    margin-right: 10%;
    margin-bottom: 15vh; /* High up for big screens */
    color: #ffffff;
    text-align: right;
    font-family: 'Georgia', serif;
}

.content-box h1 {
    font-size: 6rem; /* Huge title */
    font-weight: normal;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 4px 4px 8px #000000;
}

.content-box .intro-text {
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 2px 2px 5px #000000;
}


/* --- RESPONSIVENESS --- */

/* A. Laptop / Smaller Desktop (Screen width < 1400px) */
@media screen and (max-width: 1400px) {
    .content-box {
        margin-right: 5%;   /* Closer to edge */
        margin-bottom: 10vh; /* Lower down */
        width: 50%;
    }
    .content-box h1 {
        font-size: 4rem; /* Smaller title */
    }
}

/* B. Mobile Phones (Screen width < 768px) */
@media screen and (max-width: 768px) {
    .hero-container {
        /* 1. LOCK TO RIGHT EDGE */
        /* 100% = Far right edge. This forces the stone into view. */
        background-position: 100% center; 
        
        /* 2. Text at TOP */
        align-items: flex-start; 
        justify-content: center; 
    }

    .top-nav {
        top: 10px;
        right: 10px;
    }
    .top-nav a { font-size: 0.8rem; } 

    .content-box {
        width: 90%;
        margin-right: 0;
        margin-bottom: 0;
        
        /* Push text down slightly from the very top */
        margin-top: 10vh; 
        
        text-align: center; 
    }

    .content-box h1 {
        font-size: 3rem; 
        text-shadow: 2px 2px 8px #000000;
        margin-bottom: 1rem;
    }
    
    .content-box .intro-text {
        font-size: 1.1rem;
        text-shadow: 1px 1px 4px #000000;
        /* I removed 'display: none' so the text will now appear */
        display: block; 
    }
}
