/* 
* Toys By Thomas - Custom CSS
* A modern, responsive design for showcasing 3D printed toys
*/

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary: #1E88E5;
    --secondary: #FF9800;
    --accent: #00BCD4;
    --light: #F5F5F5;
    --dark: #333333;
    --white: #FFFFFF;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --accent-font: 'Quicksand', sans-serif;
    
    /* Spacing */
    --section-spacing: 100px;
    --element-spacing: 30px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-circle: 50%;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

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

section {
    padding: var(--section-spacing) 0;
}

.btn {
    font-family: var(--accent-font);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1976D2;
    border-color: #1976D2;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #F57C00;
    border-color: #F57C00;
    color: var(--white);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-cart {
    background-color: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 8px 20px;
}

.btn-cart:hover {
    background-color: #F57C00;
    color: var(--white);
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: var(--radius-sm);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    font-family: var(--accent-font);
}

.text-center .section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: relative;
}

.navbar {
    padding: 20px 0;
    transition: all var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 60px;
    transition: all var(--transition-fast);
}

.scrolled .logo {
    height: 50px;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    font-family: var(--accent-font);
    font-weight: 600;
    color: var(--dark);
    padding: 10px 15px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 80%;
}

.social-icons .nav-link {
    padding: 10px;
    font-size: 1.2rem;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 100px;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

/* Ensure hero content stays above decorative elements */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
    font-family: var(--accent-font);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(500px) rotateY(-5deg) rotateX(2deg); /* Reduced rotation */
    transition: all var(--transition-medium);
	opacity: 1; /* WORKED ON */
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all var(--transition-medium);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--accent-font);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transform: rotate(5deg);
}

.floating-badge:before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 10px solid #F57C00;
    border-right: 10px solid transparent;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== FEATURED PRODUCTS SECTION ===== */
.featured-products {
    padding: var(--section-spacing) 0;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: all var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-medium);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-info p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

/* ===== ABOUT THOMAS SECTION ===== */
.about-thomas {
    padding: var(--section-spacing) 0;
    background-color: var(--light);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    font-family: var(--accent-font);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.experience-badge:before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 10px solid #1976D2;
    border-right: 10px solid transparent;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: var(--section-spacing) 0;
}

.process-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.process-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 2rem;
    border-radius: var(--radius-circle);
    margin: 0 auto 25px;
    transition: all var(--transition-medium);
}

.process-card:hover .process-icon {
    background-color: var(--secondary);
    transform: rotateY(180deg);
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.process-card p {
    color: var(--gray);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-spacing) 0;
    background-color: var(--light);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    height: 100%;
    transition: all var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    position: relative;
    padding-top: 30px;
    margin-bottom: 20px;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-name {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary);
}

.testimonial-stars {
    color: var(--secondary);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    padding: 70px 0;
}

.newsletter-inner {
    background-color: var(--primary);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form .form-control {
    height: 54px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border: none;
    padding: 0 20px;
    font-family: var(--body-font);
}

.newsletter-form .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background-color: var(--secondary);
    border-color: var(--secondary);
    height: 54px;
    padding: 0 30px;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background-color: #F57C00;
    border-color: #F57C00;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #222;
    color: var(--light-gray);
    padding: 80px 0 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer p {
    margin-bottom: 25px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-circle);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links a:hover:before {
    left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom i {
    color: #ff5e5e;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
    :root {
        --section-spacing: 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-spacing: 70px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 15px;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .newsletter-inner {
        padding: 40px 30px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-spacing: 60px;
        --element-spacing: 20px;
    }
    
    .hero {
        padding: 130px 0 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .newsletter-inner {
        padding: 30px 20px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer h4 {
        margin-top: 30px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-spacing: 50px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .btn-lg {
        padding: 12px 30px;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .process-card h3 {
        font-size: 1.3rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .newsletter-form .btn {
        padding: 0 20px;
    }
}



/* WORKED ON: Ensure hero image is never washed out by animation/overlays */
.hero .hero-image-container,
.hero .hero-image-wrapper,
.hero .hero-image,
.hero .hero-image-wrapper img {
    opacity: 1 !important;
}
