﻿/*
    Student Name: Lance LeBleu
    File Name: styles.css
    Builder comments:
    During-Started with index structure css etc 
    -Multi-star background is kewl
    -Definity when too rgb myb
    
===============

Global    
Star BackGround 
Images / Displays
Layouts
Nav
Containers. Homepage boxes
Articles and lists
Contact
Footer
Article headers  
On-click effects
Dropdown menu
carousel 
Contact links
Media queries

================
*/

/*================= Global ==================*/


html, body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html, body, header, nav, main, footer, img, h1, h2, h3, ul, p {
    margin: 0;
    padding: 0;
}

/*====== Multi-Star Background & base layout =======*/
body {
    display: flex;
    flex-direction: column;
    font-family: Century, Arial;
    background-image: repeating-linear-gradient(135deg, rgb(0,0,0) 0px, rgb(0,0,0) 10px,transparent 10px, transparent 11px),
    repeating-linear-gradient(22.5deg, rgb(0,0,0) 0px, rgb(0,0,0) 10px,transparent 10px, transparent 11px),
    linear-gradient(90deg,
        hsl(194,74%,56%),
        hsl(266,74%,56%),
        hsl(338,74%,56%),
        hsl(50,74%,56%),
        hsl(122,74%,56%)
    );
}

/*================ Images / Displays =============*/

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.xmen-meme-p1 { 
    width: 100%;
    max-width: 300px;
    margin: 1% auto;
    border-radius: 12px;
    border: 2px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.xmen-meme-p2 {
    width: 100%;
    max-width: 280px;
    margin: 2% auto;
    border-radius: 12px;
    border: 2px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.molly-pic {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    border-radius: 12px;
    border: 2px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

#molly-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px auto;    
}

.lance-snow {
    width: 100%;
    max-width: 200px;
    margin: 12px auto;
    border-radius: 12px;
    border: 2px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6); 
}

.work-pic {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 3px auto;
    border-radius: 12px;
    border: 2px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.call-image {
    display: flex;
    justify-content: center;
}

/*================= Layouts ==================*/

main { 
    background-color: #d3c4c4;
    padding: 16px 24px;        
    box-shadow: 0 0 10px 5px rgb(33, 78, 175);
    border-radius: 12px;
    width: 95%;
    max-width: 1100px;          
    margin: 16px auto 24px;
    flex: 1 0 auto;    
}

#main-header {
    padding: 16px 24px;
    border-radius: 8px;
    background-color: #d3c4c4;
    box-shadow: 0 0 8px 8px rgba(226, 10, 10, 0.897);
    text-align: center;
    width: 40%;
    max-width: 1100px;          
    margin: 96px auto 24px;         
}

#main-header h1 {
    font-size: 36px;
    color: #000000;
    margin-bottom: 32px;
    overflow: hidden;
}

/*=============== Nav ===============*/

nav {
    position: fixed;      
    top: 0;
    left: 0;
    right: 0;
    background-color: #d3c4c4;
    box-shadow: 0 4px 8px green;
    padding: 1%;
    z-index: 1000;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: red;
    background-color: rgba(24, 153, 170, 0.3);
}

.desktop-nav {
    display: none;   
}

.mobile-nav {
    display: block;  
    background: #111;
    padding: 10px;
}

/* ============= Containers, Homepage boxes ============= */

.info-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.514);
    padding: 16px;
    border-radius: 8px; 
    margin: 24px auto;
    max-width: 90%;
}

.info-box p {
    font-size: 26px;
    line-height: 1.6;
}

.info-box:last-child {
    margin-bottom: 0;
}

.form-container {
    background: rgba(255, 255, 255, 0.7);
    padding: 16px;
    border-radius: 8px;
}

/* =========== Articles And Lists ============= */

article {
    margin: 15px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

article p {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.year-list {
    margin: 5px 5px;
    list-style-type: square;
    list-style-position: inside;
}

.year-list li {
    margin-bottom: 8px;
    font-size: 16px;
}

.year-list a {
    color: hsl(0, 71%, 43%);
    text-decoration: underline;
}

.year-links {
    color: #992314;
}

.future-goals {
    margin-top: 16px;
    margin-bottom: 16px;
}

.future-goals dt {
    margin-top: 12px;
    font-weight: 700;
    color: #2121a7; 
}

.future-goals dd {
    margin: 4px 0 8px 0;
    padding-left: 12px;
    font-size: 16px;
}


/*======= Contact ======*/

#contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 96px;
}

/* ============= Footer =============*/

footer {
    text-align: center;
    padding: 12px;
    background-color: rgba(241, 233, 233, 0.685);
    font-size: 18px;
    box-shadow: 0 -4px 8px rgba(226, 10, 10, 0.897);
    flex-shrink: 0;
}

/* ========= Article Headers ======== */

.gen-article h2 { 
    margin-bottom: 0.5em;
    color: #2121a7;
    font-size: 30px;
}

h3 {
    margin-bottom: 0.5em;
    color: #2121a7;
    font-size: 20px;
}

/*=========== Text and background Effects ==============*/

.gleam-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.gleam-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.9) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: gleam 4s infinite;
}

@keyframes gleam { 0% { left: -100%; }60% {left: 130%;}100% {left: 130%;}
}

.chill-gradient {
    background-image: linear-gradient( 90deg, #3b7d3a, #355c7d, #b34747);
}

/*============= On-Click Image Effects =============*/

.floating-heart {
    position: fixed;          
    font-size: 2rem;          
    pointer-events: none;     
    animation: floatUp 800ms ease-out forwards;
}

/*============= On-Click Heart Animation ===========*/

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-60px) scale(1.5);
        opacity: 0;
    }
}

/*=========== Dropdown for Mobile ==============*/

.menu-btn {
    font-size: 1.4rem;
    padding: 8px 12px;
    background: #222;
    color: #12881c;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.menu-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    background: #222;
    border-radius: 6px;
}

.menu-list.open {
    display: block;  
}

.menu-list li a {
    display: block;
    padding: 10px;
    color: rgb(160, 53, 34);
    text-decoration: none;
}

.menu-list li a:hover {
    background: #333;
}

/*========= Image carousel ===========*/

.quick-carousel {
    position: relative;
    max-width: 420px;
    margin: 16px auto;
    overflow: hidden;
    border-radius: 8px;
}

.quick-carousel img {
    display: none;    /* hide all by default */
    width: 100%;
}

.quick-carousel img.active {
    display: block;   /* show only the active one */
}

.quick-carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 24px;
    padding: 4px 10px;
    cursor: pointer;
}

.quick-carousel .qc-prev { left: 6px; }
.quick-carousel .qc-next { right: 6px; }

/* ========= Contact links layout ============ */

.contact-links {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.contact-links h2 {
    margin-bottom: 0.5rem;
}

.contact-links a {
    font-weight: bold;
    text-decoration: none;
}

/* ==== Default: mobile first → show phone, hide email ======*/
.contact-desktop {
    display: none;
}

.contact-mobile {
    display: block;
}


/*================= Media Queries ==================*/

@media screen and (min-width: 501px), print {
    .desktop-nav {
        display: block;
    }
    .mobile-nav {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .contact-desktop {
        display: block;
    }
    .contact-mobile {
        display: none;
    }
}

@media screen and (min-width: 1440px) {
    #molly-display {
        max-width: 1320px;
    }
}
