/* 
* Taro Pet App Website Styles
* Modern, clean design for a pet tracking app
*/

/* =============== RESET & BASE STYLES =============== */
:root {
    /* Primary Colors - Pet-friendly palette */
    --primary: #7b68ee;
    --primary-light: #9d8df5;
    --primary-dark: #5c4dd3;
    
    /* Accent Colors */
    --accent: #36A2EB;
    --accent-light: #7BC8F6;
    
    /* Neutral Colors */
    --dark: #2D3748;
    --gray-dark: #4A5568;
    --gray: #718096;
    --gray-light: #E2E8F0;
    --light: #F7FAFC;
    --white: #FFFFFF;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Other */
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light);
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

section {
    padding: var(--space-4) 0;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-10);
    letter-spacing: 1px;
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--dark);
    transform: translateY(-2px);
}

/* =============== HEADER =============== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--space-4) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
}

.logo-image {
    max-height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: var(--space-6);
}

.nav-list a {
    color: var(--gray-dark);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: var(--space-3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    margin-left: 10px;
}

/* =============== HERO SECTION =============== */
.hero {
    padding-top: calc(var(--space-20) + 60px); /* 60px for header height */
    padding-bottom: var(--space-20);
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-light) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
}

.hero-content {
    flex: 1;
}

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

.hero h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.hero p {
    font-size: var(--text-xl);
    color: var(--gray);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
}

.app-showcase {
    max-height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.app-showcase-placeholder,
.phone-mockup-placeholder,
.feature-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* =============== FEATURES SECTION =============== */
.features {
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-6);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: var(--text-4xl);
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

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

.feature-image {
    max-width: 100%;
    height: auto;
    margin-top: var(--space-4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* =============== APP SHOWCASE SECTION =============== */
.app-showcase-section {
    background-color: var(--light);
}

.showcase-grid {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.showcase-text {
    flex: 1;
}

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

.showcase-text h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.feature-list {
    margin-bottom: var(--space-8);
}

.feature-list li {
    margin-bottom: var(--space-3);
    position: relative;
    padding-left: var(--space-8);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.phone-mockup {
    max-height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* =============== DOWNLOAD SECTION =============== */
.download {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.download-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

/* App Store Badges Styling */
.store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-5px);
}

.app-store-badge, .google-play-badge {
    background: #000;
    color: white;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    min-width: 180px;
    position: relative;
}

.google-play-badge {
    background: #414141;
}

.badge-content {
    display: flex;
    flex-direction: column;
    margin-right: 8px;
}

.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-store {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.badge-icon {
    font-size: 2rem;
    margin-left: auto;
}

/* =============== FOOTER =============== */
.site-footer {
    background-color: var(--dark);
    color: var(--light);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-logo p {
    color: var(--gray-light);
    margin-top: var(--space-3);
}

.footer-column h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column ul li a {
    color: var(--gray-light);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-download-links {
    display: flex;
    gap: var(--space-4);
}

.footer-app-link {
    color: var(--gray-light);
}

.footer-app-link:hover {
    color: var(--primary-light);
}

/* =============== MODAL STYLES =============== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h3 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: var(--space-6);
}

.modal-body p {
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--gray);
}

.app-download-options {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-4);
}

.store-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    text-align: left;
    min-width: 160px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 10px;
}

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

.apple-button {
    background-color: #000;
}

.google-button {
    background-color: #414141;
}

.store-button i {
    font-size: 28px;
}

.store-button div {
    display: flex;
    flex-direction: column;
}

.store-button span {
    font-size: 11px;
    line-height: 1;
    margin-bottom: 4px;
}

.store-button strong {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

/* =============== RESPONSIVE STYLES =============== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8) var(--space-12);
    }
    
    .hero h1 {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: var(--space-3) 0;
    }
    
    .main-nav, .header-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--dark);
        position: relative;
    }
    
    .hamburger::before, .hamburger::after {
        content: "";
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--dark);
        left: 0;
    }
    
    .hamburger::before {
        top: -8px;
    }
    
    .hamburger::after {
        bottom: -8px;
    }
    
    .hero .container, .showcase-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .showcase-text {
        order: 2;
    }
    
    .hero-image, .showcase-image {
        order: 1;
        margin-bottom: var(--space-8);
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .feature-list li {
        text-align: left;
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero p {
        font-size: var(--text-lg);
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }
}

/* =============== MOBILE MENU =============== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-6) 0;
    z-index: 1000;
}

.mobile-menu.active {
    display: block !important;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: var(--dark);
    padding: 10px 0;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.mobile-menu-buttons .btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .main-nav,
    .header-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

