/**
 * DesignedByBud Landing Page Styles
 * Professional branding and layout for Etsy store showcase
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #8b5cf6;

    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #fef7f0;
    --background-alt: #f5f0e8;
    --background-dark: #111827;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1400px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 0 10px;
    margin: 0;
    width: 100%;
    align-self: flex-start;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    
}

.site-header-text {
    letter-spacing: -0.01em;
}

.hero {
    position: relative;
    background: #fef7f0;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: #1f2937;
}

.hero-banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px 20px;
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    /* Crop 5% from top and 5% from bottom */
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.brand-logo {
    margin-bottom: 32px;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.brand-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.cta-icon {
    transition: transform var(--transition-medium);
}

.cta-button:hover .cta-icon {
    transform: translateX(5px);
}

/* Hero Decorative Elements */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: float 15s infinite ease-in-out reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 25s infinite ease-in-out;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: var(--section-padding);
    background: var(--background-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle.interactive-hint {
    margin-top: 20px;
    opacity: 0.8;
}

/* MagCase Description Expandable Section */
.magcase-description {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-magcase-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: none;
    margin-bottom: 0;
}

.why-magcase-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.why-magcase-toggle:active {
    background: rgba(37, 99, 235, 0.05);
}

.toggle-icon {
    transition: transform var(--transition-medium);
}

.why-magcase-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.why-magcase-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.why-magcase-panel.active {
    max-height: 1200px;
    opacity: 1;
    margin-top: 24px;
}

.description-content {
    background: #fef7f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.description-section {
    margin-bottom: 24px;
}

.description-section:last-child {
    margin-bottom: 0;
}

.description-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 0;
}

.description-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.description-section p:last-child {
    margin-bottom: 0;
}

/* Product Link Button */
.product-link {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-medium);
    margin-top: 8px;
}

.product-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.product-link:active {
    transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: var(--section-padding);
    background: #fef7f0;
}

.about-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.about-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: var(--background-alt);
    transition: all var(--transition-medium);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: #fef7f0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform var(--transition-medium);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--background-dark);
    color: #d1d5db;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    border-radius: 50%;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-section h4 {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-bottom p {
    margin: 8px 0;
}

.footer-note a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 16px;
    }

    .site-header {
        padding: 15px 15px 0 15px;
        gap: 12px;
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .site-header-brand {
        gap: 12px;
    }

    .site-header-logo {
        height: 45px;
    }

    .header-etsy-button {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-banner-container {
        padding: 30px 10px 15px 10px;
    }

    .hero-content {
        padding: 15px 20px 50px 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .why-magcase-toggle {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .description-content {
        padding: 24px 20px;
    }

    .description-section h3 {
        font-size: 1.1rem;
    }

    .description-section p {
        font-size: 0.95rem;
    }

    .features-grid {
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-logo-image {
        height: 50px;
    }

    .footer-links {
        gap: 40px;
    }

    .decoration-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 10px 0 10px;
        gap: 8px;
        margin-left: 5%;
    }

    .site-header-brand {
        gap: 8px;
    }

    .site-header-logo {
        height: 35px;
    }

    .header-etsy-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .hero-banner-container {
        padding: 20px 5px 10px 5px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

    .footer-logo-image {
        height: 40px;
        object-fit: cover;
        border-radius: 50%;
    }

    .footer-logo {
        font-size: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button.secondary {
        border-width: 3px;
    }

    .feature-item {
        border: 2px solid var(--text-secondary);
    }
}


