/**
 * Friendsonrent Landing Page Styles
 * Modern, responsive design with teen-friendly colors and animations
 */

/* CSS Variables for consistent theming */
:root {
    --primary-pink: #FF6F91;
    --primary-purple: #A259FF;
    --primary-aqua: #00C2FF;
    --primary-yellow: #FFD93D;
    --gradient-pink-purple: linear-gradient(135deg, #FF6F91 0%, #A259FF 100%);
    --gradient-purple-aqua: linear-gradient(135deg, #A259FF 0%, #00C2FF 100%);
    --gradient-hero: linear-gradient(135deg, #FF6F91 0%, #A259FF 50%, #00C2FF 100%);
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #FFD93D 0%, #FF6F91 50%, #A259FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(255, 215, 61, 0.5));
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .text-gradient {
        background: none;
        -webkit-text-fill-color: initial;
        color: #FFD93D;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 61, 0.8);
        font-weight: 900;
    }
}

/* Additional fallback for mobile browsers */
@media (max-width: 768px) {
    .text-gradient {
        background: none !important;
        -webkit-text-fill-color: #FFD93D !important;
        color: #FFD93D !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 61, 0.6) !important;
        font-weight: 900 !important;
    }
}

/* Alternative attractive styling for "Anytime, Anywhere" */
.hero-title .text-gradient {
    background: linear-gradient(135deg, #FFD93D 0%, #FF6F91 50%, #A259FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
    animation: gradient-shift 3s ease-in-out infinite alternate;
    position: relative;
    color: #FFD93D; /* Fallback color for mobile */
}

/* Fallback for better visibility */
.hero-title .text-gradient::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6F91 50%, #A259FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(1px);
    opacity: 0.3;
}

@keyframes gradient-shift {
    0% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7)) hue-rotate(0deg);
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7)) hue-rotate(15deg);
        transform: scale(1.02);
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink) !important;
    text-decoration: none;
}

.brand-text {
    background: var(--gradient-pink-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-pink) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-pink-purple);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

/* Fallback for better contrast */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    color: var(--white) !important;
    z-index: 3;
    position: relative;
    text-align: center;
    padding-top: 7rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0;
    line-height: 1.1;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: none;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6F91 0%, #FF8FA3 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 111, 145, 0.3);
    border: none;
    font-weight: 600;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 111, 145, 0.4);
    color: var(--white);
    background: linear-gradient(135deg, #FF5A7A 0%, #FF7A93 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 111, 145, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, #A259FF 0%, #00C2FF 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(162, 89, 255, 0.4), 0 0 20px rgba(162, 89, 255, 0.3);
    border-color: transparent;
}

.btn-outline-light:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(162, 89, 255, 0.3), 0 0 15px rgba(162, 89, 255, 0.2);
    background: linear-gradient(135deg, #8B47E5 0%, #00A8E6 100%);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Image with Floating Cards */
.hero-image {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-pink);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
}

.card-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 4.5s;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--white);
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-pink-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-pink);
    font-size: 2.5rem;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: var(--gradient-pink-purple);
    color: var(--white);
    transform: scale(1.1);
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Categories Section */
.categories-section {
    background: var(--light-bg);
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

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

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-pink-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple-aqua);
    z-index: -1;
}

.cta-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-light {
    background: var(--white);
    color: var(--primary-purple);
    box-shadow: var(--shadow);
}

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

/* Footer */
.footer-section {
    background: var(--text-dark);
    color: var(--white);
}

.footer-brand h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gradient-pink-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--white);
}

.footer-section h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-pink);
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Additional text visibility fixes */
.hero-title,
.hero-subtitle,
.hero-content * {
    color: var(--white) !important;
}

/* Ensure text is always visible */
.hero-section h1,
.hero-section p,
.hero-section .stat-number,
.hero-section .stat-label {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced text visibility for mobile */
@media (max-width: 768px) {
    .hero-section h1,
    .hero-section p,
    .hero-section .stat-number,
    .hero-section .stat-label {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .hero-title {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.3) !important;
        margin-top: 0;
        padding-top: 0;
    }
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        min-width: 180px;
        padding: 12px 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: 80vh;
    }
    
    .hero-content {
        padding-top: 4.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Ensure gradient text is visible on tablets */
    .hero-title .text-gradient {
        -webkit-text-fill-color: #FFD93D !important;
        color: #FFD93D !important;
        background: none !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 215, 61, 0.5) !important;
        filter: none !important;
        animation: none !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .hero-stats .stat-item {
        text-align: center;
        min-width: 120px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-content {
        padding-top: 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
        margin-top: 0;
        padding: 0 0.5rem;
        padding-top: 0;
    }
    
    /* Ensure gradient text is visible on mobile */
    .hero-title .text-gradient {
        -webkit-text-fill-color: #FFD93D !important;
        color: #FFD93D !important;
        background: none !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 61, 0.6) !important;
        filter: none !important;
        animation: none !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats .stat-item {
        min-width: 100px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-image {
        height: 250px;
        margin-top: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .floating-card {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }
    
    .floating-card i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-card,
    .category-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-card i,
    .category-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .step-card {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .step-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-section {
        padding: 2rem 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding-top: 3.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-top: 0;
        padding: 0 0.25rem;
        padding-top: 0;
    }
    
    /* Ensure gradient text is visible on extra small devices */
    .hero-title .text-gradient {
        -webkit-text-fill-color: #FFD93D !important;
        color: #FFD93D !important;
        background: none !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 61, 0.7) !important;
        filter: none !important;
        animation: none !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
    
    .hero-buttons {
        padding: 0 0.25rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding: 0 0.25rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
    
    .feature-card,
    .category-card,
    .step-card {
        padding: 1rem 0.75rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        padding: 0 0.25rem;
    }
    
    .cta-subtitle {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn, .nav-link, .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .section {
        padding: 2rem 0;
    }
    
    /* Improve text readability */
    .hero-title, .section-title, .cta-title {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Better button spacing */
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Improve card layouts */
    .feature-card, .category-card, .step-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    /* Better navigation */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Improve form elements */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    /* Better scrolling */
    .hero-section, .section {
        scroll-margin-top: 2rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .hero-content {
        padding-top: 3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        max-width: 500px;
    }
    
    .hero-buttons .btn {
        flex: 1;
        min-width: auto;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e9ecef;
        --text-light: #adb5bd;
        --light-bg: #212529;
    }
    
    body {
        background-color: #121212;
        color: var(--text-dark);
    }
    
    .feature-card, .category-card, .step-card {
        background-color: #1e1e1e;
        border: 1px solid #333;
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-pink-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-pink) !important;
}

.bg-primary {
    background: var(--gradient-pink-purple) !important;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-hover:hover {
    box-shadow: var(--shadow-hover);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .cta-section,
    .footer-section {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        color: var(--text-dark);
    }
}

/* Featured Companions Section */
.featured-companions-section {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.featured-companions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 111, 145, 0.05) 0%, rgba(162, 89, 255, 0.05) 50%, rgba(0, 194, 255, 0.05) 100%);
    pointer-events: none;
}

.companion-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.companion-photo {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.companion-card:hover .companion-photo img {
    transform: scale(1.1);
}

.verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-pink-purple);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 111, 145, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 111, 145, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 111, 145, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 111, 145, 0.3);
    }
}

.companion-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.companion-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.companion-age,
.companion-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.companion-age i,
.companion-location i {
    color: var(--primary-pink);
    width: 16px;
}

.companion-bio {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
    flex-grow: 1;
}

.companion-actions {
    text-align: center;
    margin-top: auto;
}

.companion-actions .btn {
    background: var(--gradient-pink-purple);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.companion-actions .btn:hover {
    background: var(--gradient-purple-aqua);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 89, 255, 0.3);
    color: var(--white);
}

.no-companions {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.no-companions i {
    color: var(--primary-pink);
}

.no-companions h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-companions p {
    margin-bottom: 2rem;
}

/* Responsive Design for Companions */
@media (max-width: 768px) {
    .companion-photo {
        height: 200px;
    }
    
    .companion-info {
        padding: 1rem;
    }
    
    .companion-name {
        font-size: 1.1rem;
    }
    
    .companion-age,
    .companion-location {
        font-size: 0.85rem;
    }
    
    .companion-bio {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .companion-photo {
        height: 180px;
    }
    
    .companion-info {
        padding: 0.75rem;
    }
    
    .verified-badge {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

