/* ==========================================
   RakhoSafe - GPS Vehicle Tracking Website
   ========================================== */

:root {
    --primary: #060097;
    --primary-dark: #040066;
    --secondary: #c10fff;
    --accent: #ffcd57;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0a0a2e;
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; transition: all 0.3s ease; }

/* ---- Utility Classes ---- */
.text-accent { color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }

.btn-accent {
    background: var(--accent);
    color: var(--text);
    font-weight: 600;
    border: 2px solid var(--accent);
}
.btn-accent:hover {
    background: #ffc233;
    border-color: #ffc233;
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 205, 87, 0.4);
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border: 2px solid var(--primary);
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 0, 151, 0.3);
}

.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
}
.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 0, 151, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Navigation ---- */
#mainNav {
    background: rgba(6, 0, 151, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(6, 0, 151, 1);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#mainNav .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover {
    color: var(--accent) !important;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, #1a0066 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 15, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 205, 87, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-buttons .btn {
    padding: 12px 32px;
    font-size: 1rem;
}

.hero-illustration svg {
    max-width: 420px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ---- Features Section ---- */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 0, 151, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.feature-card h5 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- How It Works ---- */
.how-it-works-section {
    padding: 100px 0;
    background: white;
}

.step-card {
    padding: 40px 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h5 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ---- Stats Section ---- */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: inline;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    font-size: 1rem;
}

/* ---- Pricing Section ---- */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(6, 0, 151, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(6, 0, 151, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-header {
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.pricing-header h5 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price .currency {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
    font-size: 0.95rem;
}

.pricing-features li i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.pricing-features li .fa-check {
    color: #10b981;
}

.pricing-features li .fa-times {
    color: #ef4444;
}

.pricing-features li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.5;
}

/* ---- Testimonials ---- */
.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 35px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.testimonial-card .stars {
    color: var(--accent);
    font-size: 1rem;
}

.testimonial-card p {
    color: var(--text);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    font-size: 2.5rem;
    color: var(--primary);
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author small {
    color: var(--text-light);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ---- Page Header (for inner pages) ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 140px 0 60px;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
}

/* ---- Contact Page ---- */
.contact-info-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid #e2e8f0;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-item h6 {
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(6, 0, 151, 0.15);
}

/* ---- About Page ---- */
.about-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.about-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.about-feature-item h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.about-feature-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ---- Footer ---- */
.footer-section {
    background: var(--bg-dark);
    padding-top: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-links li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
}

/* ---- Scroll Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .hero-illustration { margin-top: 40px; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }
    .hero-buttons .btn { display: block; width: 100%; margin-bottom: 10px; }
    .hero-buttons .btn.me-3 { margin-right: 0 !important; }
    .stat-number { font-size: 2rem; }
}
