/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    --text-dark: #334155;
    --text-light: #f8fafc;
    --card-bg: #ffffff;
    --section-bg: #f8fafc;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

p, .lead {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 41, 59, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.7)), 
                linear-gradient(rgba(30, 41, 59, 0.3), rgba(30, 41, 59, 0.4)),
                url('https://images.unsplash.com/photo-1666885181590-b86279a06b28?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center/cover;
    color: white;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Stats Section */
.stats-section {
    background: var(--gradient);
    color: white;
    padding: 5rem 0;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
}

/* Security Badge */
.security-badge {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.card-text {
    color: #64748b;
    line-height: 1.7;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--accent);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* App Showcase Styles */
.app-mockup-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.multi-device-showcase {
    width: 100%;
    max-width: 600px;
}

/* Desktop Mockup */
.desktop-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.desktop-screen {
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.desktop-screen:hover {
    transform: translateY(-5px);
}

.desktop-header {
    background: #374151;
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ef4444;
}

.control.minimize {
    background: #f59e0b;
}

.control.maximize {
    background: #10b981;
}

.url-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #9ca3af;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace;
}

.desktop-content {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Tablet Mockup */
.tablet-mockup {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.tablet-screen {
    background: #1e293b;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.tablet-screen:hover {
    transform: translateY(-3px);
}

.tablet-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #374151;
    border-radius: 3px;
}

.tablet-content {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

/* Mobile Mockup - Small version for desktop showcase */
.phone-mockup-small {
    position: relative;
    width: 120px;
    height: 240px;
    background: #1e293b;
    border-radius: 25px;
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.phone-mockup-small:hover {
    transform: translateY(-3px);
}

.phone-mockup-small::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: #1e293b;
    border-radius: 10px;
    z-index: 2;
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Regular Mobile Mockup for mobile screens */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1e293b;
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1e293b;
    border-radius: 15px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Device Labels */
.device-labels {
    margin-top: 1rem;
    gap: 2rem;
}

.device-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
}

/* Device Compatibility Grid */
.device-compatibility .col-4 > div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.device-compatibility .col-4 > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: white !important;
}

.feature-badge {
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.feature-content {
    padding: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.tracking-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tracking-features .d-flex {
    transition: transform 0.3s ease;
}

.tracking-features .d-flex:hover {
    transform: translateX(10px);
}

.rating-stars {
    font-size: 1.2rem;
}

.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Responsive Design for App Showcase */
@media (max-width: 1200px) {
    .desktop-content {
        height: 240px;
    }
    
    .tablet-content {
        height: 160px;
    }
    
    .phone-mockup-small {
        width: 100px;
        height: 200px;
        padding: 10px;
    }
    
    .phone-mockup-small::before {
        width: 50px;
        height: 12px;
    }
}

@media (max-width: 992px) {
    .phone-mockup {
        width: 250px;
        height: 500px;
        padding: 15px;
    }
    
    .phone-mockup::before {
        width: 100px;
        height: 20px;
    }
    
    .feature-content {
        padding: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 12px;
    }
    
    .app-mockup-container {
        padding: 1rem;
    }
    
    .tracking-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .feature-list li {
        font-size: 1rem;
    }
    
    .device-compatibility .row {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .phone-mockup {
        width: 180px;
        height: 360px;
        padding: 10px;
    }
    
    .phone-mockup::before {
        width: 80px;
        height: 18px;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}


/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Pricing Section */
#pricing {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.pricing-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card .card-header h4 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1rem 0 0.5rem;
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 0.5rem;
    margin-right: 2px;
    color: var(--dark);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
}

.period {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: 5px;
}

.pricing-card.border-primary .card-header {
    background: var(--gradient) !important;
    color: white;
}

.pricing-card.border-primary .card-header h4,
.pricing-card.border-primary .price,
.pricing-card.border-primary .currency,
.pricing-card.border-primary .amount,
.pricing-card.border-primary .period,
.pricing-card.border-primary .text-muted {
    color: white !important;
}

.pricing-card .card-body {
    color: #495057;
}

.pricing-card ul li {
    color: #495057;
}

.pricing-card .text-muted {
    color: #6c757d !important;
}

.pricing-card ul li.text-muted {
    opacity: 0.7;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Animation for price cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

/* Hover effects */
.pricing-card .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Tooltip for feature explanations */
[data-bs-toggle="tooltip"] {
    border-bottom: 1px dotted var(--primary);
    cursor: help;
}

/* Responsive text adjustments */
@media (max-width: 767.98px) {
    .price {
        font-size: 2.5rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .pricing-card .card-body, 
    .pricing-card .card-header,
    .pricing-card .card-footer {
        padding: 1.5rem 1rem;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

footer h5, footer h6 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

footer .input-group {
    max-width: 400px;
}

footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
}

footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Backgrounds */
.bg-light {
    background-color: var(--section-bg) !important;
}

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .mission-box {
        padding: 30px;
    }
}

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

.bg-primary {
    background-color: var(--primary) !important;
}

/* Heart Animation */
.heart-beat {
    animation: heartbeat 1.2s ease-in-out infinite;
    display: inline-block;
    color: #ef4444 !important;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Alternative smoother heart beat animation */
.heart-beat-smooth {
    animation: heartbeat-smooth 1s ease-in-out infinite;
    display: inline-block;
    color: #ef4444 !important;
}

@keyframes heartbeat-smooth {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Signup Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    background: var(--gradient) !important;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h6 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Service Selection Cards */
.form-check {
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-check.border {
    border-radius: 8px;
}

.form-check-input:checked ~ .form-check-label {
    color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-purple {
    color: var(--purple);
}

/* Modal Footer */
.modal-footer {
    border-top: 2px solid #e2e8f0;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--secondary);
}

.was-validated .form-control:invalid {
    border-color: var(--danger);
}

/* Loading Spinner Animation */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .modal-body {
        max-height: 60vh;
        padding: 1rem;
    }
    
    .modal-header, .modal-footer {
        padding: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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