/* Custom CSS for MealScribe Website */

/* Phone Mockup Styles - Apple-inspired design */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.phone-mockup-small {
    position: relative;
    width: 200px;
    height: 400px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 30px;
    padding: 15px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateY(-3deg) rotateX(3deg);
    transition: transform 0.3s ease;
}

.phone-mockup-small:hover {
    transform: perspective(1000px) rotateY(-1deg) rotateX(1deg) scale(1.05);
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.phone-mockup-small .phone-image {
    border-radius: 20px;
}

/* Add notch effect */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #000;
    border-radius: 3px;
    z-index: 10;
}

.phone-mockup-small::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #000;
    border-radius: 2px;
    z-index: 10;
}

/* Feature Cards */
.feature-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Section Enhancements */
.hero.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero.is-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-body {
    position: relative;
    z-index: 1;
}

/* Button Enhancements */
.button.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.button.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.button.is-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.button.is-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 147, 251, 0.3);
    color: white;
}

/* Navigation Enhancements */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-item {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: #667eea !important;
}

/* Footer Enhancements */
.footer {
    background: #2c2c2c;
    color: #fff;
}

.footer .title {
    color: #ffffff !important;
    font-weight: 600;
}

.footer .title.is-5,
.footer .title.is-6 {
    color: #ffffff !important;
    opacity: 1;
}

.footer p {
    color: #fff;
}

.footer a {
    color: #667eea;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: none;
    }
    
    .phone-mockup-small {
        width: 180px;
        height: 360px;
        transform: none;
    }
    
    .hero .title.is-1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle.is-4 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .phone-mockup-small {
        width: 150px;
        height: 300px;
    }
}

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

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

/* Custom spacing */
.mb-6 {
    margin-bottom: 3rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

/* App Store Button Styles */
.button.is-large {
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.button.is-large .icon {
    font-size: 1.5rem;
}

/* Section Backgrounds */
.has-background-light {
    background-color: #f8f9fa !important;
}

/* Typography Enhancements */
.title.is-1 {
    font-weight: 700;
    line-height: 1.2;
}

.title.is-2 {
    font-weight: 600;
    line-height: 1.3;
}

.subtitle.is-5 {
    font-weight: 400;
    opacity: 0.8;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading {
    animation: pulse 2s infinite;
}
