/* ConfigRounded Font Faces */
@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedThin.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedThin.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedThin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedExtralight.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedExtralight.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedExtralight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedLight.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedLight.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedRegular.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedRegular.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedMedium.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedMedium.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedSemibold.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedSemibold.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedSemibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedBold.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedBold.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedExtrabold.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedExtrabold.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedExtrabold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'ConfigRounded';
    src: url('../assets/fonts/ConfigRoundedBlack.woff2') format('woff2'),
         url('../assets/fonts/ConfigRoundedBlack.woff') format('woff'),
         url('../assets/fonts/ConfigRoundedBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Root Variables */
:root {
    --primary-dark: #05050b;
    --accent-purple: #b57bff;
    --accent-blue: #4ac7ff;
    --purple-glow: rgba(181, 123, 255, 0.35);
    --purple-light: rgba(181, 123, 255, 0.15);
    --text-light: #ffffff;
    --text-gray: #9fa6c0;
    --card-bg: rgba(10, 10, 18, 0.72);
    --card-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ConfigRounded', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 20% -20%, rgba(74, 199, 255, 0.18), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(181, 123, 255, 0.22), transparent 50%),
                linear-gradient(120deg, #05050b 0%, #0b0b17 45%, #090918 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(99, 71, 255, 0.18), transparent 45%),
                radial-gradient(circle at 70% 90%, rgba(74, 199, 255, 0.18), transparent 50%);
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='160' height='160' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.35);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    height: 80px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.navbar-solid {
    background: rgba(18, 18, 18, 0.93);
    border-bottom-color: rgba(128, 42, 143, 0.2);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 40px;
    flex: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item > a,
.nav-item > button {
    color: var(--text-light);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'ConfigRounded', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item > a:hover,
.nav-item > button:hover {
    background: var(--purple-light);
}

.nav-item.active > a,
.nav-item.active > button {
    color: var(--accent-purple);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #6a1b9a) !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    color: var(--text-light) !important;
    text-decoration: none !important;
    box-shadow: 0 10px 30px var(--purple-glow) !important;
    transition: var(--transition) !important;
    display: inline-block !important;
}

.btn-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(128, 42, 143, 0.4) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(5, 5, 12, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    min-width: 280px;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.dropdown-item-image {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
}

.dropdown-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.dropdown-item-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.dropdown-item.view-all {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
}

/* Phone dropdown hero treatment */
.phone-dropdown .dropdown-menu {
    min-width: 520px;
    padding: 20px 22px;
    border-radius: 18px;
}

.phone-dropdown .dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.phone-dropdown .dropdown-item.brand-card {
    --brand-gradient: linear-gradient(135deg, rgba(128, 42, 143, 0.75), rgba(43, 20, 70, 0.95));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 18px 20px;
    min-height: 120px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    background: var(--brand-gradient);
}

.phone-dropdown .dropdown-item.brand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.phone-dropdown .dropdown-item.brand-card:hover::after {
    opacity: 1;
}

.phone-dropdown .dropdown-item-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}

.phone-dropdown .dropdown-item-label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.phone-dropdown .dropdown-item-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 150px;
}

.phone-dropdown .dropdown-item-image {
    width: 120px;
    height: auto;
    background: transparent;
}

.phone-dropdown .dropdown-item-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    transform: translateY(2px);
}

.phone-dropdown .dropdown-item.brand-card[data-brand="iphone"] {
    --brand-gradient: linear-gradient(135deg, rgba(128, 42, 143, 0.85), rgba(43, 20, 70, 0.95));
}

.phone-dropdown .dropdown-item.brand-card[data-brand="samsung"] {
    --brand-gradient: linear-gradient(135deg, rgba(0, 152, 253, 0.9), rgba(1, 59, 105, 0.95));
}

.phone-dropdown .dropdown-item.brand-card[data-brand="google"] {
    --brand-gradient: linear-gradient(135deg, rgba(49, 204, 162, 0.9), rgba(31, 83, 74, 0.95));
}

.phone-dropdown .dropdown-item.brand-card[data-brand="motorola"] {
    --brand-gradient: linear-gradient(135deg, rgba(255, 139, 62, 0.9), rgba(105, 40, 18, 0.95));
}

.phone-dropdown .dropdown-item.view-all {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--accent-purple);
    font-weight: 600;
    justify-content: flex-start;
    padding: 4px 4px 0;
    grid-column: 1 / -1;
}

.phone-dropdown .dropdown-item.view-all .dropdown-item-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.phone-dropdown .dropdown-item-arrow {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-purple);
}

/* Tablet dropdown mirrors phone-dropdown styling */
.tablet-dropdown .dropdown-menu {
    min-width: 520px;
    padding: 20px 22px;
    border-radius: 18px;
}

.tablet-dropdown .dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tablet-dropdown .dropdown-item.brand-card {
    --brand-gradient: linear-gradient(135deg, rgba(42, 84, 143, 0.75), rgba(20, 36, 70, 0.95));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 18px 20px;
    min-height: 120px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    background: var(--brand-gradient);
}

.tablet-dropdown .dropdown-item.brand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tablet-dropdown .dropdown-item.brand-card:hover::after { opacity: 1; }

.tablet-dropdown .dropdown-item.brand-card[data-brand="ipad"] {
    --brand-gradient: linear-gradient(135deg, rgba(128, 42, 143, 0.85), rgba(55, 16, 88, 0.95));
}
.tablet-dropdown .dropdown-item.brand-card[data-brand="samsung"] {
    --brand-gradient: linear-gradient(135deg, rgba(0, 152, 253, 0.9), rgba(1, 59, 105, 0.95));
}

.tablet-dropdown .dropdown-item-copy { display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.tablet-dropdown .dropdown-item-label { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.tablet-dropdown .dropdown-item-meta { font-size: 13px; color: rgba(255, 255, 255, 0.8); max-width: 150px; }
.tablet-dropdown .dropdown-item-image { width: 120px; height: auto; background: transparent; }
.tablet-dropdown .dropdown-item-image img { width: 100%; height: auto; object-fit: contain; padding: 0; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)); transform: translateY(2px); }

.tablet-dropdown .dropdown-item.view-all { flex-direction: row; align-items: center; gap: 12px; background: transparent; border: none; color: var(--accent-purple); font-weight: 600; justify-content: flex-start; padding: 4px 4px 0; grid-column: 1 / -1; }
.tablet-dropdown .dropdown-item.view-all .dropdown-item-label { font-size: 16px; text-transform: uppercase; letter-spacing: 0.15em; }
.tablet-dropdown .dropdown-item-arrow { font-size: 20px; font-weight: 600; color: var(--accent-purple); }

/* Dropdown Arrow */
.nav-arrow {
    font-size: 12px;
    transition: var(--transition);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Platform Selection */
.platform-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.platform-card:hover::before {
    opacity: 0.1;
}

.platform-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--purple-glow);
}

.platform-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.platform-card.disabled:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.platform-card .icon {
    font-size: 80px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.platform-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.platform-card .badge {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.model-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.model-card:hover::before {
    opacity: 0.15;
}

.model-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px var(--purple-glow);
}

.model-card .icon {
    font-size: 60px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.model-card h3 {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 35px 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 0.15;
}

.service-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--purple-glow);
}

.service-card .service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
}

.service-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-purple);
}

.service-card .description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.service-card .stock-status {
    margin-top: 15px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-card .in-stock {
    color: #4ade80;
}

.service-card .low-stock {
    color: #fb923c;
}

.service-card .out-of-stock {
    color: #ef4444;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 2px solid var(--accent-purple);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
}

.back-button:hover {
    background: var(--accent-purple);
    transform: translateX(-5px);
}

/* Page Title */
.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--purple-light);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar-nav {
        gap: 2px;
        margin-left: 20px;
    }

    .nav-item > a,
    .nav-item > button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 240px;
    }

    .dropdown-item-image {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
    }

    .navbar-container {
        padding: 0 15px;
        flex-wrap: nowrap;
    }

    .navbar-logo img {
        height: 35px;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-right {
        margin-left: auto;
    }

    .navbar-right .btn-primary {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .platform-selection {
        grid-template-columns: 1fr;
    }

    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }
}
.phone-dropdown .dropdown-item.brand-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-6px);
    background: var(--brand-gradient);
}
