/* Custom CSS for OrderTime Landing Page */

/* Global Styles */
:root {
    --primary-red: #dc3545;
    --secondary-red: #c82333;
    --light-red: #f8d7da;
    --dark-gray: #343a40;
    --medium-gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-radius: 1rem;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::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="25" cy="25" r="1" fill="%23dc3545" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23dc3545" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23dc3545" opacity="0.02"/><circle cx="10" cy="60" r="0.5" fill="%23dc3545" opacity="0.02"/><circle cx="90" cy="40" r="0.5" fill="%23dc3545" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(220, 53, 69, 0.1);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.1;
}

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

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-red);
    color: var(--white) !important;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.5rem;
}

/* Benefits Section */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: var(--primary-red);
    color: var(--white) !important;
    transform: scale(1.1);
}

.benefit-icon i {
    font-size: 1.25rem;
}

/* Integration Section */
.integration-features {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.device-mockup {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(220, 53, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-red), #28a745);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.1;
}

.square-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(220, 53, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-red);
    color: var(--white) !important;
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 2rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.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-danger {
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(45deg, var(--secondary-red), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--medium-gray);
    color: var(--medium-gray);
}

.btn-outline-secondary:hover {
    background: var(--medium-gray);
    border-color: var(--medium-gray);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #495057 100%);
}

footer a:hover {
    text-decoration: underline !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .floating-card {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .benefit-item {
        margin-bottom: 2rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Smooth animations for scroll reveal */
.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-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-red);
}
