/* Pet Care Tracker - Custom Styles */
/* Design: Creative & Playful with Luxurious Asian-Inspired Theme */

:root {
    --primary-red: #8B0000;
    --primary-crimson: #DC143C;
    --accent-gold: #FFD700;
    --accent-gold-dark: #DAA520;
    --teal-accent: #20B2AA;
    --cherry-pink: #FFB7C5;
    --sky-blue: #87CEEB;
    --dark-bg: #1a0a0a;
    --light-bg: #FFF8F0;
    --text-dark: #2D1810;
    --text-light: #FFF8F0;
    --card-bg: rgba(139, 0, 0, 0.95);
    --gradient-red: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    --gradient-gold: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #DAA520 100%);
    --shadow-gold: 0 4px 20px rgba(218, 165, 32, 0.3);
    --shadow-red: 0 4px 20px rgba(139, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--primary-red);
}

p, li, span, a {
    font-family: 'Lato', 'Segoe UI', sans-serif;
}

/* Navigation */
.navbar {
    background: var(--gradient-red) !important;
    box-shadow: var(--shadow-red);
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-gold) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand .icon {
    font-size: 1.5rem;
}

.navbar-menu {
    background: transparent !important;
}

.navbar-item {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.navbar-item:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    color: var(--accent-gold) !important;
}

.navbar-burger {
    color: var(--accent-gold) !important;
    background: transparent;
    border: none;
}

.navbar-burger span {
    background-color: var(--accent-gold) !important;
    height: 2px;
}

/* Mobile Navigation */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: var(--primary-red) !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
    }

    .navbar-menu.is-active {
        display: block;
    }

    .navbar-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 40%, #FFF8F0 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 183, 197, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 183, 197, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 60% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-red);
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2D2D2D, #1a1a1a);
    border-radius: 35px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.1);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.device-frame img {
    width: 100%;
    border-radius: 25px;
    display: block;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--text-light) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
    color: var(--accent-gold) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--text-light) !important;
}

/* Features Section */
.features-section {
    padding: 5rem 1.5rem;
    background: var(--light-bg);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.2);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent-gold);
    box-shadow: var(--shadow-red);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-red);
}

.feature-card p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

/* Screenshots Section */
.screenshots-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, #FFE4E1 100%);
    max-height: 500px;
    overflow: hidden;
}

.screenshot-carousel {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-height: 300px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: var(--gradient-red);
    color: var(--accent-gold);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-red);
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--accent-gold);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* Download Section */
.download-section {
    padding: 5rem 1.5rem;
    background: var(--gradient-red);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.download-section h2 {
    color: var(--accent-gold);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
}

.download-section p {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 1.5rem 1.5rem;
}

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

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
    text-align: left;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Content Pages (Privacy, Terms, Contact) */
.content-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--light-bg);
}

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

.content-container h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-container h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
}

.content-container h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-container p {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-container ul,
.content-container ol {
    text-align: left;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-container a {
    color: var(--primary-red);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.content-container a:hover {
    color: var(--accent-gold-dark);
}

.last-updated {
    text-align: center;
    color: var(--text-dark);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-red);
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(139, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-red);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.form-message {
    display: none;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.form-message.success {
    display: block;
    background: rgba(32, 178, 170, 0.1);
    border: 1px solid var(--teal-accent);
    color: var(--teal-accent);
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.95) 30%);
    padding: 2rem 1rem 1.5rem;
    z-index: 1500;
    display: none;
}

.privacy-accept-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    background: var(--gradient-gold);
    color: var(--primary-red);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    text-align: center;
}

.privacy-accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hero-section {
        padding-top: 70px;
    }

    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .device-mockup {
        max-width: 220px;
        margin-top: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .screenshots-section {
        padding: 3rem 1rem;
        max-height: 400px;
    }

    .carousel-container {
        height: 260px;
    }

    .carousel-slide img {
        max-height: 240px;
    }

    .content-container {
        padding: 1.5rem 1rem 3rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

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

    .footer-section p,
    .footer-section a {
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blur-up image loading */
.img-loading {
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.img-loaded {
    filter: blur(0);
}

/* Orientation Change Support */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 80px 1rem 2rem;
    }

    .device-mockup {
        max-width: 150px;
    }

    .screenshots-section {
        max-height: 350px;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-slide img {
        max-height: 180px;
    }
}
