/* ================================
   Modern Responsive Design
   Professional Mobile-First Approach
   ================================ */

/* Logo Link Styling */
a.logo {
    text-decoration: none;
    color: inherit;
}

/* ================================
   Base Mobile Reset - Full Width
   ================================ */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* ================================
   Extra Large Desktop (1440px+)
   ================================ */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .pricing-grid {
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ================================
   Large Desktop (1200px - 1439px)
   ================================ */
@media (min-width: 1200px) and (max-width: 1439px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* ================================
   Desktop (992px - 1199px)
   ================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .pricing-grid {
        gap: 1.5rem;
    }
}

/* ================================
   Tablet (768px - 991px)
   ================================ */
@media (max-width: 991px) {

    /* Header scrolls with page */
    .header {
        position: relative;
        top: 0;
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: calc(100% - 40px);
        max-width: 400px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 0;
        border-radius: 20px;
        border: 1px solid rgba(16, 185, 129, 0.2);
        transition: all 0.3s ease;
        margin: 0 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #10b981;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hero {
        padding: 2rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 2.75rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .demo-box {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .demo-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .demo-btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    /* Features Grid - Tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
        min-height: 180px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-name {
        font-size: 1rem;
    }

    .feature-desc {
        font-size: 0.85rem !important;
    }

    /* Pricing Grid - Tablet */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px;
        margin: 0 auto;
        gap: 2rem;
    }

    .pricing-card {
        padding: 2.5rem 2rem;
    }

    .package-price {
        font-size: 3.5rem;
    }

    .form-container {
        padding: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    /* OTP Modal - Tablet */
    #otpModal .modal-content {
        margin: 20% auto !important;
        padding: 2rem !important;
        width: 90% !important;
    }

    /* FAQ Items */
    .faq-item {
        padding: 1.25rem 1.5rem !important;
    }
}

/* ================================
   Mobile Large (576px - 767px)
   ================================ */
@media (max-width: 767px) {
    .header {
        position: relative;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
        min-height: 160px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .feature-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .feature-desc {
        font-size: 0.8rem !important;
        margin-top: 0.4rem !important;
    }
}

/* ================================
   Mobile (max-width: 575px)
   Full Width Professional Layout
   ================================ */
@media (max-width: 575px) {

    /* Ensure full width on mobile */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Header - Full Width - Scrolls with Page */
    .header {
        position: relative !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 0.75rem 1rem;
        margin: 0;
    }

    .logo {
        font-size: 1.35rem;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
        background: rgba(16, 185, 129, 0.1);
        border-radius: 12px;
        color: #10b981;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 1rem 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* Hero Section - Full Width */
    .hero {
        padding: 1.5rem 1rem 3rem;
        min-height: auto;
        width: 100%;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
        letter-spacing: -0.5px;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Demo Box - Full Width */
    .demo-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
    }

    .demo-label {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .demo-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .demo-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Hero Buttons - Full Width */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Buttons - Touch Friendly */
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 12px;
    }

    /* Section - Full Width */
    .section {
        padding: 3.5rem 1rem;
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    /* Features Grid - 2 Column on Mobile */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
    }

    .feature-card {
        padding: 1rem;
        min-height: 140px;
        border-radius: 16px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .feature-name {
        font-size: 0.9rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .feature-desc {
        display: block !important;
        font-size: 0.75rem !important;
        margin-top: 0.35rem !important;
        line-height: 1.4 !important;
    }

    /* Pricing Grid - Full Width */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0;
    }

    .package-name {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .package-price {
        font-size: 2.75rem;
        margin-bottom: 0.75rem;
    }

    .package-price .currency {
        font-size: 1.5rem;
    }

    .package-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .features-list {
        margin-bottom: 1.5rem;
    }

    .features-list li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
    }

    .pricing-card .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Popular Badge */
    .popular-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    /* Form Container - Full Width */
    .form-container {
        padding: 1.5rem;
        border-radius: 20px;
        margin: 0;
    }

    .form-control {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* FAQ Items - Full Width */
    .faq-item {
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.75rem !important;
    }

    .faq-item h3 {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    .faq-item p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* CTA Banner - Full Width */
    .section>.container>div[style*="linear-gradient"] {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        margin-top: 2rem !important;
    }

    .section>.container>div[style*="linear-gradient"] h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }

    .section>.container>div[style*="linear-gradient"] p {
        font-size: 0.9rem !important;
    }

    /* Footer - Full Width */
    .footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-links a {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* OTP Modal - Full Width */
    #otpModal .modal-content {
        margin: 15% auto !important;
        padding: 1.5rem !important;
        width: 95% !important;
        border-radius: 16px !important;
    }

    #otpInput {
        font-size: 1.25rem !important;
        letter-spacing: 0.3rem !important;
    }
}

/* ================================
   Extra Small Mobile (max-width: 380px)
   ================================ */
@media (max-width: 380px) {
    .header {
        position: relative !important;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Keep 2-column grid even on smallest screens */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .feature-card {
        min-height: 130px;
        padding: 0.85rem;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .feature-name {
        font-size: 0.8rem;
    }

    .feature-desc {
        font-size: 0.7rem !important;
    }

    .package-name {
        font-size: 1.35rem;
    }

    .package-price {
        font-size: 2.5rem;
    }

    .package-price .currency {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ================================
   Utility Classes
   ================================ */

/* Hover Effects (Desktop Only) */
@media (hover: hover) {
    .btn {
        transition: all 0.3s ease;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .pricing-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Touch Devices - Disable Hover Effects */
@media (hover: none) {

    .feature-card:hover,
    .pricing-card:hover {
        transform: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .demo-box {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}