/*
Theme Name: LendAHandTheme
Description: Modern orange, white and black theme with fluid animations
Version: 1.0
Author: Jonathan P.
*/

/* CSS Variables for consistent theming */
:root {
    --primary-orange: #FF8C00;
    --secondary-orange: #FF7F00;
    --accent-orange: #FFA500;
    --pure-white: #FFFFFF;
    --pure-black: #000000;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--pure-black);
    background-color: var(--pure-white);
    overflow-x: hidden;
}

/* Simple, clean navigation */
.navbar {
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-orange);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0 0.5rem;
}

.nav-link {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-orange);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero section with animated background */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--light-gray) 50%, var(--primary-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="3" fill="%23FF8C00" opacity="0.3"><animate attributeName="cy" values="200;800;200" dur="20s" repeatCount="indefinite"/></circle><circle cx="800" cy="300" r="2" fill="%23FFA500" opacity="0.4"><animate attributeName="cy" values="300;700;300" dur="25s" repeatCount="indefinite"/></circle><circle cx="500" cy="500" r="4" fill="%23FF7F00" opacity="0.2"><animate attributeName="cy" values="500;100;500" dur="30s" repeatCount="indefinite"/></circle></svg>') no-repeat center center;
    background-size: cover;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: smoothFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes smoothFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pure-black), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--dark-gray);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    animation: subtitleSlideIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

@keyframes subtitleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: buttonAppear 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s forwards;
    position: relative;
    overflow: hidden;
}

@keyframes buttonAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-orange), var(--pure-white));
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4);
    color: var(--pure-black);
}

/* Content sections */
.section {
    padding: clamp(3rem, 8vh, 5rem) 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--pure-black);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.2);
    border-color: var(--primary-orange);
}

.card h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Image styling */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* Footer */
.footer {
    background: var(--pure-black);
    color: var(--pure-white);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-orange);
}

/* Page-specific styles for legal pages */
.legal-page {
    padding: 8rem 0 4rem;
    background: var(--pure-white);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-content h1 {
    color: var(--pure-black);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-orange);
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--primary-orange);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--pure-black);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        width: 90%;
        max-width: 300px;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        display: block;
        margin: 0 auto;
    }

    .hero {
        height: 100vh;
        padding: 0 1rem;
        min-height: 600px;
    }
    
    .hero-content {
        padding: 1rem;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 0 1rem;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-link {
        width: 95%;
        padding: 0.6rem 0.8rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}
