/*
Theme Name: Stove LLC Theme
Theme URI: https://stovellc.work/
Author: Steven Frederick
Description: A simple, clean theme for your site.
Version: 1.0
License: GPL v2 or later
Text Domain: Stove LLC Theme
*/

*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Default Styles */
html, body{
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    background: var(--main-background);
    scroll-behavior: smooth;
}

body::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.05) 3px,
        rgba(0, 0, 0, 0.05) 6px
    );
    opacity: 0.15;
    pointer-events: none;
}


/* Root Styles */
:root{
    --main-background: radial-gradient(circle at top, #2c2c54, #5f4b8b, #3F51B5, #AABFD5);
    --link-color: #64A6FF;
    --link-hover-color: #00E6E6;
    --text-color: #D1D5DB;
    --headline-color: #B8E1FF;
    --button-copy-color: #D6E4F0;
    --basic-gray: #333;

    --maxwidth-large: 1100px;
    --maxwidth-medium: 900px;
    --maxwidth-small: 600px;
    --maxwidth-xtrasmall: 400px;

    --section-padding: 1rem;

    --margin-auto: 0 auto;

}
a{
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.5s ease-in-out;
}
a:hover{
    color: var(--link-hover-color);
}
p{
    color: var(--text-color);
}
h1, h2, h3, h4{
    color: var(--headline-color);
}
p::selection, h1::selection, h2::selection, h3::selection, h4::selection, a::selection{
    background: #4B7EBF;
} 
/* Header */
#header{
    border-bottom: 1px solid var(--basic-gray);
    padding: var(--section-padding);
    
}
#header .header-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--maxwidth-large);
    margin: var(--margin-auto);
    height: 100px;
}
#header .header-container img{
    height: 100%;
    border-radius: 8px;
}
#header .nav-flex{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0 0;
}

/* hamburger menu css */


/* Hero */
#hero{
    padding: var(--section-padding);
    max-width: var(--maxwidth-large);
    margin: var(--margin-auto);
}
#hero .hero-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
#hero .hero-container h1{
    font-size: 3.5rem;
    font-weight: normal;
}
#hero .hero-container p{
    font-size: 1.25rem;
}
.welcomepic, .profilpic{
    max-width: 50%;
    margin: 0 auto;
    border-radius: 50%;
    display: block;
}

#hero .hero-cta, #services .portfolio-cta{
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--basic-gray);
    cursor: pointer;
    box-shadow: 2px 2px 5px var(--basic-gray);
    border-radius: 8px;
    transform: scale(1);
    transition: box-shadow 0.15s ease-in-out, transform 0.1s ease-in-out;

    color: var(--button-copy-color);
}
#hero .hero-cta:hover, #services .portfolio-cta:hover{
    box-shadow: -2px -2px 5px var(--basic-gray);
    transform: scale(1.1);
}

/* Hero Popup */
.hidden{
    display: none;
}
.visible{
    display: block;
}
.popup{
    max-width: var(--maxwidth-xtrasmall);
    z-index: 1;
    position: fixed;
    box-shadow: 2px 2px 5px var(--basic-gray);
    border-radius: 8px;
    padding: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #5f4b8b;
}
.close {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.5rem;
}
.popup-content{
    font-size: 0.75rem;
    margin: var(--margin-auto);
}

/* About */
#about{
    max-width: var(--maxwidth-large);
    padding: var(--section-padding);
    margin: var(--margin-auto);
}
#about .about-container{
    display: flex;
    flex-direction: column;
}
#about .about-container .about-container-heading h2{
    text-align: center;
    margin: 0 0 0.5rem;
}
#about .about-container .about-container-heading p{
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    text-wrap: pretty;
}
#about .about-container .profile-container{
    justify-items: center;
}
#about .about-container .profile-container img{
    border-radius: 50%;
}

/* Services / Portfolio Button styled in Hero */
#services .services-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

#services .card{
    max-width: var(--maxwidth-small);
    border: 1px solid var(--basic-gray);
    border-radius: 8px;
    margin: 1rem;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    height: 250px;

    box-shadow: 0 0 5px;
    transform: scale(1);
    transition: transform 0.1s ease-in-out;
}
#services .card:hover{
    transform: scale(1.1);
}

#services .services-container .portfolio-cta{
    grid-column-start: 2;
    grid-column-end: 4;
}

/* Testimonials */

.testimonials {
    text-align: center;
    max-width: 800px;
    margin: auto;
    padding: 50px 20px;
}

h2 {
    font-size: 2.5rem;
    color: #B8E1FF; /* Icy blue for modern contrast */
    margin-bottom: 20px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1); /* Soft frosted glass effect */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: #D1D5DB; /* Cool gray for readability */
    position: relative;
    margin: 0 0 20px;
}

.testimonial p {
    font-style: italic;
    line-height: 1.6;
    font-size: 1.25rem;
}

.testimonial span {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    color: #AABFD5; /* Subtle contrast for names */
}


/* Contact Form */

.contact-form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1); /* Subtle glass effect */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

/* Form Layout */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Label Styling */
label {
    font-size: 1rem;
    color: #314154; 
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* Input & Textarea Styling */
input, textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #314154; /* navy blue for readability */
    outline: none;
    transition: border 0.3s ease, background 0.3s ease;
}
input::placeholder, textarea::placeholder{
    color: #314154;
}

/* Input Focus Effect */
input:focus, textarea:focus {
    border: 1px solid #64A6FF; /* Electric blue focus */
    background: rgba(255, 255, 255, 0.15);
}

/* Submit Button */
.form-submit-cta {
    background: linear-gradient(135deg, #3F51B5, #64A6FF); /* Cool blue gradient */
    color: #D6E4F0; /* Muted ice-blue for balance */
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
.form-submit-cta:hover {
    background: linear-gradient(135deg, #5f4b8b, #3F51B5);
    transform: scale(1.05);
}

/* Footer */
#footer{
    text-align: center;
    margin: 1rem;
    padding: 0.5rem;
}
#footer p{
    margin: 0 0 0.5rem;
}


/* PORTFOLIO.PHP STYLES */
#portfolio{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: var(--section-padding);
    max-width: var(--maxwidth-large);
    margin: var(--margin-auto);
}
.porfolio-item{
    margin: 150px auto;
}
/* item 1 */
.threed-cube-container{
    perspective: 1000px;
    width: 200px;
    height: 200px;;
    margin: 50px auto;
}

.cube{
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateCube 1s infinite linear;
}

.face{
    position: absolute;
    width: 200px;
    height: 200px;
    line-height: 200px;
    text-align: center;
    font-size: 1.25rem;
}

.front{
    background-color: red;
    transform: translateZ(100px);
}
.back{
    background-color: blue;
    transform: rotateY(180deg) translateZ(100px);
}
.right{
    background-color: lightgreen;
    transform: rotateY(90deg) translateZ(100px);
}

.left{
    background-color: yellow;
    transform: rotateY(-90deg) translateZ(100px);
}
.top{
    background-color: cyan;
    transform: rotateX(90deg) translateZ(100px);
}
.back{
    background-color: hotpink;
    transform: rotateX(-90deg) translateZ(100px);
}
@keyframes rotateCube{
    0%{
        transform: rotateY(0deg) rotateX(0deg);
    }
    100%{
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* item 2 */

.loader-container{
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader{
    width: 80px;
    height: 80px;
    position: relative;
    animation: spin 2s linear infinite;
}
.loader::before, .loader::after{
    content: '';
    position: absolute;
    top: 0;
    left: 35px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    animation: bounce 2s infinite ease-in-out;
}
.loader::after{
    left: -35px;
    background: #e74c3c;
}

@keyframes spin{
    100%{
        transform: rotate(360deg);
    }
}

@keyframes bounce{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-30px);
    }
}
/* Word Scramble CSS Begin */

.word-scramble{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 50vw;
    margin: 0 auto;
    gap: 0.5rem;
}

.cta-button{
    width: 150px;
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--basic-gray);
    cursor: pointer;
    box-shadow: 2px 2px 5px var(--basic-gray);
    border-radius: 8px;
    transform: scale(1);
    transition: box-shadow 0.15s ease-in-out, transform 0.1s ease-in-out;
    color: var(--button-copy-color);
}
.btn-container{
    display: flex;
    gap: 2rem;
}

.cta-button:hover{
    box-shadow: -2px -2px 5px var(--basic-gray);
    transform: scale(1.1)
}


/* Media Queries */

@media screen and (max-width: 820px){
    /* Hero Tablet */
    #header .header-container{
        flex-direction: column;
        gap: 1rem;
    }

    #hero .hero-container{
        text-align: center;
        margin: 50px 0 0;
    }
    /* Services Tablet */
    #services .services-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two equal columns */
        grid-template-rows: auto auto auto; /* Three rows */
        gap: 10px; /* Space between grid items */
        max-width: var(--maxwidth-medium); /* Adjust as needed */
        margin: var(--margin-auto); 
    }

    #services .services-container .portfolio-cta{
        max-width: var(--maxwidth-xtrasmall);
        grid-column: span 2;
        grid-column-end: unset;
    }
}

@media screen and (max-width: 520px){
    /* Hero Mobile*/
    #hero .hero-container h1{
        font-size: 3rem;
    }
    /* Services Mobile*/
    #services .services-container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    #services .card{
        max-width: 100%;
        height: auto;
    }
    .testimonials{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* scramble */
    .word-scramble{
        max-width: 75vw;
    }

}