/* CSS Reset & Variables */
:root {
    --primary-color: #024959; /* Deep Teal */
    --secondary-color: #F26419; /* Vibrant Orange */
    --accent-color: #F6AE2D; /* Golden Yellow */
    --bg-light: #F8F9FA;
    --bg-dark: #2F4858;
    --text-primary: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(242, 100, 25, 0.2);
    z-index: -1;
    border-radius: 4px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.align-middle { vertical-align: middle; }
.text-danger { color: #e74c3c; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn i {
    margin-left: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline.text-white {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline.text-white:hover {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links li a {
    color: var(--primary-color);
}

.navbar.scrolled .btn-primary {
    background-color: var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary-color);
}

.logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-logo {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(2, 73, 89, 0.85) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.hero-text h1 {
    color: var(--white);
}

.hero-text .highlight {
    color: var(--accent-color);
}

.hero-text .highlight::after {
    background-color: rgba(246, 174, 45, 0.3);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 8px solid rgba(255,255,255,0.2);
    transform: rotate(3deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.floating-badge i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.badge-1 {
    top: -20px;
    left: -30px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-wave .shape-fill {
    fill: #FFFFFF;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.blob-shape {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-color: rgba(246, 174, 45, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: blobMorph 8s ease-in-out infinite alternate;
}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
}

.about-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background-color: rgba(242, 100, 25, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.check-list {
    margin: 1.5rem 0 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.check-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Featured Pets (Adopt) Section */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pet-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.pet-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pet-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.pet-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pet-img-container.alt-img-1 { background: url('https://images.unsplash.com/photo-1543466835-00a7907e9de1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover; }
.pet-img-container.alt-img-2 { background: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover; }


.pet-card:hover .pet-img-container img {
    transform: scale(1.1);
}

.pet-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.pet-info {
    padding: 1.5rem;
}

.pet-info h3 {
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
}

.pet-breed {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pet-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pet-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icon-btn:hover {
    background: rgba(242, 100, 25, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 1;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(246, 174, 45, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(246, 174, 45, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(246, 174, 45, 0); }
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin: 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container { width: 95%; }
    h1 { font-size: 2.8rem; }
    .hero-content { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-buttons { justify-content: center; }
    .about-container { flex-direction: column; text-align: center; }
    .check-list li { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .contact-info li { justify-content: center; }
    .footer-bottom .container { flex-direction: column; gap: 1rem; }
}

@media (max-width: 768px) {
    .nav-actions { display: none; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--primary-color);
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-btn.active i {
        color: var(--primary-color);
    }
    .navbar.scrolled .mobile-menu-btn {
        color: var(--primary-color);
    }
    .hero-text h1 { font-size: 2.3rem; }
    .cta-buttons { flex-direction: column; }
}
