:root {
     --bg-color: #0b0f19;
     --card-bg: rgba(255, 255, 255, 0.03);
     --card-border: rgba(255, 255, 255, 0.08);
     --text-primary: #ffffff;
     --text-secondary: #94a3b8;
     --accent-color: #6366f1;
     --glow-color: rgba(99, 102, 241, 0.15);
}

* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Plus Jakarta Sans', sans-serif;
     scroll-behavior: smooth;
}

body {
     background-color: var(--bg-color);
     color: var(--text-primary);
     min-height: 100vh;
     overflow-x: hidden;
     position: relative;
}

.hero {
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap: 10px;
     height: 100vh;
     text-align: center;
     font-size: 32px;
}

.head {
     display: flex;
     justify-content: space-around;
     align-items: center;
     padding-top: 20px;
     font-size: 20px;
}

.head .links {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 50px;
}

.head .links li {
     list-style-type: none;
}

.head .links li a {
     text-decoration: none;
     color: white;
}

.head .links li a:hover {
     color: rgba(255, 255, 255, 0.651);
}

.stButton {
     text-decoration: none;
     background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
     color: white;
     padding-top: 15px;
     padding-bottom: 15px;
     padding-left: 30px;
     padding-right: 30px;
     border-radius: 40px;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.582), inset 0 0 10px rgba(250, 159, 245, 0.705);
     transition: 0.3s ease;
}

.exButton {
     text-decoration: none;
     background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
     color: white;
     padding-top: 20px;
     padding-bottom: 20px;
     padding-left: 30px;
     padding-right: 30px;
     margin-top: 40px;
     border-radius: 40px;
     font-size: 25px;
     box-shadow: 0 0 20px #f374b38e, inset 0 0 10px rgba(250, 159, 245, 0.705);
     transition: 0.3s ease;
}

.spec {
     font-size: 15px;
     background: linear-gradient(135deg, #6365f160, #a955f775, #ec489a71);
     border: solid 1px rgba(255, 255, 255, 0.466);
     padding: 10px;
     padding-left: 20px;
     padding-right: 20px;
     border-radius: 40px;
     box-shadow: 0 0 50px #f374b38e;
}

.exButton:hover,
.stButton:hover {
     box-shadow: 0 0 50px #f374b38e, inset 0 0 40px rgba(250, 159, 245, 0.705);
     background: linear-gradient(185deg, #6366f1, #a855f7, #ec4899);
}

.gdt {
     /* 1. Define your custom gradient colors */
     background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);

     /* 2. Clip the background background grid strictly to the text letters */
     -webkit-background-clip: text;
     background-clip: text;

     /* 3. Make the default text color transparent so the background shows through */
     -webkit-text-fill-color: transparent;
     color: transparent;

     /* Optional: Make it bold so the gradient is easier to see */
     font-weight: bold;
}

.glow-bg2 {
     position: absolute;
     top: -10%;
     left: 50%;
     transform: translateX(-50%);
     width: 1000px;
     height: 900px;
     background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
     z-index: -1;
     pointer-events: none;
}

.glow-bg {
     position: absolute;
     top: 35%;
     left: 50%;
     transform: translateX(-50%);
     width: 600px;
     height: 600px;
     background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
     z-index: -1;
     pointer-events: none;
}

.slider {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 40px 20px;
     gap: 25px;
}

.logo {
     font-size: 2rem;
     font-weight: 700;
     letter-spacing: 2px;
}

.logo span {
     color: var(--accent-color);
     text-shadow: 0 0 15px var(--accent-color);
}

/* Container Bar mimicking image_85c0b0.png */
.apple-nav {
     position: relative;
     display: flex;
     background: linear-gradient(180deg, #092042 0%, #05142b 100%);
     border: 1px solid rgba(255, 255, 255, 0.05);
     box-shadow:
          inset 0 1px 2px rgba(255, 255, 255, 0.1),
          0 10px 30px rgba(0, 0, 0, 0.5);
     padding: 6px;
     border-radius: 40px;
     width: max-content;
     align-items: center;
     isolation: isolate;
     /* Keeps text layered correctly over the sliding pill */
}

/* The Sliding Background Pill with Apple Smoothness */
.nav-glow-pill {
     position: absolute;
     top: 6px;
     left: 6px;
     height: calc(100% - 12px);
     background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
     border-radius: 32px;
     box-shadow:
          inset 0 1px 1px rgba(255, 255, 255, 0.3),
          0 4px 15px rgba(15, 76, 183, 0.5),
          0 1px 3px rgba(0, 0, 0, 0.4);
     /* 'cubic-bezier' replicates the signature Apple fluid spring effect */
     transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     z-index: 1;
     pointer-events: none;
}

/* Individual Tab Items */
.nav-item {
     position: relative;
     background: transparent;
     border: none;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 4px;
     padding: 12px 28px;
     cursor: pointer;
     z-index: 2;
     min-width: 110px;
     transition: color 0.3s ease;
}

/* Icon & Label Styling matching image_85c0b0.png */
.nav-item .icon {
     font-size: 1.2rem;
     color: #728aa7;
     transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item .label {
     font-size: 0.85rem;
     font-weight: 500;
     color: #728aa7;
     letter-spacing: 0.3px;
     transition: color 0.3s ease;
}

/* Active State Colors */
.nav-item.active .icon,
.nav-item.active .label {
     color: #ffffff;
     text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Subtle scale bounce effect when pressing down */
.nav-item:active .icon {
     transform: scale(0.9);
}

/* Products Grid Setup */
main {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px 60px 20px;
}

.premium-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 30px;
}

/* Glassmorphic Phone Cards */
.premium-card {
     background: var(--card-bg);
     border: 1px solid var(--card-border);
     border-radius: 20px;
     padding: 20px;
     position: relative;
     overflow: hidden;
     backdrop-filter: blur(12px);
     transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.premium-card:hover {
     transform: translateY(-8px);
     border-color: rgba(99, 102, 241, 0.4);
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

/* Premium Badges */
.card-badge {
     position: absolute;
     top: 15px;
     left: 15px;
     background: rgba(99, 102, 241, 0.15);
     border: 1px solid rgba(99, 102, 241, 0.3);
     color: #a5b4fc;
     padding: 4px 12px;
     font-size: 0.75rem;
     font-weight: 700;
     border-radius: 20px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
}

/* Image Showcase Wrapper */
.image-wrapper {
     width: 100%;
     aspect-ratio: 1 / 1;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-top: 15px;
     margin-bottom: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
}


.phone-image {
     max-width: 80%;
     max-height: 80%;
     object-fit: contain;
     filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
     transition: transform 0.4s ease;
}

.phone-bgImage {
     max-width: 90%;
     border-radius: 30px;
     max-height: 100%;
     object-fit: contain;
     position: absolute;
     z-index: -1;
}

.premium-card:hover .phone-image {
     transform: scale(1.3) rotate(-3deg);
}

/* Typography Inside Cards */
.brand-subtitle {
     color: var(--accent-color);
     font-size: 0.8rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 1px;
     margin-bottom: 4px;
}

.phone-title {
     font-size: 1.25rem;
     font-weight: 600;
     margin-bottom: 12px;
     line-height: 1.3;
}

/* UI Color Tags */
.color-container {
     display: flex;
     gap: 6px;
     margin-bottom: 20px;
     flex-wrap: wrap;
}

.color-dot {
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     padding: 3px 10px;
     font-size: 0.75rem;
     border-radius: 6px;
     color: var(--text-secondary);
}

.card-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-top: 1px solid var(--card-border);
     padding-top: 15px;
}

.premium-price {
     font-size: 1.4rem;
     font-weight: 700;
     color: #10b981;
     /* Premium Emerald Green for price */
}

.premium-rating {
     font-size: 0.9rem;
     color: #fbbf24;
     /* Warm Gold for star ratings */
     font-weight: 500;
}

.foot {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     height: 100%;
     padding: 30px;
     gap: 10px;
     background: linear-gradient(135deg, #6365f15e, #a955f77e, #ec489a73);
     text-align: center;
     border-radius: 300px 300px 0 0;
}