/* ==========================================================================
   Doctor Vet Assistant - Stylesheet
   ========================================================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2D5A4E;
    --primary-light: #3D7A6A;
    --primary-dark: #1D3A3E;
    --accent: #E8A54B;
    --accent-light: #F5C77D;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --bg-light: #F8FAFB;
    --bg-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #2D5A4E 0%, #3D7A6A 100%);
    --gradient-accent: linear-gradient(135deg, #E8A54B 0%, #F5C77D 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

/* ==========================================================================
   Navigation (Header)
   ========================================================================== */
header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 90, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(45, 90, 78, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(232, 165, 75, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 165, 75, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(45, 90, 78, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-text h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-logo-container::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.hero-logo-container img {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 6rem 5%;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Audience Sections
   ========================================================================== */
.audience-section {
    padding: 6rem 5%;
}

.audience-section.vets {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.audience-section.owners {
    background: var(--bg-light);
}

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.audience-content.reverse {
    direction: rtl;
}

.audience-content.reverse > * {
    direction: ltr;
}

.audience-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.audience-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.audience-list {
    list-style: none;
    margin-bottom: 2rem;
}

.audience-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.audience-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
}

.vets .audience-text p,
.vets .audience-list li {
    color: rgba(255, 255, 255, 0.9);
}

.owners .audience-text p,
.owners .audience-list li {
    color: var(--text-light);
}

.owners .audience-text h2 {
    color: var(--primary-dark);
}

.audience-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vets .visual-card {
    background: rgba(255, 255, 255, 0.1);
}

.owners .visual-card {
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(45, 90, 78, 0.1);
}

.visual-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.visual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.visual-card p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.owners .visual-card h3 {
    color: var(--primary-dark);
}

.owners .visual-card p {
    color: var(--text-light);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 8rem 5%;
    background: var(--bg-white);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating Chat Bubble (unused but available)
   ========================================================================== */
.chat-bubble {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.chat-bubble:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.chat-bubble:nth-child(2) {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content,
    .audience-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .audience-content.reverse {
        direction: ltr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .audience-list {
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 768px) {
    header nav ul {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2,
    .audience-text h2,
    .cta-container h2 {
        font-size: 1.8rem;
    }

    .hero-logo-container {
        width: 280px;
        height: 280px;
    }

    .hero-logo-container img {
        width: 150px;
    }
}

/* ==========================================================================
   Reduced Motion & High Contrast
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary: #1a4035;
        --accent: #c4851f;
    }
    
    .feature-card,
    .visual-card {
        border: 2px solid currentColor;
    }
}
