/* Modern CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    
    /* Neutral Colors */
    --background: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-2: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    
    /* Responsive Spacing */
    --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 1vw, 1rem);
    --spacing-md: clamp(1rem, 2vw, 2rem);
    --spacing-lg: clamp(2rem, 4vw, 4rem);
    --spacing-xl: clamp(4rem, 8vw, 8rem);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    --radius-xl: 1rem;
    
    /* Responsive Typography */
    --font-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --font-sm: clamp(0.875rem, 1.8vw, 1rem);
    --font-base: clamp(1rem, 2vw, 1.125rem);
    --font-lg: clamp(1.125rem, 2.5vw, 1.25rem);
    --font-xl: clamp(1.25rem, 3vw, 1.5rem);
    --font-2xl: clamp(1.5rem, 4vw, 2rem);
    --font-3xl: clamp(1.875rem, 5vw, 2.5rem);
    --font-4xl: clamp(2.25rem, 6vw, 3.5rem);
    --font-5xl: clamp(2.5rem, 8vw, 4.5rem);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: var(--font-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: var(--font-5xl); }
h2 { font-size: var(--font-3xl); }
h3 { font-size: var(--font-2xl); }
h4 { font-size: var(--font-xl); }
h5 { font-size: var(--font-lg); }
h6 { font-size: var(--font-base); }

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.navbar .container > * {
    pointer-events: auto;
}

.logo {
    text-decoration: none;
    font-size: var(--font-xl);
    font-weight: 700;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

.logo-text {
    color: var(--text);
}

.logo-highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: var(--font-sm);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.cta-button {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease !important;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* CTA button should not show active state underline */
.nav-links a.cta-button.active::after {
    display: none;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    gap: 4px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 998;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.active {
    top: 80px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-links a:hover {
    background: var(--primary);
    color: white;
}

.mobile-nav-links a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing-xl) + 4rem) 0 var(--spacing-xl);
    min-height: auto;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 20%),
        linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.hero-title {
    text-align: left;
    font-size: var(--font-5xl);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: var(--font-xl);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--font-base);
    white-space: nowrap;
}

.primary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    font-size: var(--font-base);
    white-space: nowrap;
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-number i {
    margin-right: 0.5rem;
    font-size: var(--font-xl);
}

.stat-label {
    color: var(--text-light);
    font-size: var(--font-sm);
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: var(--font-3xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: var(--font-3xl);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-light);
}

/* Work Section */
.work {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.work-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.work-image {
    height: 200px;
    background: var(--gradient-2);
}

.work-card h3 {
    padding: var(--spacing-sm);
    margin: 0;
}

.work-card p {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.contact-info h3 {
    margin-bottom: var(--spacing-sm);
}

.contact-details {
    margin-top: var(--spacing-md);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-base);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer .logo-text {
    color: white;
}

.footer .logo-highlight {
    color: var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.company-info {
    margin-top: var(--spacing-md);
}

.company-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.company-info i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Animation */
.hero-title {
    text-align: center;
}

.hero-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.typing-text-container {
    display: inline-block;
    position: relative;
    height: 1.2em;
    min-height: 1.2em;
    min-width: 280px;
}

.typing-text {
    color: var(--text);
    position: relative;
    white-space: nowrap;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    top: 0;
    font-weight: 300;
    color: var(--primary);
    animation: blink 0.7s infinite;
}

.static-text {
    white-space: nowrap;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Apps Section */
.apps {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.app-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.app-image {
    height: 250px;
    overflow: hidden;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.app-card:hover .app-image img {
    transform: scale(1.05);
}

.app-content {
    padding: var(--spacing-md);
}

.app-content h3 {
    font-size: var(--font-xl);
    margin-bottom: 0.25rem;
}

.app-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.app-platforms {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 8px;
}

.app-platforms i {
    font-size: var(--font-xl);
    color: var(--text-light);
    transition: color 0.3s ease;
}

.app-platforms i:hover {
    color: var(--primary);
}

.app-card h3 {
    padding: var(--spacing-sm);
    margin: 0;
    font-size: var(--font-lg);
}

.app-card p {
    padding: 0 var(--spacing-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.app-stats {
    padding: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
}

.app-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.app-stats i {
    color: var(--primary);
}

/* About Section - Updated */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: var(--spacing-md);
}

.about-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card {
    text-align: center;
}

.feature-card.large {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card i {
    font-size: var(--font-3xl);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-xl);
}

.feature-card p {
    color: var(--text-light);
}

.text-card {
    background: var(--gradient-2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-card h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-xs);
}

.text-card .gradient-text {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Process Section */
.process {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    --line-color: #e5e7eb;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--line-color);
    z-index: 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    position: relative;
    padding-top: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--line-color);
    color: var(--primary);
    font-size: var(--font-xl);
    font-weight: 700;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.step-content h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-lg);
}

.step-content p {
    color: var(--text-light);
}

/* Careers Section */
.careers {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.careers-intro {
    text-align: center;
    font-size: var(--font-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.position-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.position-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.position-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.position-link {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.position-link i {
    transition: transform 0.3s ease;
}

.position-link:hover i {
    transform: translateX(5px);
}

/* Tech Stack Section */
.tech-stack {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 120px;
}

.stack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    color: var(--primary);
}

.stack-item i {
    font-size: var(--font-3xl);
    color: var(--accent);
}

.stack-item:hover i {
    color: var(--primary);
}

.stack-item span {
    font-weight: 500;
    font-size: var(--font-sm);
}

.careers-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Apps Section - New Styles */
.app-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    opacity: 1;
    transform: none;
}

.app-content.reverse {
    direction: rtl;
}

.app-content.reverse > * {
    direction: ltr;
}

.app-info {
    max-width: 500px;
}

/* App Icons */
.app-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation Containers */
.animation-container {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slothAnimation {
    max-width: 400px;
    margin: 0 auto;
}

#gemAnimation {
    max-width: 300px;
    margin: 0 auto;
}

.app-info h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--section-color, #000) 0%, var(--section-color-light, #333) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-info .tagline {
    font-size: var(--font-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.app-info .description {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--font-base);
}

.app-platforms {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.app-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-full, 9999px);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--section-color, var(--primary));
    color: white;
    font-size: var(--font-base);
}

.app-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Update the app visuals to be visible by default */
.app-visual {
    opacity: 1;
    transform: none;
    position: relative;
}

/* Truth or Dare Section */
.truth-or-dare {
    background: #FAFAFA;
    --section-color: #F43F5E;
    --section-color-light: #FB7185;
    --truth-color: #3B82F6;
    --truth-color-light: #60A5FA;
    --dare-color: #F43F5E;
    --dare-color-light: #FB7185;
}

.card-container {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.game-card {
    width: 240px;
    height: 360px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    animation: cardFloat 3s ease-in-out infinite;
}

.game-card.truth {
    --rotation: -15deg;
    transform: rotate(var(--rotation));
    animation-delay: 0.2s;
}

.game-card.dare {
    --rotation: 15deg;
    transform: rotate(var(--rotation));
}

.game-card:hover {
    transform: rotate(var(--rotation)) translateY(-20px);
}

.card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color-light) 100%);
    backface-visibility: hidden;
}

.game-card.truth .card-inner {
    --card-color: var(--truth-color);
    --card-color-light: var(--truth-color-light);
}

.game-card.dare .card-inner {
    --card-color: var(--dare-color);
    --card-color-light: var(--dare-color-light);
}

.card-symbol {
    font-size: 6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.card-label {
    font-size: var(--font-xl);
    font-weight: 600;
    color: white;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Platform Badges */
.platform-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.platform-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.platform-badge i {
    font-size: var(--font-3xl);
}

.platform-badge.android i {
    color: #3DDC84;
}

.platform-badge.ios i {
    color: #000000;
}

/* Update card float animation */
@keyframes cardFloat {
    0%, 100% { 
        transform: rotate(var(--rotation)) translateY(0);
    }
    50% { 
        transform: rotate(var(--rotation)) translateY(-15px);
    }
}

/* Ensure proper spacing between sections */
.app-section + .app-section {
    margin-top: 0;
}

/* Rando Section */
.rando {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    --section-color: #8B5CF6;
    --section-color-light: #A78BFA;
}

.number-display {
    position: relative;
    width: 300px;
    height: 300px;
    max-width: 90vw;
    max-height: 90vw;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
    margin: 0 auto;
}

.random-number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--section-color) 0%, var(--section-color-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.rando .app-cta {
    background: var(--primary);
    color: white;
}

/* Decibel Meter Section */
.decibel {
    background: #F8FAFC;
    --section-color: #4F46E5;
    --section-color-light: #6366F1;
}

.meter-display {
    background: #1E293B;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl, 1rem);
    width: 320px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.meter-bars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
    height: 200px;
}

.meter-bar {
    flex: 1;
    background: linear-gradient(to top, #4F46E5 0%, #6366F1 50%, #EC4899 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.meter-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--height, 60%);
    background: rgba(0, 0, 0, 0.7);
    transition: height 0.3s ease;
    will-change: transform;
}

.meter-value {
    text-align: center;
    color: white;
    font-size: var(--font-3xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.meter-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.decibel .app-cta {
    background: #10B981;
    color: white;
}

/* Nebulons Section */
.nebulons {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    --section-color: #7C3AED;
    --section-color-light: #8B5CF6;
    color: var(--text);
}

.nebulons .app-info h2 {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nebulons .app-info .tagline {
    color: var(--text-light);
}

.nebulons .app-info .description {
    color: var(--text-light);
}

.nebula-container {
    position: relative;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, #312E81 0%, #1E1B4B 100%);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.nebula-entity {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.5) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8) 100%, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9) 100%, transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.7) 100%, transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.8) 100%, transparent);
    background-repeat: repeat;
    animation: twinkle 4s ease-in-out infinite;
}

.nebulons .app-cta {
    background: #8B5CF6;
    color: white;
}

/* Invoice Maker Section */
.invoice {
    background: white;
    --section-color: #0EA5E9;
    --section-color-light: #38BDF8;
}

.invoice-preview {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.invoice-header {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--section-color);
}

.invoice-lines {
    height: 200px;
    border-top: 2px solid #E2E8F0;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: var(--spacing-md);
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        #F1F5F9 39px,
        #F1F5F9 40px
    );
}

.invoice-total {
    text-align: right;
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--section-color);
}

.invoice .app-cta {
    background: var(--primary);
    color: white;
}

/* PocketPal Section */
.pocketpal {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    --section-color: #FB923C;
    --section-color-light: #FDBA74;
}

.pocketpal .app-cta {
    background: #FB923C;
    color: white;
}

/* Faithline Section */
.faithline {
    background: #FAFAF9;
    --section-color: #4B5563;
    --section-color-light: #6B7280;
}

.scripture-display {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.verse-text {
    font-size: var(--font-xl);
    font-family: "Crimson Text", serif;
    color: var(--section-color);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    line-height: 1.4;
}

.verse-reference {
    color: var(--text-light);
    font-size: var(--font-base);
    font-weight: 500;
}

.faithline .app-cta {
    background: #4B5563;
    color: white;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* PocketPal Animation */
.sloth-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation Containers */
.animation-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
}

#slothAnimation, 
#gemAnimation {
    width: 100%;
    height: 100%;
}

/* Specific sizing for gem animation */
#gemAnimation {
    max-width: min(350px, 70vw);
    max-height: min(350px, 70vw);
}

/* Nebulons Animation */
.gem-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gem-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}



/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* RESPONSIVE DESIGN - Mobile First Approach */

/* Large Mobile (576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 1rem;
        --spacing-md: 2rem;
        --spacing-lg: 4rem;
        --spacing-xl: 8rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .hero-title {
        text-align: left;
    }
    
    .hero-line {
        justify-content: flex-start;
    }
    
    .typing-text-container {
        min-width: 280px;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        text-align: left;
    }
    
    .app-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .app-icon {
        margin: 0 0 var(--spacing-md) 0;
    }
    
    .app-platforms {
        justify-content: flex-start;
    }
    
    .process-grid::before {
        display: block;
    }
    
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding-top: 2rem;
    }
    
    .app-section {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    .number-display {
        width: min(280px, 70vw);
        height: min(280px, 70vw);
    }
    
    #gemAnimation {
        max-width: 280px;
        max-height: 280px;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-card.large {
        grid-column: span 2;
    }
    
    .app-section {
        min-height: 100vh;
    }
    
    .gem-container {
        height: 500px;
    }
    
    .number-display {
        width: 300px;
        height: 300px;
        max-width: none;
        max-height: none;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* MOBILE-SPECIFIC STYLES (below 768px) */
@media (max-width: 767px) {
    /* Mobile Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Mobile Hero */
    .hero {
        text-align: center;
        padding: calc(var(--spacing-lg) + 4rem) 0 var(--spacing-lg);
    }
    
    .hero-title {
        text-align: center;
        font-size: var(--font-4xl);
    }
    
    .hero-line {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-line-1 {
        justify-content: center;
    }
    
    .typing-text-container {
        width: 100%;
        text-align: center;
        min-width: 200px;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .primary-button,
    .secondary-button {
        min-width: 140px;
        text-align: center;
    }
    
         /* Mobile Apps Section */
     .app-section {
         min-height: 100vh;
         padding: var(--spacing-md) 0;
     }
    
    .app-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .app-content.reverse {
        direction: ltr;
    }
    
    .app-info {
        max-width: 100%;
    }
    
    .app-icon {
        margin: 0 auto var(--spacing-md);
    }
    
    .app-platforms {
        justify-content: center;
    }
    
    .app-visual {
        margin: 0 auto;
    }
    
         /* Mobile App Components */
     .number-display {
         width: min(280px, 80vw);
         height: min(280px, 80vw);
     }
     
     .meter-display,
     .nebula-container,
     .invoice-preview,
     .pet-container,
     .scripture-display {
         width: 100%;
         max-width: 340px;
         margin: 0 auto;
     }
    
    .meter-display {
        padding: var(--spacing-md);
    }
    
    .verse-text {
        font-size: var(--font-lg);
    }
    
    .card-container {
        flex-direction: column;
        height: auto;
        gap: 4rem;
        align-items: center;
    }
    
    .game-card {
        width: 220px;
        height: 330px;
    }
    
    .card-symbol {
        font-size: 4.5rem;
    }
    
    .platform-badge {
        width: 56px;
        height: 56px;
    }
    
    .platform-badge i {
        font-size: var(--font-2xl);
    }
    
         /* Mobile Animations */
     .sloth-container {
         height: auto;
         padding: 1rem 0;
     }
     
     .gem-container {
         height: auto;
         padding: 1rem 0;
     }
     
     .animation-container {
         max-width: 280px;
         height: 280px;
     }
     
     #gemAnimation {
         max-width: 250px;
         max-height: 250px;
     }
    
    /* Mobile Grids */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card.large {
        grid-column: span 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 0;
    }
    
    .process-step:not(:last-child) {
        margin-bottom: var(--spacing-md);
    }
    
    .stack-grid {
        gap: var(--spacing-sm);
    }
    
    .stack-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: var(--font-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-lg);
    }
    
    .stat-number {
        font-size: var(--font-2xl);
    }
    
    .app-info h2 {
        font-size: var(--font-2xl);
    }
    
    .app-info .tagline {
        font-size: var(--font-base);
    }
    
    /* Mobile Contact Form */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile Story Section */
    .story-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .city-skyline {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .city-skyline i {
        font-size: 4rem;
    }
}

/* Very Small Mobile (below 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .card-container {
        gap: 2rem;
    }
    
    .game-card {
        width: 180px;
        height: 280px;
    }
    
         .animation-container {
         height: 220px;
     }
     
     #gemAnimation {
         max-width: 200px;
         max-height: 200px;
     }
     
     .number-display {
         width: min(240px, 70vw);
         height: min(240px, 70vw);
     }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .app-card:hover,
    .position-card:hover,
    .service-card:hover,
    .work-card:hover,
    .about-card:hover,
    .platform-badge:hover,
    .stack-item:hover {
        transform: none;
    }
    
    .primary-button:hover,
    .secondary-button:hover,
    .cta-button:hover,
    .app-cta:hover {
        transform: none;
    }
    
    /* Add touch feedback instead */
    .app-card:active,
    .position-card:active,
    .service-card:active,
    .work-card:active,
    .about-card:active {
        transform: scale(0.98);
    }
    
    .primary-button:active,
    .secondary-button:active,
    .cta-button:active,
    .app-cta:active {
        transform: scale(0.95);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .typing-text::after {
        animation: none;
    }
    
    .card-float,
    .bounce,
    .pulse,
    .twinkle,
    .glowPulse,
    .floatBubble {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .mobile-nav,
    .hero-cta,
    .app-cta,
    .primary-button,
    .secondary-button,
    .animation-container,
    .app-visual {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero-title,
    .section-title {
        page-break-after: avoid;
    }
    
    .app-section,
    .about-card,
    .process-step {
        page-break-inside: avoid;
    }
} 

/* Our Story Section */
.story {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.story-text h3 {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.story-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: var(--font-base);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.story-stat {
    text-align: center;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.story-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.story-stat i {
    font-size: var(--font-3xl);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-stat h4 {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.story-stat p {
    color: var(--text-light);
    font-size: var(--font-sm);
    margin: 0;
}

.story-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-skyline {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.city-skyline i {
    font-size: 6rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
    display: block;
}

.city-skyline h4 {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.city-skyline p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
} 