/* ==========================================================================
   HOPE FOR PAWS ANIMAL RESCUE - PLAYFUL & ANIMATED STYLES
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES - COLORFUL PALETTE
   ========================================================================== */
:root {
    /* Primary Colors - Warm & Friendly */
    --primary-orange: #FF8C42;
    --primary-pink: #FF6B9D;
    --primary-purple: #9B5DE5;
    --primary-blue: #4ECDC4;
    --primary-green: #51CF66;
    --primary-yellow: #FFD93D;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #FAFBFC;
    --bg-cream: #FFF9F5;
    --bg-soft: #F8F9FF;
    
    /* Text Colors */
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #7B8794;
    --text-muted: #A0ADB8;
    
    /* Accent Colors */
    --accent-coral: #FF7F7F;
    --accent-mint: #98E4D6;
    --accent-lavender: #C5A3FF;
    --accent-peach: #FFB3A7;
    
    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-colorful: 0 10px 30px rgba(255, 140, 66, 0.2);
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0px;
    margin: 0;
    padding: 0;
}


/* Force page to start at top */
body {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Remove any margin from container in about section */
.about .container {
    margin-top: 0;
    margin-bottom: 0;
}

/* Critical: Remove spacing from main tag and hero container */
main {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.hero .container {
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: auto;
    overflow: visible;
}

.section-header {
    margin-top: 0;
}

/* Add spacing above Our Mission for better visual separation */
.about .section-header {
    margin-top: 60px;
    padding-top: 20px;
}

.about .section-title {
    margin-top: 0;
}

/* Specific rule to eliminate gap between hero and about */
section#about {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Also target by class */
.about {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Create a scroll anchor point at the hero/about meeting line */
.about::before {
    content: '';
    display: block;
    height: 0;
    margin-top: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -15px, 0);
    }
    70% {
        transform: translate3d(0, -7px, 0);
    }
    90% {
        transform: translate3d(0, -3px, 0);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.animate-bounce { animation: bounce 2s infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-fadeInUp { animation: slideInUp 0.8s ease-out; }
.animate-fadeInLeft { animation: slideInLeft 0.8s ease-out; }
.animate-fadeInRight { animation: slideInRight 0.8s ease-out; }

.text-gradient {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink), var(--primary-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease infinite;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 140, 66, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-soft);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.navbar {
    padding: 8px 0;
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.05);
    animation: wiggle 0.8s ease-in-out;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-medium);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-soft);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all var(--transition-normal);
    padding: 8px 16px;
    border-radius: var(--radius-medium);
}

.nav-link:hover {
    color: var(--primary-orange);
    background: rgba(255, 140, 66, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    border-radius: var(--radius-small);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Donate Button */
.donate-btn {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-large);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-colorful);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
    margin-left: auto;
}

.donate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.4);
    animation: bounce 0.6s ease-in-out;
}

.donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.donate-btn:hover::before {
    left: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-bounce);
    background: var(--bg-light);
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-3px) rotate(5deg);
    animation: wiggle 0.6s ease-in-out;
}

.social-link:nth-child(1) {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.2);
}

.social-link:nth-child(1):hover {
    background: linear-gradient(45deg, #1877F2, #42A5F5);
    color: white;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-link:nth-child(2) {
    color: #E4405F;
    border-color: rgba(228, 64, 95, 0.2);
}

.social-link:nth-child(2):hover {
    background: linear-gradient(45deg, #E4405F, #F56040);
    color: white;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle - Removed for basic sites */


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 76.5vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: block;
    position: relative;
    background: transparent;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    outline: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23FF8C42" fill-opacity="0.03"><circle cx="30" cy="30" r="4"/></g></g></svg>');
    pointer-events: none;
    animation: float 20s linear infinite;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0;
    box-shadow: none;
    transition: transform var(--transition-slow);
    opacity: 0.9;
    mix-blend-mode: normal;
}

.hero-bg-img:hover {
    transform: scale(1.02);
}

/* Hero Video - Removed */

/* Hero Content - Positioned on LEFT side */
.hero-content {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 600px;
    width: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink), var(--primary-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 4s ease infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
    animation: slideInLeft 1s ease-out 0.2s both;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: var(--radius-medium);
    display: inline-block;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.btn {
    padding: 15px 30px;
    border-radius: var(--radius-large);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    color: white;
    box-shadow: var(--shadow-colorful);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.4);
    animation: bounce 0.6s ease-in-out;
}

.btn-secondary {
    background: white;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-colorful);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 800;
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
section {
    padding: 80px 0;
    position: relative;
}

/* FORCE zero gap - overlap approach */
.hero + section,
.hero + .about,
section#about,
.about {
    margin-top: -2px !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 10;
    border-top: none;
}

/* Additional safety net */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Remove any default margins */
* {
    box-sizing: border-box;
}

section {
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: slideInUp 0.8s ease-out;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    border-radius: var(--radius-small);
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '🐾';
    position: absolute;
    top: 20%;
    left: 5%;
    font-size: 100px;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
}

.about::after {
    content: '❤️';
    position: absolute;
    bottom: 20%;
    right: 5%;
    font-size: 80px;
    opacity: 0.05;
    animation: float 10s ease-in-out infinite reverse;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    animation: slideInLeft 0.8s ease-out;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.about-image {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.content-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
    transition: all var(--transition-slow);
}

.content-img:hover {
    transform: scale(1.03) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-colorful);
    animation: wiggle 0.6s ease-in-out;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    background: white;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 140, 66, 0.02) 50%, transparent 51%),
                linear-gradient(-45deg, transparent 49%, rgba(255, 107, 157, 0.02) 50%, transparent 51%);
    background-size: 30px 30px;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-large);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

/* Consistent text colors in service cards */
.service-card h3 {
    color: var(--primary-orange) !important;
}

.service-card p {
    color: var(--text-medium) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink), var(--primary-purple), var(--primary-blue));
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: rainbow 4s ease infinite;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-orange);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    animation: wiggle 0.8s ease-in-out;
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    transition: color var(--transition-normal);
}

.service-card:hover h3 {
    color: var(--primary-orange);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
}

/* ==========================================================================
   ADOPT SECTION
   ========================================================================== */
.adopt {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
    position: relative;
    overflow: hidden;
}

.adopt::before {
    content: '🐱';
    position: absolute;
    top: 10%;
    left: 2%;
    font-size: 60px;
    opacity: 0.08;
    animation: float 12s ease-in-out infinite;
}

.adopt::after {
    content: '🐶';
    position: absolute;
    bottom: 10%;
    right: 2%;
    font-size: 70px;
    opacity: 0.08;
    animation: float 15s ease-in-out infinite reverse;
}

.adoption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.adoption-card {
    background: white;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-bounce);
    position: relative;
    border: 3px solid transparent;
}

/* Consistent text colors in adoption cards */
.adoption-card .animal-name {
    color: var(--primary-orange) !important;
}

.adoption-card .animal-age,
.adoption-card .animal-breed,
.adoption-card .animal-personality {
    color: var(--text-medium) !important;
}

.adoption-card p {
    color: var(--text-medium) !important;
}

.adoption-card:hover {
    transform: translateY(-12px) rotate(1deg);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-pink);
}

.adoption-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.animal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.adoption-card:hover .animal-img {
    transform: scale(1.1);
}

.adoption-info {
    padding: 25px;
}

.adoption-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.animal-details {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adoption-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.adopt-btn {
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-purple));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition-bounce);
    display: inline-block;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.adopt-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4);
    animation: bounce 0.6s ease-in-out;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team {
    background: white;
    position: relative;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-image {
    position: relative;
    animation: slideInLeft 0.8s ease-out;
}

.team-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--primary-yellow);
    box-shadow: var(--shadow-strong);
    transition: all var(--transition-bounce);
}

.team-img:hover {
    transform: scale(1.05);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.3);
    animation: wiggle 0.8s ease-in-out;
}

.team-text {
    animation: slideInRight 0.8s ease-out;
}

.team-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.team-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.president-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-medium);
    border-left: 5px solid var(--primary-pink);
    margin: 30px 0;
    position: relative;
}

.president-info::before {
    content: '👩‍💼';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 40px;
    opacity: 0.3;
}

.president-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.president-info p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '📧';
    position: absolute;
    top: 15%;
    left: 3%;
    font-size: 80px;
    opacity: 0.06;
    animation: float 14s ease-in-out infinite;
}

.contact::after {
    content: '📞';
    position: absolute;
    bottom: 15%;
    right: 3%;
    font-size: 70px;
    opacity: 0.06;
    animation: float 16s ease-in-out infinite reverse;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    animation: slideInLeft 0.8s ease-out;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
    transition: all var(--transition-bounce);
    border: 2px solid transparent;
}

.contact-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-colorful);
    border-color: var(--primary-blue);
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.contact-item strong {
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal);
}

.contact-item a:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    animation: slideInRight 0.8s ease-out;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: border-color var(--transition-normal);
}

.contact-form:hover {
    border-color: rgba(255, 140, 66, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-medium);
    font-size: 16px;
    color: var(--text-dark);
    background: white;
    transition: all var(--transition-normal);
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
    transform: scale(1.02);
}

.form-group textarea {
    min-height: 120px;
}

/* CTA Section */
.cta-section {
    background: var(--bg-light);
    border: 2px solid var(--primary-orange);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.cta-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    background: var(--primary-orange);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-colorful);
    transition: all var(--transition-bounce);
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-large:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: bounce 0.8s ease-in-out;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.footer {
    background: var(--text-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink), var(--primary-purple), var(--primary-blue));
    background-size: 400% 400%;
    animation: rainbow 4s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
    animation: slideInUp 0.8s ease-out;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.footer-logo:hover {
    transform: scale(1.05);
    animation: wiggle 0.6s ease-in-out;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-bounce);
}

.social-links .social-link:hover {
    background: var(--primary-orange);
    transform: translateY(-3px) scale(1.1);
    animation: bounce 0.6s ease-in-out;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-normal);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Contact Info */
.contact-info p {
    color: var(--text-dark) !important;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-info strong {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.contact-info a {
    color: var(--primary-orange) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.contact-info a:hover {
    color: var(--primary-pink) !important;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    text-align: center;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-legal-links a:hover {
    color: var(--primary-orange);
}

.footer-legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-normal);
}

.footer-legal-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   ERROR PAGE STYLES
   ========================================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '😿';
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 100px;
    opacity: 0.08;
    animation: float 10s ease-in-out infinite;
}

.error-page::after {
    content: '🏠';
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-size: 80px;
    opacity: 0.08;
    animation: float 12s ease-in-out infinite reverse;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.error-image {
    text-align: center;
    animation: slideInLeft 0.8s ease-out;
}

.error-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    transition: all var(--transition-bounce);
}

.error-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.3);
    animation: wiggle 0.8s ease-in-out;
}

.error-text {
    animation: slideInRight 0.8s ease-out;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    transition: all var(--transition-bounce);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.helpful-links {
    background: white;
    padding: 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.helpful-links h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.helpful-links ul {
    list-style: none;
}

.helpful-links li {
    margin-bottom: 8px;
}

.helpful-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    padding-left: 20px;
}

.helpful-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    transition: transform var(--transition-normal);
}

.helpful-links a:hover {
    color: var(--primary-orange);
    transform: translateX(10px);
}

.helpful-links a:hover::before {
    transform: translateX(5px);
}

.emergency-info {
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    color: white;
    padding: 20px;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-soft);
    animation: pulse 2s infinite;
}

.emergency-info strong {
    font-weight: 800;
    font-size: 1.1rem;
}

.emergency-info a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    transition: all var(--transition-normal);
}

.emergency-info a:hover {
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   LEGAL PAGE STYLES
   ========================================================================== */
.legal-page {
    background: var(--bg-light);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    color: white;
    padding: 180px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="20" cy="20" r="2"/></g></g></svg>');
    animation: float 20s linear infinite;
}

.page-header-content {
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb {
    font-size: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.breadcrumb a:hover {
    text-decoration: underline;
    opacity: 1;
}

.legal-content {
    padding: 0px 0 120px 0;
}

.legal-text {
    max-width: 900px;
    margin: 60px auto 60px auto;
    background: white;
    padding: 60px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

.legal-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.legal-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 140, 66, 0.2);
    position: relative;
}

.legal-text h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-orange);
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin: 25px 0 15px 0;
}

.legal-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.legal-text ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.legal-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-medium);
    line-height: 1.6;
}

.legal-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.legal-text strong {
    color: var(--text-dark);
    font-weight: 700;
}

.legal-text a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
}

.legal-text a:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

.contact-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-medium);
    border-left: 5px solid var(--primary-blue);
    margin: 30px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    .nav-top {
        width: 100%;
        padding: 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    .donate-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: var(--radius-medium);
    }
    
    /* Hide navigation links on mobile */
    .nav-links {
        display: none;
    }
    
    /* Fix hero section positioning */
    .hero {
        margin-top: 80px; /* Push hero down below fixed header */
        height: auto;
        min-height: 60vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 40px 0;
    }
    
    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        text-align: center;
        padding: 20px 15px;
        margin-left: 0;
    }
    
    /* Side by side hero buttons */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        flex: 1;
        max-width: 140px;
        padding: 12px 8px;
        font-size: 14px;
        text-align: center;
    }
    
    .hero-background {
        width: 100%;
        left: 0;
    }
    
    .hero-bg-img {
        opacity: 0.2;
    }
    
    .about-content,
    .team-content,
    .contact-content,
    .error-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Fix contact section - single column layout */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    /* Fix contact info boxes - ensure they fit in viewport */
    .contact-info {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .contact-item {
        margin: 0 0 15px 0;
        padding: 20px 15px !important;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px;
        margin-top: 0;
    }
    
    .contact-item p {
        font-size: 0.9rem !important;
        margin-bottom: 0;
        line-height: 1.6;
    }
    
    /* Make email display inline on mobile */
    .contact-item .email-line {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        flex-wrap: wrap;
    }
    
    .contact-item .email-line span {
        display: inline !important;
        margin-bottom: 0 !important;
    }
    
    .contact-item .email-line a {
        display: inline !important;
        word-break: break-word;
    }
    
    /* Remove transforms and borders on mobile contact items */
    .contact-item:hover {
        border-color: transparent !important;
        transform: none !important;
        box-shadow: var(--shadow-soft);
    }
    
    /* Fix contact form - center title and contain form */
    .contact-form-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .contact-form-container h3 {
        text-align: center !important;
        margin-bottom: 20px;
        font-size: 1.4rem;
    }
    
    .contact-form {
        padding: 15px 10px !important;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 10px !important;
        font-size: 16px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-radius: var(--radius-medium);
    }
    
    .form-group textarea {
        min-height: 100px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .contact-form .btn {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        font-size: 14px;
    }
    
    
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .legal-text {
        padding: 40px 30px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        margin-top: 75px;
        padding: 30px 0;
        height: auto;
        min-height: 55vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 6px;
        font-size: 13px;
        max-width: 120px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .donate-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .navbar {
        padding: 6px 0;
    }
    
    /* Redesign mobile footer for better layout */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 0 20px;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    .footer-section h4 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }
    
    /* Mobile footer links - reorganized layout */
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links li {
        width: 100%;
    }
    
    .footer-links li:nth-child(1),
    .footer-links li:nth-child(3) {
        text-align: center;
    }
    
    .footer-links li:nth-child(2),
    .footer-links li:nth-child(4) {
        text-align: center;
    }
    
    .footer-links li:nth-child(5) {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Keep footer copyright text on one line */
    .footer-legal p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        margin-bottom: 8px;
        text-align: center;
        display: block;
        white-space: nowrap;
    }
    
    /* Mobile footer contact info - clean simple layout */
    .contact-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .contact-info p {
        margin-bottom: 8px;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Footer email line - keep centered for footer only */
    .footer .email-line {
        display: block;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .footer .email-line span {
        display: block;
        margin-bottom: 3px;
        font-size: 0.95rem;
    }
    
    .footer .email-line a {
        display: block;
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    /* Hide entire contact info section on mobile footer */
    .footer-section:nth-child(3) {
        display: none !important;
    }
    
    /* Additional mobile contact fixes for smallest screens */
    .contact-item {
        margin: 0 0 12px 0 !important;
        padding: 18px 12px !important;
        min-height: auto !important;
    }
    
    .contact-item h3 {
        font-size: 1rem !important;
        margin-bottom: 10px;
    }
    
    .contact-item p {
        font-size: 0.85rem !important;
        margin-bottom: 0;
        line-height: 1.5;
    }
    
    /* Ensure location text appears properly */
    .contact-item .location-text {
        display: inline-block;
        margin-top: 5px;
    }
    
    .contact-form-container h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px;
    }
    
    .contact-form {
        padding: 8px 6px !important;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px !important;
        font-size: 14px !important;
    }
    
    .form-group textarea {
        min-height: 70px !important;
    }
    
    section {
        padding: 40px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure all sections stay within viewport */
    .services-grid,
    .adoption-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .service-card,
    .adoption-card {
        margin: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix stats layout */
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .stat-item {
        padding: 15px;
        margin: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .adoption-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-icons {
        display: none;
    }
    
    .donate-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .legal-text {
        padding: 30px 20px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-scroll].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #FF4500;
        --primary-pink: #FF1493;
        --text-dark: #000000;
        --bg-white: #FFFFFF;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .header,
    .footer,
    .social-icons,
    .donate-btn,
    .btn {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-title,
    .section-title {
        color: black;
        background: none;
        -webkit-text-fill-color: unset;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   MOBILE VIEWPORT FIXES
   ========================================================================== */

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix any elements that might overflow */\n    .hero::before,\n    .about::before,\n    .about::after,\n    .services::before,\n    .adopt::before,\n    .adopt::after,\n    .contact::before,\n    .contact::after {\n        display: none; /* Hide decorative elements on mobile */\n    }\n    \n    /* Ensure CTA section fits properly */\n    .cta-section {\n        margin: 0;\n        padding: 30px 15px;\n        border-radius: var(--radius-medium);\n    }\n    \n    .cta-section h3 {\n        font-size: 1.5rem;\n    }\n    \n    .cta-section p {\n        font-size: 1rem;\n    }\n}\n\n/* ==========================================================================\n   ADDITIONAL STYLES FOR LAYOUT FIXES\n   ========================================================================== */"

/* Removed social media section - no longer needed */

/* Footer Contact Section - Fixed Visibility */
.footer .contact-info p {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 1rem;
}

.footer .contact-info strong {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.location-text {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.email-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.email-line span {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.email-line strong {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.email-line a {
    color: var(--primary-orange) !important;
    font-weight: 500;
    transition: color var(--transition-normal);
    text-decoration: none;
}

.email-line a:hover {
    color: var(--primary-pink) !important;
    text-decoration: underline;
}

/* Footer phone number - make orange like email */
.footer .contact-info a[href^="tel"] {
    color: var(--primary-orange) !important;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer .contact-info a[href^="tel"]:hover {
    color: var(--primary-pink) !important;
    text-decoration: underline;
}

/* Footer Design Credit Color Fix */
.footer-legal p a {
    color: #8a9ba8 !important;
}

.footer-legal p a:hover {
    color: var(--primary-orange) !important;
    text-decoration: underline;
}

/* Contact Info Box Size Increase */
.contact-item {
    background: white;
    padding: 40px !important;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    min-height: 180px;
    transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   CONSISTENT WHITE BOX TEXT COLORS - GLOBAL STYLES
   ========================================================================== */

/* All headings in white boxes should be orange */
.contact-item h3,
.stat-item h3,
.team-text h3,
.team-text h4,
.president-info h4,
.service-card h3,
.adoption-card .animal-name,
.about-text h3,
.cta-section h3 {
    color: var(--primary-orange) !important;
}

/* All paragraph text in white boxes should be medium gray */
.contact-item p,
.stat-item p,
.team-text p,
.president-info p,
.cta-section p,
.service-card p,
.adoption-card p,
.about-text p {
    color: var(--text-medium) !important;
}

/* Strong/bold text should be slightly darker */
.contact-item strong,
.stat-item strong,
.adoption-card strong {
    color: var(--text-dark) !important;
    font-weight: 600;
}

/* Links in white boxes should be orange */
.contact-item a,
.cta-section a:not(.btn) {
    color: var(--primary-orange) !important;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-item a:hover,
.cta-section a:not(.btn):hover {
    color: var(--primary-pink) !important;
    text-decoration: underline;
}

/* Stats specific styling */
.stat-number {
    color: var(--primary-orange) !important;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-medium) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animal card specific details */
.animal-age,
.animal-breed,
.animal-personality {
    color: var(--text-medium) !important;
}

/* Service icons should remain colorful */
.service-icon {
    color: var(--primary-orange) !important;
}