/* =====================================================
   PAGESRUS HOMEPAGE STYLES
===================================================== */

/* ===========================
   GLOBAL RESET & VARIABLES
=========================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #10b981);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;  /* Increased navbar height */
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}

section {
    padding: 100px 0;
}

/* ===========================
   NAVBAR - FIXED
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;  /* Increased height */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    padding: 15px 0;  /* Added vertical padding */
    display: flex;
    align-items: center;
}

.navbar .container {
    position: relative;
    display: flex;
    justify-content: space-between;   /* Space between logo and nav actions */
    align-items: center;
    height: 100%;
    width: 100%;
}

/* ===========================
   LOGO - TOP LEFT (UPDATED TO MATCH DASHBOARD.PHP)
=========================== */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;  /* Full height of navbar */
    padding: 0;
}

/* DESKTOP: Logo 120px height - SAME AS DASHBOARD.PHP */
.logo-img {
    height: 120px !important;  /* MATCHES DASHBOARD.PHP SIZE */
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
    max-width: none !important;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Logo text fallback */
.logo-text-fallback {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   NAV ACTIONS - RIGHT ALIGNED (DESKTOP)
=========================== */
.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-actions .btn {
    padding: 12px 24px;  /* Reduced padding */
    font-size: 1rem;  /* Slightly smaller font */
    white-space: nowrap;  /* Prevent text wrapping */
    min-width: 140px;  /* Minimum width */
    text-align: center;
    height: 48px;  /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   MOBILE MENU TOGGLE (HAMBURGER)
=========================== */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--light);
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger icon styles */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===========================
   MOBILE MENU DROPDOWN
=========================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.1rem;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    background: radial-gradient(ellipse at 50% 30%, #1e1b4b, var(--darker) 70%);
    padding: 160px 0 100px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #c7d2fe;
    line-height: 1.7;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 30px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;  /* Prevent text wrapping */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

/* ===========================
   TRUST BADGES
=========================== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.badge i {
    font-size: 1.8rem;
    color: var(--primary);
}

.badge-text strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

.badge-text span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===========================
   FEATURES SECTION
=========================== */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.2rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===========================
   HOW IT WORKS
=========================== */
.steps-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.3;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    box-shadow: var(--glow);
    position: relative;
    z-index: 2;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.step p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.testimonial-text {
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 25px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.author-info h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===========================
   PRICING SECTION
=========================== */
#pricing {
    scroll-margin-top: 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.plan {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.plan.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

.plan.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.plan ul {
    margin: 30px 0 35px;
    list-style: none;
}

.plan li {
    margin-bottom: 14px;
    color: #d1d5db;
    padding-left: 28px;
    position: relative;
}

.plan li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.plan .btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px 20px;
}

/* ===========================
   COMPARISON TABLE
=========================== */
.comparison {
    margin-top: 80px;
}

.comparison-table {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 40px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    padding: 20px 30px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-row.header {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--primary);
}

.comparison-row .feature {
    font-weight: 600;
    color: #fff;
}

.comparison-row .value {
    text-align: center;
    color: var(--gray);
}

.comparison-row .value.included {
    color: var(--secondary);
    font-weight: 700;
}

.comparison-row .value.excluded {
    color: #ef4444;
    opacity: 0.7;
}

/* ===========================
   FAQ
=========================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.faq-item h4 {
    margin-bottom: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.faq-item h4 i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active h4 i {
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--gray);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    line-height: 1.7;
}

.faq-item.active p {
    max-height: 300px;
    margin-top: 20px;
}

/* ===========================
   FINAL CTA
=========================== */
.final-cta {
    background: radial-gradient(ellipse at center, #1e1b4b, var(--darker) 70%);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.final-cta h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    font-weight: 800;
}

.final-cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #c7d2fe;
    font-size: 1.3rem;
    line-height: 1.7;
    position: relative;
}

.final-cta .btn {
    position: relative;
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: rgba(2, 6, 23, 0.95);
    padding: 40px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright strong {
    color: var(--light);
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE DESIGN - LOGO SIZES MATCH DASHBOARD.PHP
===================================================== */

/* TABLET VIEW (992px and below) - SAME AS DASHBOARD.PHP */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .plan {
        max-width: 100%;
    }
    
    .plan.popular {
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* Tablet logo size - MATCHES DASHBOARD.PHP (80px) */
    .logo-img {
        height: 80px !important;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.4rem;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .comparison-row.header {
        display: none;
    }
}

/* MOBILE VIEW (768px and below) - SAME AS DASHBOARD.PHP */
@media (max-width: 768px) {
    /* Mobile logo size - MATCHES DASHBOARD.PHP (70px) */
    .logo-img {
        height: 70px !important;
    }
    
    .logo-container {
        height: 70px;
    }
    
    /* Mobile navbar styles */
    .nav-actions {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .mobile-menu {
        top: 80px;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        height: 80px;
        padding: 15px 0;
    }
    
    /* Hero section */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-badges,
    .features-grid,
    .testimonial-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .final-cta h2 {
        font-size: 2.5rem;
    }
    
    .plan {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .badge {
        justify-content: center;
    }
    
    body {
        padding-top: 80px;
    }
}

/* SMALL MOBILE (480px and below) - SAME AS DASHBOARD.PHP */
@media (max-width: 480px) {
    /* Small mobile logo size - MATCHES DASHBOARD.PHP (60px) */
    .logo-img {
        height: 60px !important;
    }
    
    .logo-container {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        right: 15px;
    }
    
    .hamburger {
        width: 25px;
        height: 18px;
    }
    
    .mobile-menu {
        top: 75px;
    }
    
    .navbar {
        height: 80px;
        padding: 15px 0;
    }
}

/* Desktop styles - show nav-actions, hide mobile menu */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .nav-actions {
        display: flex !important;
    }
}