/* ========================================
   Placely - Landing Page Styles
   Vibrant & Travel-Inspired Design
   Mobile-First Responsive CSS
   ======================================== */

/* --- CSS Variables / Theme --- */
:root {
    /* Primary Colors - Trust & Exploration */
    --color-primary: #0D9488;        /* Teal */
    --color-primary-dark: #0F766E;
    --color-primary-light: #14B8A6;
    
    /* Secondary - Adventure & Energy */
    --color-secondary: #F97316;      /* Orange */
    --color-secondary-dark: #EA580C;
    
    /* Accent - Premium Feel */
    --color-accent-gold: #F59E0B;    /* Gold for highlights */
    --color-accent-purple: #A855F7;  /* For gradients */
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-cream: #FFFDF7;          /* Warm off-white background */
    --color-light-gray: #F3F4F6;
    --color-medium-gray: #9CA3AF;
    --color-dark-gray: #4B5563;
    --color-text: #1F2937;           /* Dark text for readability */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #2DD4BF 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    --gradient-purple: linear-gradient(135deg, #A855F7 0%, #C084FC 100%);
    --gradient-feature: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.4);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent-gold) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-align: center;
    color: var(--color-dark-gray);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-lg), 0 4px 15px rgba(249, 115, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 6px 25px rgba(249, 115, 22, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* --- Hero Section --- */
.hero {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 0;
    position: relative;
    overflow: hidden;
}

/* Animated floating particles */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* Floating gem/pin particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle-2 { top: 20%; right: 15%; animation-delay: 2s; animation-duration: 14s; }
.particle-3 { bottom: 25%; left: 20%; animation-delay: 4s; animation-duration: 13s; }
.particle-4 { bottom: 15%; right: 10%; animation-delay: 1s; animation-duration: 15s; }
.particle-5 { top: 40%; left: 5%; animation-delay: 3s; animation-duration: 11s; }
.particle-6 { top: 60%; right: 25%; animation-delay: 5s; animation-duration: 16s; }

/* Radial glow effects */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Navbar - Glassmorphic */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-sm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-md);
}

.logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: var(--color-white);
    animation: fadeInUp 0.8s ease-out;
}

/* Gradient text effect for hero title */
.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 50%, #F59E0B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-md);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

/* Hero Icon - 3D tilt effect */
.hero-icon {
    width: clamp(150px, 30vw, 250px);
    margin: var(--spacing-md) auto 0;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}

.hero-icon:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) scale(1.05);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
    .hero-icon:hover {
        transform: scale(1.05);
    }
}

/* --- Features Section --- */
.features {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Glassmorphic feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(13, 148, 136, 0.2);
    border-color: rgba(13, 148, 136, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
    transition: all 0.3s ease;
    /*animation: float 4s ease-in-out infinite;*/
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    animation-duration: 2s;
}

.feature-icon.discover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(192, 132, 252, 0.15) 100%);
}

.feature-icon.share {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.15) 100%);
}

.feature-icon.community {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-description {
    color: var(--color-dark-gray);
    line-height: 1.7;
}
}

/* --- App Preview Section --- */
.app-preview {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-cream);
}

.phone-mockup {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.phone-frame {
    width: 280px;
    height: 560px;
    background-color: #1F2937;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-xs);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
}

.map-placeholder {
    flex: 1;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-medium-gray);
    font-size: 0.875rem;
}

.place-card-preview {
    padding: var(--spacing-sm);
    background-color: var(--color-white);
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-icon {
    font-size: 2rem;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info strong {
    color: var(--color-text);
    font-size: 0.875rem;
}

.card-info small {
    color: var(--color-medium-gray);
    font-size: 0.75rem;
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .preview-features {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-md);
    }
}

.preview-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-dark-gray);
}

.check-icon {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* --- Technology Section --- */
.technology {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-card {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.tech-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.tech-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary-dark);
}

.tech-card p {
    color: var(--color-dark-gray);
    font-size: 0.9375rem;
}

/* --- Downloads Section --- */
.downloads {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-hero);
    text-align: center;
}

.downloads .section-title,
.downloads .section-subtitle {
    color: var(--color-white);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
    .download-buttons {
        flex-direction: row;
    }
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    background-color: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-store:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.store-badge {
    font-size: 1.5rem;
}

.store-text {
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
}

.download-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* --- Footer --- */
.footer {
    background-color: #1F2937;
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.logo-small {
    height: 36px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-secondary);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* --- Accessibility Enhancements --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* --- Animations --- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, 150px) rotate(720deg);
        opacity: 0;
    }
}

/* Animation utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
