/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background: #0f172a;
    color-scheme: dark;
    overflow-x: hidden;
}

/* Global scrollbar — thin & auto-hide */
* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

*:hover {
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

*:hover::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ===========================
   SVG Icon System
   =========================== */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    display: inline-block;
    flex-shrink: 0;
}
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 24px; height: 24px; }

/* Icon colors */
.icon-blue { color: #60a5fa; }
.icon-sky { color: #38bdf8; }
.icon-cyan { color: #22d3ee; }
.icon-teal { color: #2dd4bf; }
.icon-green { color: #34d399; }
.icon-lime { color: #a3e635; }
.icon-yellow { color: #fbbf24; }
.icon-amber { color: #f59e0b; }
.icon-orange { color: #fb923c; }
.icon-red { color: #f87171; }
.icon-pink { color: #f472b6; }
.icon-purple { color: #a78bfa; }
.icon-indigo { color: #818cf8; }
.icon-gray { color: #9ca3af; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a !important;
    background: var(--dark);
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

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

/* Full-width navbar variant - for pages with full-width content */
.navbar.navbar-full-width .container {
    max-width: none;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.logo-icon-img {
    width: 24px;
    height: 24px;
    display: block;
}

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

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link-icon {
    display: none;
}

.nav-link-label {
    display: inline;
}

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

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

.nav-link:hover {
    color: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.4);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.3);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.3);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-icon-left {
    width: 20px;
    height: 20px;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus, .stat-decimal {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2d2d3a 0%, #1a1a24 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 50px 16px 16px;
    height: 100%;
}

.app-header {
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-preview-card {
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); }
}

/* ===========================
   Animations
   =========================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Section Styles
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   Apps Section
   =========================== */
.apps-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
    position: relative;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 36px;
}

/* Card outer — holds the animated gradient border */
.app-card {
    position: relative;
    border-radius: 20px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.app-card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.08) 50%,
        rgba(99, 102, 241, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.app-card:hover .app-card-border {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.5),
        0 0 32px -8px rgba(99, 102, 241, 0.15);
}

/* Card inner container */
.app-card-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(11, 18, 32, 0.98) 100%);
    border-radius: 19px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header banner */
.app-card-header {
    position: relative;
    height: 110px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-color, var(--primary)) 18%, transparent) 0%,
        color-mix(in srgb, var(--accent-color, var(--primary)) 6%, transparent) 60%,
        transparent 100%
    );
    overflow: hidden;
}

.app-card-header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px, 32px 32px;
}

.app-card-header-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse, var(--accent-color, var(--primary)) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(20px);
}

/* Icon wrapper — overlaps the header */
.app-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -48px;
    z-index: 2;
}

.app-icon-ring {
    position: absolute;
    width: 108px;
    height: 108px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-color, var(--primary)) 40%, transparent),
        color-mix(in srgb, var(--accent-color, var(--primary)) 10%, transparent)
    );
    opacity: 0;
    filter: blur(16px);
    transition: opacity 0.4s ease;
}

.app-card:hover .app-icon-ring {
    opacity: 1;
}

.app-icon {
    width: 96px;
    height: 96px;
    position: relative;
    border-radius: 22px;
    border: 3px solid rgba(30, 41, 59, 0.95);
    box-shadow:
        0 8px 24px -4px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(30, 41, 59, 1);
}

.app-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 19px;
    object-fit: cover;
    display: block;
}

/* Content area */
.app-card-content {
    padding: 24px 36px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 12px;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.app-description {
    color: var(--gray-300);
    line-height: 1.75;
    font-size: 0.95rem;
    max-width: 400px;
}

/* Feature tags */
.app-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 24px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition);
}

.feature-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color, var(--primary));
    opacity: 0.7;
    flex-shrink: 0;
}

.app-card:hover .feature-tag {
    border-color: rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.06);
}

/* Download button */
.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--accent-color, var(--primary)) 0%, rgba(99, 102, 241, 0.85) 100%);
    color: var(--white);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.app-download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-download-btn:hover::before {
    opacity: 1;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.35);
}

.app-download-btn .btn-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.app-download-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    padding: 120px 0;
    background: var(--dark-lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* ===========================
   Past Projects Section
   =========================== */
.past-projects-section {
    padding: 120px 0;
    background: var(--dark);
}

.past-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.past-project-card {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    text-align: left;
    transition: var(--transition);
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    align-items: center;
}

.past-project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.past-project-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 0;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    grid-row: 1 / span 2;
}

.past-project-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.past-project-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.past-project-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 20px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.9rem;
}

.highlight-icon {
    font-size: 1.2rem;
}

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

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.about-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.about-shape.shape-1 {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.2;
    filter: blur(40px);
}

.about-shape.shape-2 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: var(--gradient-2);
    opacity: 0.3;
    filter: blur(30px);
    animation-delay: -4s;
}

.about-icon-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
}

.icon-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition);
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-item:nth-child(2) { animation-delay: -1s; }
.icon-item:nth-child(3) { animation-delay: -2s; }
.icon-item:nth-child(4) { animation-delay: -3s; }

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

.icon-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 120px 0;
    background: var(--dark-lighter);
    position: relative;
    overflow: hidden;
}

.contact-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px 32px;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(129, 140, 248, 0.25);
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

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

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
    transition: all 0.35s ease;
}

.contact-card:hover .contact-card-icon {
    background: rgba(99, 102, 241, 0.18);
    transform: scale(1.1);
}

.contact-card:hover .contact-card-icon svg {
    color: #a5b4fc;
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.contact-card-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: auto;
    transition: all 0.25s ease;
}

.contact-card-action svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.contact-card:hover .contact-card-action {
    color: #a5b4fc;
}

.contact-card:hover .contact-card-action svg {
    transform: translateX(4px);
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 60px 0 30px;
    background: var(--gray-900);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-brand p {
    color: var(--gray-500);
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .about-highlights {
        justify-content: center;
    }

    .about-visual {
        order: -1;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .contact-cards .contact-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.96);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 18px;
        border: 1px solid rgba(129, 140, 248, 0.15);
        box-shadow:
            0 24px 48px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 1px 0 rgba(255, 255, 255, 0.06) inset;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.04s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.08s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.12s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.16s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.20s; }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-bottom: none;
        border-radius: 12px;
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.3;
        letter-spacing: 0.01em;
        color: var(--gray-200);
        transition: all 0.2s ease;
    }

    .nav-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary-light);
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .nav-link-icon-svg {
        width: 20px;
        height: 20px;
    }

    .nav-link:hover .nav-link-icon,
    .nav-link:active .nav-link-icon {
        background: rgba(99, 102, 241, 0.2);
        color: #a5b4fc;
        transform: scale(1.08);
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(99, 102, 241, 0.08);
        color: var(--white);
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        touch-action: none;
        overscroll-behavior: none;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .scroll-indicator {
        display: none;
    }

    .btn {
        max-width: 300px;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .apps-section,
    .features-section,
    .past-projects-section,
    .about-section,
    .contact-section {
        padding: 80px 0;
    }

    .app-card-content {
        padding: 20px 24px 32px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar.navbar-full-width .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar.navbar-full-width .container {
        padding: 0 16px;
    }

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

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

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

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

    .past-projects-grid {
        grid-template-columns: 1fr;
    }

    .app-card-header {
        height: 80px;
    }

    .app-icon-wrapper {
        margin-top: -38px;
    }

    .app-icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }

    .app-icon-ring {
        width: 92px;
        height: 92px;
        border-radius: 20px;
    }

    .app-icon-img {
        border-radius: 15px;
    }
}
