/* Core Button Styles */
.btn-primary {
    @apply px-6 py-3 bg-primary text-white rounded-xl
           hover:bg-primary/90 hover:scale-105 hover:shadow-lg
           active:scale-95 transition-all duration-300
           inline-flex items-center justify-center;
}

.btn-secondary {
    @apply px-6 py-3 border-2 border-primary text-primary rounded-xl
           hover:bg-primary hover:text-white hover:scale-105 hover:shadow-lg
           active:scale-95 transition-all duration-300
           inline-flex items-center justify-center;
}

/* Modern Form Styles */
.modern-input-group {
    @apply relative w-full flex items-center
           bg-white
           rounded-xl
           border-2 border-gray-200
           overflow-hidden
           transition-all duration-300
           hover:border-primary/30
           focus-within:border-primary
           focus-within:ring-4
           focus-within:ring-primary/10;
}

.modern-input {
    @apply w-full px-6 py-4 pl-12
           bg-transparent
           border-none
           text-gray-700
           placeholder:text-gray-400
           focus:outline-none
           focus:ring-0;
}

.input-icon {
    @apply absolute left-4
           text-gray-400
           transition-colors duration-300;
}

.modern-input-group:focus-within .input-icon {
    @apply text-primary;
}

/* Form Label */
.form-label {
    @apply block mb-2 ml-1
           text-sm font-medium text-gray-700;
}

/* Password Toggle Button */
.password-toggle {
    @apply absolute right-4
           p-2
           text-gray-400
           hover:text-primary
           transition-colors duration-200;
}

/* Error Message */
.error-message {
    @apply mt-1.5 ml-1
           text-sm text-red-500;
}

/* Error States */
.error-message {
    @apply text-sm text-red-500 mt-1.5 ml-1;
}

.modern-input.error {
    @apply border-red-300 bg-red-50/30
           focus:border-red-400
           focus:ring-red-200/20;
}

/* Card Styles */
.card {
    @apply bg-white rounded-xl shadow-lg p-6 
           hover:shadow-xl transition-shadow duration-300;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Navigation Styles */
.nav-link {
    @apply relative py-2;
}

.nav-link::after {
    content: '';
    @apply absolute left-0 bottom-0 w-0 h-0.5 bg-primary
           transition-all duration-300 transform origin-left;
}

.nav-link:hover::after {
    @apply w-full;
}

/* Mobile Menu */
.mobile-menu {
    @apply fixed top-16 left-0 right-0 bg-white/95 backdrop-blur-sm
           transform transition-transform duration-300 ease-in-out
           border-t border-gray-100 shadow-lg;
}

.mobile-menu.hidden {
    transform: translateY(-100%);
}

.mobile-menu-button {
    @apply p-2 rounded-lg hover:bg-gray-100 
           transition-colors duration-300;
}

.mobile-menu a {
    @apply block w-full px-4 py-3 text-gray-700 
           hover:bg-primary/5 hover:text-primary
           transition-all duration-300;
}

/* Stats Card */
.stat-card {
    @apply bg-white rounded-xl shadow-lg p-8 text-center
           hover:shadow-xl transition-all duration-300
           transform hover:-translate-y-1;
}

.stat-icon {
    @apply mb-4 text-primary;
}

.stat-number {
    @apply text-4xl font-bold text-gray-800 mb-2;
}

.stat-label {
    @apply text-gray-600 font-medium;
}

/* Contact Section */
.contact-card {
    @apply flex items-start gap-6 p-8 
           bg-white/80 backdrop-blur-sm
           rounded-xl border border-gray-100
           hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)]
           hover:-translate-y-1
           transition-all duration-500;
}

.contact-icon-wrapper {
    @apply w-14 h-14 rounded-xl
           bg-gradient-to-br from-primary/10 to-primary/5
           flex items-center justify-center
           group-hover:scale-110 group-hover:rotate-6 
           group-hover:bg-primary group-hover:text-white
           transition-all duration-500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        @apply w-full mb-2 text-center justify-center;
    }
    
    .modern-input {
        @apply px-4 py-3;
    }
    
    .stat-card {
        @apply p-6;
    }
    
    .contact-card {
        @apply p-6;
    }
    
    .contact-icon-wrapper {
        @apply w-12 h-12;
    }
}

/* Modern Checkbox Styles */
.form-checkbox {
    @apply h-5 w-5 rounded border-gray-300 
           text-primary 
           focus:ring-primary/20 
           transition-colors duration-200
           cursor-pointer;
}

/* Enhanced Form Group Animations */
.form-group {
    @apply opacity-0;
    animation: slideUp 0.5s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

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

/* Modern Input Focus Effect */
.modern-input:focus {
    @apply transform scale-[1.02];
}

/* Enhanced Button Hover Effect */
button[type="submit"] {
    @apply relative overflow-hidden;
}

button[type="submit"]::after {
    content: '';
    @apply absolute inset-0 bg-white/20 
           transform scale-x-0 origin-left
           transition-transform duration-300;
}

button[type="submit"]:hover::after {
    @apply scale-x-100;
}

/* Hero Button Styles - Simplified and More Visible */
.hero-btn-primary {
    background: #22c55e;  /* Bright green */
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #4ade80;
}

.hero-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Force text color for buttons */
.hero-btn-primary *,
.hero-btn-secondary * {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon styles */
.hero-btn-primary i,
.hero-btn-secondary i {
    font-size: 1.25rem;
}

/* Carousel Styles */
.carousel-slide {
    @apply absolute inset-0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
    z-index: 0;
}

.carousel-slide.active,
.carousel-slide[style*="opacity: 1"] {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-out 0.3s;
}

.carousel-slide.active .slide-content,
.carousel-slide[style*="opacity: 1"] .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #16a34a, #22c55e);
    transform-origin: left;
}

@keyframes progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.slide-dot {
    @apply w-12 h-1.5 bg-white/30 rounded-full 
           transition-all duration-300 
           hover:bg-white/80 cursor-pointer;
}

.slide-dot.active {
    @apply bg-white w-16;
}

/* Modern Portal Styles 2024 */
.wifi-portal-container {
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 9/17; /* Shorter ratio */
}

.phone-frame {
    position: relative;
    aspect-ratio: 9/17; /* Shorter ratio */
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Modern Status Bar */
.status-bar {
    position: relative;
    height: 2rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1.5rem;
    background: #000;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 10;
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    color: #fff;
    font-size: 0.75rem;
}

/* Solar Freeze Header */
.solar-freeze-header {
    background: linear-gradient(135deg, #16a34a, #166534);
    padding: 0.375rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solar-freeze-header img {
    height: 1rem;
    width: auto;
    margin: 0 auto 0.125rem;
    filter: brightness(0) invert(1); /* Make logo white */
    opacity: 0.9;
}

.solar-freeze-header h1 {
    font-size: 0.6875rem; /* 11px */
    margin-bottom: 0.125rem;
    line-height: 1;
}

.solar-freeze-header p {
    font-size: 0.625rem; /* 10px */
    line-height: 1;
}

.brand-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.brand-logo {
    height: 2rem;
    position: relative;
    z-index: 1;
}

.glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: glow 3s infinite;
}

/* AI Hub */
.ai-hub {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    margin: 0.5rem;
    border-radius: 1rem;
    overflow: hidden;
}

.ai-content {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
}

.ai-icon {
    position: relative;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 0.5rem;
}

.pulse-effect {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    animation: pulse 2s infinite;
}

/* POPOTE Hub */
.popote-hub {
    background: #000;
    margin: 0.5rem;
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hippo-logo {
    height: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* Package Cards */
.package-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 0.375rem 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateX(4px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(22,163,74,0.2);
}

.package-card h3 {
    font-size: 0.6875rem;
}

.package-card p {
    font-size: 0.625rem;
}

/* Modern Animations */
@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Solar Freeze WiFi Portal Styles */
.wifi-portal-container {
    max-width: 280px;
    margin: 0 auto;
}

.portal-content {
    height: calc(100% - 1.5rem);
    display: flex;
    flex-direction: column;
    font-size: 0.875rem; /* Slightly smaller base font */
}

/* Minimized Status Bar */
.status-bar {
    background: #000000;
    padding: 0.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

/* Compact Header */
.mikrotik-header {
    background: #1e293b;
    color: #ffffff;
}

/* Solar Freeze Branding */
.solar-freeze-header {
    background: linear-gradient(135deg, #16a34a 0%, #166534 100%);
    color: #ffffff;
    text-align: center;
}

.logo-container {
    margin-bottom: 1rem;
}

.solar-logo {
    height: 2.5rem;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* AI Banner */
.ai-learning-banner {
    background: #3b82f6;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Package Grid */
.packages-container {
    background: #f8fafc;
}

.package-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.package-row:hover {
    border-color: #16a34a;
    transform: translateX(2px);
}

.package-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.buy-btn {
    background: #16a34a;
    color: #ffffff;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Transaction Section */
.transaction-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    position: relative;
    flex: 1;
}

.search-input input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

.verify-btn {
    background: #16a34a;
    color: #ffffff;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Animations */
@keyframes updating {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.update-status {
    animation: updating 1.5s infinite;
}

/* Responsive Text */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* M-Pesa Section */
.mpesa-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.mpesa-section img {
    height: 2.5rem;
    width: auto;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

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

/* AI Package Section */
.ai-package-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    margin: 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.ai-package-banner {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
    color: white;
}

.ai-icon-container {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon-container i {
    font-size: 1rem;
    color: white;
}

.ai-text {
    flex: 1;
}

.ai-access-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    transition: all 0.2s ease;
}

.ai-access-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

/* POPOTE WIFI Section */
.popote-wifi-section {
    background: white;
    margin: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.popote-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popote-logo {
    background: black;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.popote-content {
    flex: 1;
}

.popote-features {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: #4b5563;
}

.popote-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.popote-features i {
    color: #16a34a;
}

/* Compact Portal Styles */
.wifi-portal-container {
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 9/17; /* Shorter ratio */
}

.phone-frame {
    position: relative;
    aspect-ratio: 9/17; /* Shorter ratio */
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Make content more compact */
.portal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

/* Compact Components */
.mikrotik-header {
    background: #1e293b;
    color: #ffffff;
}

.solar-freeze-header {
    background: linear-gradient(135deg, #16a34a 0%, #166534 100%);
    color: #ffffff;
    text-align: center;
}

.ai-package-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.popote-section {
    background: #000;
    color: #fff;
}

/* Package Grid */
.packages-grid {
    flex: none;
}

/* Utility Classes */
.text-[10px] {
    font-size: 10px;
    line-height: 14px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

/* Add padding-top to sections to account for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Auth Button Styles */
.auth-button {
    @apply relative overflow-hidden;
}

.auth-button::after {
    content: '';
    @apply absolute inset-0 bg-white/20 
           transform translate-x-[-100%] skew-x-[-15deg]
           transition-transform duration-700;
}

.auth-button:hover::after {
    @apply translate-x-[100%];
}

/* Get Started Button Animation */
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.get-started-btn {
    animation: pulse-border 2s infinite;
}

/* Prevent Horizontal Scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container Constraints */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Grid Fixes */
.grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Adjust spacing to be more compact */
.solar-freeze-header {
    padding: 0.375rem;
}

/* Adjust container sizes for mobile view */
@media (max-width: 768px) {
    .wifi-portal-container {
        max-width: 240px; /* Slightly smaller on mobile */
    }
}

/* Portal Text Sizes */
.solar-freeze-header h1 {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.package-card h3 {
    font-size: 0.6875rem;
}

.package-card p {
    font-size: 0.625rem;
}

/* Input and button sizes */
.portal-content input,
.portal-content button {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile Portal Container - Clean Separate Section */
.mobile-portal-container {
    max-width: 280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 15px rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    background: white;
    border: 3px solid #000000;
    transition: all 0.3s ease;
}

.mobile-portal-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Clean separate section styling */
@media (max-width: 767px) {
    section.md\:hidden {
        background: white;
        padding: 3rem 0;
        position: relative;
        z-index: 5;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Add a decorative element behind the portal */
    section.md\:hidden::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(22, 163, 74, 0.1) 0%, rgba(22, 163, 74, 0) 70%);
        border-radius: 50%;
        z-index: -1;
    }
    
    /* Adjust the portal content for better mobile display */
    .mobile-portal-container .portal-content {
        height: 100%;
        font-size: 0.8rem;
    }
    
    /* Make sure the portal stands out against the background */
    .mobile-portal-container {
        border: 3px solid #000000;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 15px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Add a heading above the portal */
    section.md\:hidden .container::before {
        content: 'Connect to WiFi';
        display: block;
        text-align: center;
        font-size: 1.5rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 1.5rem;
    }
}

/* Keep existing portal styles */
.wifi-portal-container {
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 9/17; /* Shorter ratio */
}

.phone-frame {
    position: relative;
    aspect-ratio: 9/17; /* Shorter ratio */
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Modern Technology Cards Section */
.tech-card {
  @apply group bg-white/80 backdrop-blur-xl p-6 md:p-8 rounded-3xl 
         border border-gray-100/50 shadow-lg
         hover:bg-gradient-to-br hover:from-white hover:to-gray-50
         transform hover:-translate-y-2 hover:rotate-1 transition-all duration-700;
}

.tech-card-icon {
  @apply h-16 w-16 md:h-24 md:w-24 object-cover object-center 
         shadow-xl transition-all duration-700;
  position: relative;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  padding: 0.5rem;
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: rotate(-5deg);
}

.tech-card-title {
  @apply text-xl md:text-3xl font-extrabold tracking-tight
         text-center relative
         group-hover:scale-105 transition-transform duration-500;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.tech-card-title.edge-ai {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card-title.snapdragon {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card-title.iot-5g {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Add a subtle underline effect */
.tech-card-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
  transition: width 0.3s ease;
}

.tech-card:hover .tech-card-title::after {
  width: 60px;
}

.tech-card-list {
  @apply space-y-3 text-sm md:text-base font-medium text-gray-700;
}

.tech-card-list-item {
  @apply flex items-start gap-2 md:gap-3;
}

.tech-card-check {
  @apply text-green-500 mt-1 text-sm md:text-base;
}

/* Floating animations for background elements */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-15px) translateX(-10px); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(5px); }
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

/* Improved mobile responsiveness */
@media (max-width: 640px) {
  .tech-card {
    @apply p-5;
  }
  
  .tech-card-icon {
    @apply h-14 w-14;
  }
  
  .tech-card-title {
    @apply text-lg;
  }
  
  .tech-card-list {
    @apply text-xs;
  }
}

/* Modern Qualcomm Badge */
.qualcomm-badge {
  @apply inline-flex items-center gap-4 px-8 py-6 
         bg-white/80 backdrop-blur-xl rounded-3xl mb-8 
         shadow-lg border border-white/40 
         hover:bg-white/90 transition-all duration-500;
  position: relative;
  overflow: hidden;
}

.qualcomm-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  z-index: -1;
}

.qualcomm-badge::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg) translateX(-100%);
  animation: badge-shine 6s ease-in-out infinite;
}

@keyframes badge-shine {
  0% { transform: rotate(30deg) translateX(-100%); }
  20% { transform: rotate(30deg) translateX(100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

.qualcomm-logo {
  @apply h-14 w-auto transition-transform duration-500;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transform: rotate(-3deg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.qualcomm-badge:hover .qualcomm-logo {
  transform: scale(1.05) rotate(3deg);
  border-radius: 63% 37% 38% 62% / 46% 63% 37% 54%;
}

.qualcomm-text-container {
  @apply flex flex-col items-start;
  position: relative;
}

.qualcomm-powered-by {
  @apply font-bold text-blue-600 text-xl;
  letter-spacing: -0.01em;
}

.qualcomm-brand {
  @apply font-black text-2xl;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  position: relative;
}

.qualcomm-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.qualcomm-badge:hover .qualcomm-brand::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Modern typography for AI learning platform text */
.ai-platform-text {
  @apply text-gray-600 text-lg mt-4 relative inline-block;
  font-family: 'Inter', 'SF Pro Display', system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.6;
  font-weight: 500;
  background: linear-gradient(to right, #4b5563, #6b7280);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 1.5rem;
  position: relative;
}

.ai-platform-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 9999px;
  z-index: -1;
  transform: scaleX(0.8);
  opacity: 0;
  transition: all 0.4s ease;
}

.ai-platform-text:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Add a subtle highlight to key phrases */
.ai-platform-text strong {
  font-weight: 600;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom styling for each tech card icon */
.tech-card-icon.edge-ai {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.tech-card-icon.snapdragon {
  border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
  border: 2px solid rgba(236, 72, 153, 0.3);
}

.tech-card-icon.iot-5g {
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border: 2px solid rgba(99, 102, 241, 0.3);
}

/* Hover effects for tech card icons */
.tech-card:hover .tech-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.tech-card:hover .tech-card-icon.edge-ai {
  box-shadow: 
    0 20px 25px -5px rgba(59, 130, 246, 0.2),
    0 10px 10px -5px rgba(59, 130, 246, 0.1),
    inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.tech-card:hover .tech-card-icon.snapdragon {
  box-shadow: 
    0 20px 25px -5px rgba(236, 72, 153, 0.2),
    0 10px 10px -5px rgba(236, 72, 153, 0.1),
    inset 0 0 0 1px rgba(236, 72, 153, 0.2);
}

.tech-card:hover .tech-card-icon.iot-5g {
  box-shadow: 
    0 20px 25px -5px rgba(99, 102, 241, 0.2),
    0 10px 10px -5px rgba(99, 102, 241, 0.1),
    inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Add a subtle glow effect on hover */
.tech-card-icon::after {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  border-radius: inherit;
}

.tech-card:hover .tech-card-icon::after {
  opacity: 0.6;
}