/* ========== Tablet Styles (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Typography */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .lead {
        font-size: 18px;
    }

    /* Container */
    .container {
        padding-left: var(--tablet-padding);
        padding-right: var(--tablet-padding);
    }

    /* Cards - 2 columns where appropriate */
    .row.g-4 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Navigation */
    .navbar-collapse {
        background: transparent;
        border: none;
        margin-top: 0;
        padding: 0;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0 0.2rem;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        padding: 6rem 0 5rem;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .hero-section .btn {
        width: auto;
    }

    /* Section Padding */
    .section-padding {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    /* Forms */
    .form-row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Footer */
    .footer {
        text-align: left;
    }

    .footer .row > div {
        margin-bottom: 0;
    }
}

/* ========== Desktop Styles (≥ 1024px) ========== */
@media (min-width: 1024px) {
    /* Typography */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    h3 {
        font-size: 24px;
        line-height: 1.4;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 18px;
    }

    h6 {
        font-size: 16px;
    }

    .lead {
        font-size: 1.3rem;
    }

    /* Container */
    .container {
        padding-left: var(--desktop-padding);
        padding-right: var(--desktop-padding);
    }

    /* ========== Navigation Desktop ========== */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-collapse {
        background: transparent;
        border: none;
        margin-top: 0;
        padding: 0;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0 0.2rem;
        text-align: center;
        display: inline-block;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: #fff !important;
        background: rgba(103, 126, 234, 0.2);
        transform: translateY(-2px);
    }

    .nav-link:hover::before {
        width: 80%;
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(103, 126, 234, 0.3), rgba(139, 148, 251, 0.2));
        color: #fff !important;
        box-shadow: 0 0 15px rgba(103, 126, 234, 0.5);
    }

    /* Hide mobile menu overlay effects */
    .navbar-collapse::before {
        display: none;
    }

    /* ========== Cards Desktop ========== */
    .card {
        padding: 2rem;
        margin-bottom: 2rem;
        border-radius: 20px;
        transition: all 0.4s ease;
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }

    .card:hover::before {
        left: 100%;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 50px rgba(0, 242, 255, 0.3);
        border-color: var(--neon-cyan);
    }

    .card-body {
        padding: 1.5rem;
    }

    /* ========== Buttons Desktop ========== */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)) !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(103, 126, 234, 0.4);
        position: relative;
        overflow: hidden;
    }

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s, height 0.5s;
    }

    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(103, 126, 234, 0.6);
    }

    .btn-outline-primary {
        color: var(--neon-cyan) !important;
        border: 2px solid var(--neon-cyan) !important;
        background: transparent !important;
    }

    .btn-outline-primary:hover {
        background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(123, 47, 255, 0.2)) !important;
        border-color: var(--neon-purple) !important;
        color: #fff !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 242, 255, 0.4);
    }

    /* ========== Forms Desktop ========== */
    .form-control,
    .form-select {
        padding: 0.875rem 1.25rem;
        font-size: 16px;
        min-height: auto;
    }

    .form-label {
        font-size: 15px;
    }

    /* Horizontal form layouts */
    .form-row .form-label {
        text-align: right;
        padding-right: 1rem;
        padding-top: 0.5rem;
    }

    /* ========== Tables Desktop ========== */
    .table {
        min-width: auto;
    }

    .table thead th {
        padding: 1rem;
        font-size: 14px;
    }

    .table tbody td {
        padding: 1rem;
        font-size: 15px;
    }

    /* ========== Hero Section Desktop ========== */
    .hero-section {
        padding: 8rem 0 6rem;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .hero-section .btn {
        width: auto;
        margin-right: 1rem;
        margin-bottom: 0;
    }

    /* ========== Section Styles Desktop ========== */
    .section-padding {
        padding: 6rem 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    /* ========== Grid Layouts Desktop ========== */
    .row.g-4 > .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .row.g-4 > .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .row.g-4 > .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* ========== Dropdown Desktop ========== */
    .dropdown-menu {
        background: rgba(13, 26, 63, 0.95) !important;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border-radius: 15px;
        padding: 0.5rem;
        animation: fadeInDown 0.3s ease;
        width: auto;
        margin: 0;
        max-width: 300px;
    }

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

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85) !important;
        border-radius: 10px;
        padding: 0.7rem 1rem;
        transition: all 0.3s ease;
        min-height: auto;
    }

    .dropdown-item:hover {
        background: rgba(103, 126, 234, 0.3) !important;
        color: #fff !important;
        transform: translateX(5px);
    }

    /* ========== Footer Desktop ========== */
    .footer {
        padding: 5rem 0 3rem;
        text-align: left;
    }

    .footer h5 {
        font-size: 20px;
        margin-bottom: 1.5rem;
    }

    .footer h5::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    }

    .footer a {
        transition: all 0.3s ease;
    }

    .footer a:hover {
        color: var(--neon-cyan) !important;
        transform: translateX(5px);
        text-shadow: 0 0 10px var(--neon-cyan);
    }

    /* ========== Modals Desktop ========== */
    .modal-dialog {
        margin: 1.75rem auto;
        max-width: 500px;
    }

    .modal-footer .btn {
        width: auto;
        margin-bottom: 0;
        margin-left: 0.5rem;
    }

    /* ========== Service Cards Desktop ========== */
    .service-card {
        padding: 2.5rem 2rem;
        height: 100%;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .service-card:hover {
        transform: translateY(-15px);
        border-color: #667eea;
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    }

    .service-card .icon-wrapper {
        width: 90px;
        height: 90px;
        margin: 0 auto 1.5rem;
    }

    .service-card:hover .icon-wrapper {
        transform: scale(1.1) rotate(5deg);
    }

    /* ========== Product Cards Desktop ========== */
    .product-card {
        padding: 2rem;
        height: 100%;
    }

    .product-card:hover {
        border-color: #667eea;
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    }

    /* ========== Testimonial Cards Desktop ========== */
    .testimonial-card-new {
        padding: 2rem;
        height: 100%;
    }

    .testimonial-card-new:hover {
        border-color: #667eea;
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    }

    /* ========== Signal Cards Desktop ========== */
    .signal-card {
        padding: 1.5rem;
        height: 100%;
    }

    .signal-card:hover {
        border-color: #667eea;
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    }

    /* ========== Nav Pills Desktop ========== */
    .nav-pills {
        background: var(--card-glass);
        padding: 0.5rem;
        border-radius: 50px;
        display: inline-flex;
        border: 1px solid var(--border-glow);
    }

    .nav-pills .nav-link {
        background-color: transparent;
        color: #adb5bd;
        border: none;
        margin: 0 0.25rem;
        font-weight: 600;
        border-radius: 50px;
        padding: 0.75rem 1.5rem;
    }

    .nav-pills .nav-link:hover {
        color: #fff;
    }

    .nav-pills .nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    /* ========== User Profile Desktop ========== */
    .rounded-circle {
        border: 2px solid var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
        transition: all 0.3s ease;
    }

    .rounded-circle:hover {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(0, 242, 255, 0.8);
    }

    /* ========== Scrollbar Desktop ========== */
    ::-webkit-scrollbar {
        width: 10px;
    }

    /* ========== Animations Desktop ========== */
    .parallax-element {
        transition: transform 0.3s ease-out;
    }

    .glow-effect:hover {
        filter: drop-shadow(0 0 10px var(--neon-cyan));
    }

    /* ========== Hover Effects (Desktop Only) ========== */
    @media (hover: hover) {
        .card:hover {
            transform: translateY(-10px);
        }

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

/* ========== Large Desktop (≥ 1400px) ========== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-section h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

