/* ========================================
   RODY PORTFOLIO - DARK PROFESSIONAL THEME
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-secondary: #111118;
    --color-bg-card: #16161f;
    --color-bg-card-hover: #1c1c28;
    --color-border: #232336;
    --color-border-hover: #3b82f6;
    
    /* Text */
    --color-text-primary: #f0f0f5;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Accents */
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-glow: rgba(59, 130, 246, 0.3);
    --color-neon: #22d3ee;
    --color-neon-glow: rgba(34, 211, 238, 0.25);
    --color-success: #34d399;
    
    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    --gradient-card: linear-gradient(145deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --color-bg: #f7f9fc;
    --color-bg-secondary: #eef3f9;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f7faff;
    --color-border: #dce5f0;
    --color-border-hover: #2563eb;
    --color-text-primary: #0d1b2f;
    --color-text-secondary: #52627a;
    --color-text-muted: #78869a;
    --color-accent: #2563eb;
    --color-accent-light: #1d4ed8;
    --color-neon: #087e8b;
    --color-success: #059669;
    --color-accent-glow: rgba(37, 99, 235, 0.16);
    --gradient-hero: radial-gradient(ellipse at 70% 10%, rgba(37, 99, 235, 0.12), transparent 52%);
    --shadow-card: 0 10px 30px rgba(20, 45, 80, 0.08);
    --shadow-lg: 0 18px 50px rgba(20, 45, 80, 0.14);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Particles Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Main */
main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    background: rgba(10, 10, 15, 0.95);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav__logo-img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: linear-gradient(145deg, #173f70, #2563a4);
    box-shadow: 0 8px 20px rgba(23, 63, 112, 0.26);
}

.brand-mark--footer { width: 54px; height: 54px; }

.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-base);
}

.theme-toggle:hover { color: var(--color-accent-light); border-color: var(--color-border-hover); transform: translateY(-1px); }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
[data-theme="light"] .header { background: rgba(247, 249, 252, 0.82); }
[data-theme="light"] .header.scrolled { background: rgba(247, 249, 252, 0.96); }

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

.nav__menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav__link {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

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

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
}

.hero__content {
    text-align: center;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-accent-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-glow), 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 8px 25px rgba(59, 130, 246, 0.3);
}

.hero__cta svg {
    transition: transform var(--transition-base);
}

.hero__cta:hover svg {
    transform: translateX(4px);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.6s ease-out 0.5s both, bounce 2s ease-in-out infinite 1s;
}

.hero__scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.hero__scroll-link:hover {
    color: var(--color-accent-light);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.tech-stack__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: color var(--transition-base);
}

.tech-stack__item:hover {
    color: var(--color-accent-light);
}

.tech-stack__icon {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.tech-stack__item:hover .tech-stack__icon {
    opacity: 1;
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section__description {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

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

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.project-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__image-wrapper {
    overflow: hidden;
    position: relative;
}

.project-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 50%);
}

.project-card__content {
    padding: 1.5rem;
    position: relative;
}

.project-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card__description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

.tag--primary {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-accent-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag--neon {
    background: rgba(34, 211, 238, 0.1);
    color: var(--color-neon);
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.tag--success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

/* Featured Project Card */
.project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 400px;
}

.project-card--featured .project-card__image-wrapper {
    height: 100%;
}

.project-card--featured .project-card__image {
    height: 100%;
}

.project-card--featured .project-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.project-card--featured .project-card__title {
    font-size: 1.75rem;
}

.project-card--featured .project-card__description {
    font-size: 1rem;
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */
.project-detail {
    padding-top: 120px;
    min-height: 100vh;
}

.project-detail__hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.project-detail__hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.project-detail__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
}

.project-detail__hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
}

.project-detail__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.project-detail__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-detail__content {
    max-width: 800px;
    margin: 0 auto;
}

.project-detail__section {
    margin-bottom: 3rem;
}

.project-detail__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent-light);
}

.project-detail__text {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-detail__features {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.project-detail__feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.project-detail__feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.project-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color var(--transition-base);
}

.project-detail__back:hover {
    color: var(--color-accent-light);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__info-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact__info-text {
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: var(--transition-base);
}

.contact__method:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateX(4px);
}

.contact__method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    color: var(--color-accent);
}

.contact__method-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact__method-value {
    font-weight: 600;
}

/* Contact Form */
.contact__form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-base);
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form__textarea {
    min-height: 140px;
    resize: vertical;
}

.form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    position: relative;
    z-index: 1;
    background: var(--color-bg-secondary);
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer__tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.footer__social-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    transform: translateY(-2px);
}

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

/* ========================================
   SAAS LANDING & SERVICES
   ======================================== */
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 5rem;
}

.hero__grid .hero__content { max-width: 620px; text-align: left; }
.hero__grid .hero__description { max-width: 570px; margin: 0 0 2.25rem; }
.hero__grid .hero__title { font-size: clamp(2.8rem, 5vw, 4.7rem); }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
}

.button-secondary:hover { border-color: var(--color-border-hover); transform: translateY(-2px); }
.hero__trust { display: flex; gap: 1.4rem; margin-top: 2rem; color: var(--color-text-muted); font-size: 0.76rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__trust span::before { content: '✓'; color: var(--color-success); }

.hero__visual { position: relative; animation: fadeInUp 0.7s ease-out 0.2s both; }
.hero__visual-orbit { position: absolute; width: 430px; height: 430px; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid var(--color-border); border-radius: 50%; opacity: 0.6; }
.app-window { position: relative; z-index: 2; overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-bg-card); box-shadow: 0 28px 80px rgba(7, 22, 45, 0.3); transform: perspective(1200px) rotateY(-3deg) rotateX(2deg); }
[data-theme="light"] .app-window { box-shadow: 0 28px 80px rgba(25, 65, 115, 0.18); }
.app-window img { display: block; width: 100%; aspect-ratio: 1.72; object-fit: cover; object-position: top left; }
.app-window__bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid var(--color-border); background: var(--color-bg-secondary); }
.app-window__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); }
.app-window__bar small { margin-left: 8px; color: var(--color-text-muted); font-size: 0.66rem; }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border: 1px solid var(--color-border); border-radius: 13px; background: color-mix(in srgb, var(--color-bg-card) 88%, transparent); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); }
.floating-note--top { top: -30px; right: -20px; flex-direction: column; align-items: flex-start; gap: 0; }
.floating-note--top strong { color: var(--color-accent-light); font-size: 1.25rem; line-height: 1.1; }
.floating-note--top span { color: var(--color-text-muted); font-size: 0.68rem; }
.floating-note--bottom { bottom: -22px; left: -25px; font-size: 0.76rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.13); }

.product-spotlight { background: var(--color-bg-secondary); }
.product-spotlight__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: center; gap: 4.5rem; }
.product-spotlight__copy .section__title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.product-spotlight__copy .section__description { margin: 0; font-size: 1rem; }
.product-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.6rem; color: var(--color-text-primary); font-weight: 800; letter-spacing: 0.08em; }
.product-brand__mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #f5f8fc; border: 1px solid var(--color-border); }
.product-brand__mark img { width: 38px; height: 38px; object-fit: contain; }
.product-brand em { padding: 0.3rem 0.55rem; border-radius: 99px; background: rgba(59, 130, 246, 0.12); color: var(--color-accent-light); font-style: normal; font-size: 0.64rem; letter-spacing: 0; }
.benefit-list { display: grid; gap: 0.8rem; margin: 1.75rem 0; list-style: none; color: var(--color-text-secondary); }
.benefit-list li { display: flex; gap: 0.7rem; }
.benefit-list li::before { content: '✓'; color: var(--success, #34d399); font-weight: 800; }
.text-link { color: var(--color-accent-light); font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; transition: transform var(--transition-base); }
.text-link:hover span { transform: translateX(4px); }
.product-spotlight__image { overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; box-shadow: var(--shadow-lg); background: white; }
.product-spotlight__image img { display: block; width: 100%; }
.product-spotlight__image--examly img { aspect-ratio: 1.72; object-fit: cover; }
.hero__cta--compact { padding: 0.8rem 1.25rem; font-size: 0.88rem; }

.secondary-product { background: var(--color-bg); }
.secondary-product__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 4.5rem; }
.secondary-product__image { overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: white; box-shadow: var(--shadow-lg); }
.secondary-product__image img { display: block; width: 100%; }
.secondary-product .section__title { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.secondary-product .section__description { margin: 0 0 1.7rem; font-size: 1rem; }

.apps-preview { background: var(--color-bg-secondary); }
.section__header--split { display: grid; grid-template-columns: 1fr 0.75fr; gap: 4rem; align-items: end; text-align: left; }
.section__header--split .section__description { margin: 0 0 1rem; }
.apps-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.app-chip { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 1rem; padding: 1rem; overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-bg-card); color: var(--color-text-primary); text-decoration: none; box-shadow: var(--shadow-card); transition: var(--transition-base); }
.app-chip:hover { border-color: var(--color-border-hover); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.app-chip__image { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: #f4f7fb; }
.app-chip__image img { width: 100%; height: 100%; object-fit: contain; }
.app-chip strong, .app-chip small { display: block; }
.app-chip small { max-width: 410px; overflow: hidden; color: var(--color-text-muted); font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.app-chip__arrow { color: var(--color-accent-light); font-size: 1.2rem; transition: transform var(--transition-base); }
.app-chip:hover .app-chip__arrow { transform: translateX(4px); }

.apps-page { min-height: 100vh; padding-top: 140px; }
.apps-page__hero { display: grid; grid-template-columns: 1.15fr 0.7fr; align-items: end; gap: 5rem; margin-bottom: 4rem; }
.apps-page__hero .section__title { margin: 0; }
.apps-page__hero .section__description { margin: 0; }
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.app-card { position: relative; overflow: hidden; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-bg-card); box-shadow: var(--shadow-card); transition: var(--transition-base); }
.app-card:hover { transform: translateY(-5px); border-color: var(--color-border-hover); box-shadow: var(--shadow-lg); }
.app-card__link { position: absolute; inset: 0; z-index: 3; }
.app-card__media { position: relative; height: 235px; overflow: hidden; background: var(--color-bg-secondary); }
.app-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.app-card:hover .app-card__media > img { transform: scale(1.035); }
.app-card__media > span { position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.65rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 99px; background: rgba(8, 20, 38, 0.72); color: white; font-size: 0.65rem; font-weight: 700; backdrop-filter: blur(12px); }
.app-card--primary { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 0.8fr; }
.app-card--primary .app-card__media { height: 100%; min-height: 350px; }
.app-card__body { display: flex; flex-direction: column; padding: 1.5rem; }
.app-card__heading { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.app-card__heading h2 { font-size: 1.3rem; line-height: 1.1; }
.app-card__heading small { color: var(--color-text-muted); font-size: 0.7rem; }
.app-card__logo { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; border: 1px solid var(--color-border); border-radius: 12px; background: #f4f7fb; }
.app-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.app-card__body > p { color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.65; }
.app-card__footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 1.5rem; color: var(--color-text-primary); font-size: 0.82rem; font-weight: 700; }
.app-card__footer span:last-child { color: var(--color-accent-light); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { position: relative; padding: 2rem; overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-bg-card); box-shadow: var(--shadow-card); transition: var(--transition-base); }
.service-card:hover { transform: translateY(-5px); border-color: var(--color-border-hover); box-shadow: var(--shadow-lg); }
.service-card__number { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.6rem; border-radius: 13px; background: rgba(59, 130, 246, 0.11); color: var(--color-accent-light); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; }
.service-card h3 { margin-bottom: 0.8rem; font-size: 1.25rem; }
.service-card p { min-height: 76px; color: var(--color-text-secondary); font-size: 0.9rem; }
.service-card ul { display: grid; gap: 0.55rem; margin: 1.5rem 0; list-style: none; color: var(--color-text-secondary); font-size: 0.85rem; }
.service-card li::before { content: '•'; margin-right: 0.55rem; color: var(--color-accent); }
.service-card a { color: var(--color-text-primary); text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.service-card a span { color: var(--color-accent-light); }

.services-page { min-height: 100vh; padding-top: 140px; }
.process { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 5rem; margin: 7rem 0; padding: 4rem; border: 1px solid var(--color-border); border-radius: 22px; background: var(--color-bg-secondary); }
.process h2 { font-size: 2rem; }
.process ol { display: grid; gap: 1rem; list-style: none; counter-reset: steps; }
.process li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.process li span { color: var(--color-text-secondary); }
.cta-band { padding-top: 20px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.5rem 4rem; border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 24px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.13), rgba(34, 211, 238, 0.06)); }
.cta-band__inner h2 { margin-bottom: 0.5rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-band__inner p { color: var(--color-text-secondary); }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 120px 0 80px; background: var(--gradient-hero); }
.not-found__layout { display: grid; grid-template-columns: 0.85fr 1fr; align-items: center; gap: 6rem; max-width: 1050px; }
.not-found__visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.not-found__orbit { position: absolute; border: 1px solid var(--color-border); border-radius: 50%; }
.not-found__orbit--one { width: 360px; height: 360px; }
.not-found__orbit--two { width: 270px; height: 270px; border-style: dashed; animation: rotate 24s linear infinite; }
.not-found__mascot { position: relative; z-index: 2; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 38px; background: linear-gradient(145deg, #173f70, #2563a4); box-shadow: 0 25px 70px rgba(23, 63, 112, 0.35); transform: rotate(-5deg); }
.not-found__mascot img { width: 105px; height: 105px; object-fit: contain; }
.not-found__pill { position: absolute; z-index: 3; padding: 0.65rem 0.9rem; border: 1px solid var(--color-border); border-radius: 11px; background: color-mix(in srgb, var(--color-bg-card) 90%, transparent); color: var(--color-text-secondary); box-shadow: var(--shadow-card); font-size: 0.72rem; backdrop-filter: blur(12px); }
.not-found__pill--top { top: 70px; right: 0; font-family: var(--font-mono); }
.not-found__pill--bottom { bottom: 80px; left: 0; }
.not-found__content { text-align: left; }
.not-found__code { margin-bottom: -0.6rem; font-size: clamp(5rem, 10vw, 8rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.08em; color: transparent; -webkit-text-stroke: 1px var(--color-border-hover); opacity: 0.32; }
.not-found h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
.not-found p { max-width: 540px; margin: 0 0 2rem; color: var(--color-text-secondary); font-size: 1.05rem; }
.not-found__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.not-found__shortcuts { display: flex; gap: 0.65rem; margin-top: 1.5rem; color: var(--color-text-muted); font-size: 0.78rem; }
.not-found__shortcuts a { color: var(--color-text-secondary); text-decoration: none; }
.not-found__shortcuts a:hover { color: var(--color-accent-light); }

[data-theme="light"] .project-detail__hero-overlay { background: linear-gradient(to top, rgba(8, 20, 38, 0.92), rgba(8, 20, 38, 0.18), transparent); }
[data-theme="light"] .project-detail__hero-content { color: white; }
[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active { background: rgba(37, 99, 235, 0.08); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero__grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero__grid .hero__content { max-width: 720px; text-align: center; margin: 0 auto; }
    .hero__grid .hero__description { margin-left: auto; margin-right: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
    .hero__visual { max-width: 720px; margin: 0 auto; }
    .product-spotlight__grid { grid-template-columns: 1fr; gap: 3rem; }
    .secondary-product__grid { grid-template-columns: 1fr; gap: 3rem; }
    .secondary-product__image { order: 2; }
    .section__header--split, .apps-page__hero { grid-template-columns: 1fr; gap: 1.5rem; }
    .app-card--primary { grid-template-columns: 1fr; }
    .not-found__layout { grid-template-columns: 1fr; gap: 1rem; }
    .not-found__visual { min-height: 330px; }
    .not-found__orbit--one { width: 290px; height: 290px; }
    .not-found__orbit--two { width: 220px; height: 220px; }
    .not-found__pill--top { top: 25px; right: 18%; }
    .not-found__pill--bottom { bottom: 28px; left: 18%; }
    .not-found__content { max-width: 650px; text-align: center; }
    .not-found p { margin-left: auto; margin-right: auto; }
    .not-found__actions, .not-found__shortcuts { justify-content: center; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card:last-child { grid-column: 1 / -1; }
    .process { grid-template-columns: 1fr; gap: 2.5rem; }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-card--featured {
        grid-template-columns: 1fr;
    }
    
    .project-card--featured .project-card__image-wrapper {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav { justify-content: flex-start; }
    .nav__logo { margin-right: auto; }
    .theme-toggle { margin: 0 0.75rem 0 0; order: 2; }
    .nav__toggle { order: 3; }

    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    [data-theme="light"] .nav__menu { background: rgba(247, 249, 252, 0.98); }
    
    .nav__menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav__link {
        font-size: 1.25rem;
        padding: 1rem 2rem;
    }
    
    .nav__link.active::after {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero__grid { gap: 3.5rem; }
    .hero__visual { width: calc(100% - 12px); }
    .floating-note--top { right: -8px; }
    .floating-note--bottom { left: -8px; }
    .hero__trust { gap: 0.75rem; flex-wrap: wrap; }
    .services-grid { grid-template-columns: 1fr; }
    .apps-strip, .apps-grid { grid-template-columns: 1fr; }
    .app-card--primary { grid-column: auto; }
    .app-card--primary .app-card__media { min-height: 235px; }
    .service-card:last-child { grid-column: auto; }
    .product-spotlight__grid { gap: 2rem; }
    .secondary-product__grid { gap: 2rem; }
    .process { margin: 4rem 0; padding: 2rem; }
    .process li { grid-template-columns: 1fr; gap: 0.25rem; }
    .cta-band__inner { align-items: flex-start; flex-direction: column; padding: 2rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        gap: 1.5rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
    
    .project-detail__hero-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }

    .hero__actions { align-items: stretch; flex-direction: column; }
    .hero__actions > * { width: 100%; }
    .hero__visual-orbit { width: 280px; height: 280px; }
    .floating-note { display: none; }
    .app-window { transform: none; border-radius: 12px; }
    .app-window__bar small { display: none; }
    .product-brand { flex-wrap: wrap; }
    .service-card { padding: 1.5rem; }
    .app-chip small { max-width: 180px; }
    .not-found { padding-top: 95px; }
    .not-found__visual { min-height: 280px; }
    .not-found__orbit--one { width: 240px; height: 240px; }
    .not-found__orbit--two { width: 180px; height: 180px; }
    .not-found__mascot { width: 120px; height: 120px; }
    .not-found__mascot img { width: 82px; height: 82px; }
    .not-found__pill--top { right: 2%; }
    .not-found__pill--bottom { left: 2%; }
    .not-found__actions { align-items: stretch; flex-direction: column; }
    .not-found__actions > * { width: 100%; }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .project-card__content {
        padding: 1.25rem;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--color-text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
