/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* FameFit Brand Colors */
    --primary: #EC4899;
    --primary-dark: #BE185D;
    --primary-light: #F9A8D4;
    --accent: #F59E0B;
    --dark: #111827;
    --light: #F9FAFB;
    --gray: #6B7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #EC4899 0%, #F9A8D4 100%);
    --gradient-shimmer: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    
    /* Typography */
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: white;
    background: var(--gradient-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Shimmer Effect */
.shimmer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shimmer {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: var(--gradient-shimmer);
    animation: shimmer 8s ease-in-out infinite;
    transform: rotate(35deg);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(35deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(35deg);
    }
}

/* Additional Shimmer Layers for Depth */
.shimmer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    animation: pulse 4s ease-in-out infinite;
}

.shimmer-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 70% 80%,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 40%
    );
    animation: pulse 6s ease-in-out infinite reverse;
}

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

/* Hero Content */
.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    color: white;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 400;
    line-height: 1.4;
}

.hero-description strong {
    font-weight: 700;
    color: white;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.coming-soon {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeIn 1.5s ease;
    z-index: 2;
}

.device-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
    height: 100%;
}

.iphone-mockup {
    position: relative;
    animation: subtleFloat 12s ease-in-out infinite;
    transform-style: preserve-3d;
    transform: perspective(2000px) rotateX(2deg) rotateY(-3deg);
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.device-screen {
    width: auto;
    height: 100%;
    max-height: 800px;
    display: block;
    filter: drop-shadow(0 80px 120px rgba(0, 0, 0, 0.4))
            drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3))
            drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
    position: relative;
}

.iphone-mockup .device-screen {
    filter: drop-shadow(0 80px 120px rgba(0, 0, 0, 0.4))
            drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3))
            drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2))
            brightness(1.02) contrast(1.05);
}

.watch-mockup {
    position: absolute;
    right: -20%;  /* Slightly overlap the iPhone's right edge */
    bottom: 2%;  /* Position near iPhone's bottom corner */
    animation: subtleFloat 12s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 10;
    transform-style: preserve-3d;
    transform: perspective(2000px) rotateX(3deg) rotateY(-5deg) translateZ(50px);
}

.watch-mockup::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
}

.watch-mockup .device-screen {
    height: 300px;
    width: auto;
    filter: drop-shadow(0 60px 100px rgba(0, 0, 0, 0.5))
            drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4))
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3))
            brightness(1.03) contrast(1.05);
    position: relative;
}


/* Footer */
.footer {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
    
    .hero-content {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: clamp(4rem, 14vw, 8rem);
    }
    
    .hero-description {
        margin: 2rem auto;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-visual {
        position: relative;
        z-index: 1;
        margin-bottom: 2rem;
    }
    
    .iphone-mockup {
        animation: none;
        transform: none;
    }
    
    .watch-mockup {
        right: -20%;  /* Keep the overlap */
        bottom: 2%;   /* Keep the position */
        animation: none !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2rem 1rem;
        gap: 1rem;
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 0.5rem;
    }
    
    .hero-visual {
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }
    
    .device-container {
        /* No scaling needed */
    }
    
    .iphone-mockup {
        /* Disable complex animations on mobile */
        animation: none;
        transform: none;
    }
    
    .iphone-mockup .device-screen {
        max-height: 400px;  /* Smaller height for mobile */
        height: auto;
    }
    
    /* Lighter shadows on mobile */
    .iphone-mockup .device-screen {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25)) brightness(1.02) contrast(1.05);
    }
    
    .watch-mockup {
        /* Force stable positioning on mobile */
        position: absolute !important;
        right: -20% !important;
        bottom: 2% !important;
        animation: none !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        transform-style: flat !important;
        -webkit-transform: none !important;
        -webkit-animation: none !important;
    }
    
    .watch-mockup .device-screen {
        height: 150px;  /* Smaller watch for mobile */
        width: auto !important;
        max-width: none !important;
        /* Lighter shadow for watch on mobile */
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3)) brightness(1.03) contrast(1.05);
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    /* Disable shimmer on mobile for performance */
    .shimmer-container,
    .shimmer,
    .shimmer-container::before,
    .shimmer-container::after {
        display: none;
    }
    
    /* Disable backdrop-filter on mobile for performance */
    .footer {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .coming-soon {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
}