/* ========================================
   KSE LABS — Main Stylesheet
   ======================================== */

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

:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-dark: #5b21b6;
    --accent: #06b6d4;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #18182a;
    --bg-surface: #0d0d14;
    --text-primary: #f0f0f5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #1e1e2e;
    --border-light: #2a2a3e;
    --gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --gradient-text: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(17, 17, 24, 0.6);
    --glass-border: rgba(139, 92, 246, 0.12);
    --glass-blur: 16px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Cursor Glow
   ======================================== */

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, rgba(6, 182, 212, 0.03) 30%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ========================================
   Glassmorphism Utilities
   ======================================== */

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.25) !important;
    box-shadow:
        0 8px 40px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-badge {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.glass-cta {
    background: rgba(17, 17, 30, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ========================================
   Floating Orbs
   ======================================== */

.floating-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.12);
    top: 10%;
    right: -5%;
    animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.08);
    bottom: 10%;
    left: -5%;
    animation: floatOrb2 20s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.06);
    top: 50%;
    left: 40%;
    animation: floatOrb3 12s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.15); }
}

/* ========================================
   Particle Canvas
   ======================================== */

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.15;
}

.section-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-subtitle.centered {
    text-align: center;
    margin: 0 auto 48px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
    text-align: left;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 0;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

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

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

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

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 28px;
    animation: slideInDown 0.8s ease-out;
}

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

.hero-title {
    animation: slideInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
    animation: slideInUp 0.8s ease-out 0.45s both;
}

.hero-stats {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    text-align: left;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
}

.typing-container {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    width: min(90vw, 760px);
    max-width: 760px;
}

.typing-text {
    display: inline;
    white-space: nowrap;
    text-align: left;
    letter-spacing: 0.02em;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    margin-left: 2px;
    background: var(--primary-light);
    animation: blink 0.8s infinite;
    vertical-align: baseline;
    flex-shrink: 0;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ========================================
   Marquee
   ======================================== */

.marquee-section {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-surface);
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-dot {
    color: var(--primary-light) !important;
    font-size: 0.6rem !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 100px 0;
}

/* ========================================
   About
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content {
    padding-top: 20px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.about-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(24, 24, 42, 0.7);
    transform: translateX(8px) translateY(-2px);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    color: var(--primary-light);
}

.about-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Services
   ======================================== */

.services {
    background: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(24, 24, 42, 0.65);
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--primary-light);
    opacity: 0.7;
}

/* ========================================
   Work / Portfolio
   ======================================== */

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

.work-card {
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.work-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(24, 24, 42, 0.65);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 16px 48px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.work-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.06)) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow:
        0 8px 40px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.work-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.work-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.work-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.app-icon-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}

.work-card-header h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.work-category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.work-rating {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
}

.work-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.work-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
    opacity: 0.7;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.work-tags span {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.work-tags a.store-tag {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.work-tags a.store-tag:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: #25D366;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Engineering Beyond Software (IoT)
   ======================================== */

.iot {
    background: var(--bg-surface);
}

.iot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* Spotlight Card */
.iot-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.iot-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.iot-spotlight-badge {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.iot-spotlight-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.iot-spotlight-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.iot-spotlight-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.iot-spec {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iot-spec-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.iot-spec-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Gallery Grid */
.iot-spotlight-gallery {
    display: flex;
    align-items: center;
}

.iot-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.iot-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.iot-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.iot-gallery-item:hover img {
    transform: scale(1.05);
}

/* Placeholder when image fails to load */
.iot-placeholder .iot-placeholder-content {
    display: flex;
}

.iot-placeholder img {
    display: none;
}

.iot-placeholder-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   Process
   ======================================== */

.process {
    background: var(--bg-surface);
}

.process-grid {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
}

.process-step {
    text-align: center;
    padding: 32px 24px;
    flex: 1;
    max-width: 260px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.process-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: var(--border-light);
    margin-top: 56px;
    flex-shrink: 0;
    position: relative;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-light);
    border-top: 2px solid var(--primary-light);
    transform: rotate(45deg);
}

/* ========================================
   Testimonials
   ======================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: 60px 0;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: rgba(17, 17, 30, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-box .btn {
    position: relative;
}

/* ========================================
   Contact
   ======================================== */

.contact {
    background: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(17, 17, 24, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12), 0 4px 20px rgba(139, 92, 246, 0.08);
    background: rgba(17, 17, 24, 0.7);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.contact-info-card > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.contact-detail svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for grid items */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.4s; }
.fade-in:nth-child(7) { transition-delay: 0.48s; }

/* Magnetic button hover */
.btn-magnetic {
    transition: transform 0.2s ease;
}

/* Navbar glass */
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Parallax section labels */
.section-label {
    transition: transform 0.3s ease;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .about-card {
        flex: 1;
        min-width: 200px;
    }

    .process-grid {
        flex-wrap: wrap;
        gap: 16px;
    }

    .process-connector {
        display: none;
    }

    .process-step {
        flex: 1 1 45%;
    }

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

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }

    .floating-orb {
        opacity: 0.5;
    }

    .particle-canvas {
        display: none;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 999;
    }

    /* Mobile menu - glassmorphism */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 100px 24px 40px;
        gap: 8px;
        z-index: 998;
        overflow-y: auto;
    }

    .nav-links.active li {
        list-style: none;
    }

    .nav-links.active a {
        font-size: 1.4rem;
        color: var(--text-primary);
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

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

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

    .iot-spotlight {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .iot-spotlight-title {
        font-size: 1.3rem;
    }

    .iot-spotlight-specs {
        grid-template-columns: 1fr 1fr;
    }

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

    .work-card-featured {
        grid-column: auto;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex: 1 1 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number, .stat-suffix {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Form Success State
   ======================================== */

.form-success {
    text-align: center;
    padding: 60px 20px;
}

.form-success svg {
    color: #10b981;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Screenshot Gallery ===== */
.screenshot-gallery {
    margin: 20px 0 16px;
    position: relative;
}

.screenshot-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshot-scroll::-webkit-scrollbar {
    display: none;
}

.phone-mockup {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.phone-mockup:hover {
    transform: scale(1.04);
}

.phone-frame {
    width: 120px;
    height: 260px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-placeholder-content {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-frame.placeholder .phone-placeholder-content {
    display: flex;
}

.phone-frame.placeholder img {
    display: none;
}

/* Featured card gets larger screenshots */
.work-card-featured .phone-frame {
    width: 140px;
    height: 300px;
}

/* ===== Screenshot Lightbox ===== */
.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.screenshot-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 90vw;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    z-index: 2;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.15);
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-phone-frame {
    width: 280px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}

.lightbox-phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    z-index: 2;
}

.lightbox-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.lightbox-app-name {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Lightbox entrance animation */
.screenshot-lightbox.active .lightbox-phone-frame {
    animation: lightboxPhoneIn 0.4s ease forwards;
}

@keyframes lightboxPhoneIn {
    from {
        transform: scale(0.85) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Full-image lightbox mode (IoT gallery) */
.screenshot-lightbox[data-mode="full"] .lightbox-phone-frame {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 12px;
    border-width: 2px;
    background: rgba(0, 0, 0, 0.4);
}

.screenshot-lightbox[data-mode="full"] .lightbox-phone-frame::before {
    display: none;
}

.screenshot-lightbox[data-mode="full"] .lightbox-phone-frame img {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .phone-frame {
        width: 100px;
        height: 216px;
        border-radius: 12px;
    }

    .work-card-featured .phone-frame {
        width: 110px;
        height: 238px;
    }

    .lightbox-content {
        gap: 12px;
    }

    .lightbox-phone-frame {
        width: 220px;
        height: 476px;
        border-radius: 20px;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 85px;
        height: 184px;
        border-radius: 10px;
    }

    .work-card-featured .phone-frame {
        width: 95px;
        height: 206px;
    }

    .screenshot-scroll {
        gap: 10px;
    }

    .lightbox-phone-frame {
        width: 180px;
        height: 390px;
        border-radius: 16px;
    }
}
