:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --accent: #38bdf8;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #22d3ee 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav,
section,
footer,
.project-card,
.about-image-card,
.skill-tag,
.feature-item,
.tech-badge,
.contact-link,
.contact-form-container,
.control-btn,
.phone-screen,
.about-icon-item {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    body,
    nav,
    section,
    footer,
    .project-card,
    .about-image-card,
    .skill-tag,
    .feature-item,
    .tech-badge,
    .contact-link,
    .contact-form-container,
    .control-btn,
    .phone-screen,
    .about-icon-item {
        transition: none;
    }
}

body.light-mode {
    --dark: #f1f5f9;
    --darker: #e2e8f0;
    --light: #0f172a;
    --gray: #334155;
}

body.light-mode nav {
    background: rgba(241, 245, 249, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode nav.scrolled {
    background: rgba(226, 232, 240, 0.96);
}

body.light-mode .nav-links a,
body.light-mode .hero-description,
body.light-mode .section-subtitle,
body.light-mode .about-text p,
body.light-mode .stat-label,
body.light-mode .project-description,
body.light-mode .project-tagline,
body.light-mode .contact-info p,
body.light-mode .contact-link-text small,
body.light-mode .footer-copyright {
    color: #334155;
}

body.light-mode .project-card,
body.light-mode .about-image-card,
body.light-mode .skill-tag,
body.light-mode .feature-item,
body.light-mode .tech-badge,
body.light-mode .contact-link {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.1);
}

body.light-mode .divex-detail-item {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.1);
}

body.light-mode .divex-detail-text h4 {
    color: #0f172a;
}

body.light-mode #about,
body.light-mode #projects,
body.light-mode #contact,
body.light-mode footer {
    background: rgba(148, 163, 184, 0.12);
}

/* Canvas animé en arrière-plan */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.7rem 2rem;
    background: rgba(2, 6, 23, 0.95);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-image {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

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

body.light-mode .logo-image {
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.04);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--light);
    transition: all 0.3s ease;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: 1rem;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.control-btn:hover {
    transform: translateY(-1px);
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
}

.control-btn i {
    font-size: 0.85rem;
}

.control-btn.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.45);
}

body.light-mode .control-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.15);
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-badge i {
    animation: pulse 2s infinite;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero-image-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.22));
    animation: spin 14s linear infinite, ringPulse 4.2s ease-in-out infinite;
}

.hero-image-ring:nth-child(2) {
    inset: 15px;
    animation-direction: reverse;
    animation-duration: 19s;
    opacity: 0.72;
}

.hero-image-placeholder {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
    overflow: hidden;
}

.hero-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-profile-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
}

.hero-profile-fallback.hidden {
    display: none;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center; /* keep all stats vertically aligned */
}

.stat {
    flex: 1; /* distribute space evenly */
    text-align: center; /* center content for consistent visual */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Section Title */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* About Section */
#about {
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.03) 50%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

.about-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.about-icon-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.about-icon-item:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-5px);
}

.about-icon-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.about-icon-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
}

.about-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.skill-tag i {
    color: var(--accent);
}

/* Projects Section */
#projects {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover {
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-5px);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.divex-expandable {
    cursor: pointer;
}

.divex-expandable:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.7);
    outline-offset: 3px;
}

.expand-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    color: var(--accent);
    opacity: 0.95;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.expand-hint i {
    transition: transform 0.25s ease;
}

.divex-details {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.3s ease;
}

.divex-expandable.expanded .divex-details {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0.5rem;
}

.divex-expandable.expanded .expand-hint i {
    transform: rotate(180deg);
}

.divex-detail-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.divex-detail-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.divex-detail-text p {
    color: var(--gray);
    font-size: 0.83rem;
    line-height: 1.45;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.project-app-logo {
    /* fill the entire project-icon blue area */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background: transparent;
    padding: 0;
    display: block;
}

.project-card.featured .project-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.project-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card.featured h3 {
    font-size: 2rem;
}

.project-tagline {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

.feature-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.tech-badge i {
    color: var(--accent);
}

.project-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.phone-mockup {
    width: 140px;
    height: 280px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    border: 2px solid #334155;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.phone-mockup.mini {
    width: 90px;
    height: 180px;
    transform: none;
}

.phone-mockup.mini:hover,
.phone-mockup.mini:first-child:hover,
.phone-mockup.mini:last-child:hover {
    transform: translateY(-4px) scale(1.01);
}

.phone-mockup.mini::before {
    width: 36px;
    height: 13px;
}

.phone-mockup.mini .phone-screen {
    border-radius: 12px;
    padding: 0;
}

.phone-mockup.mini .phone-screen i {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.phone-mockup.mini .phone-screen span {
    font-size: 0.6rem;
}

.phone-mockup:hover {
    transform: translateY(-8px) scale(1.02);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 18px;
    background: #0f172a;
    border-radius: 0 0 10px 10px;
}

.phone-mockup:first-child {
    transform: rotate(-8deg);
}

.phone-mockup:last-child {
    transform: rotate(8deg);
}

.phone-mockup:first-child:hover {
    transform: rotate(-8deg) translateY(-8px) scale(1.02);
}

.phone-mockup:last-child:hover {
    transform: rotate(8deg) translateY(-8px) scale(1.02);
}

.phone-screen {
    position: absolute;
    top: 8px;
    left: 5px;
    right: 5px;
    bottom: 8px;
    background: #0b1324;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.phone-clickable {
    cursor: zoom-in;
}

.phone-clickable::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.75);
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.phone-image {
    width: 100%;
    height: 100%;
    /* show the full image inside the mockup to reduce cropping/zoom */
    object-fit: contain;
    object-position: center center;
    border-radius: inherit;
    display: block;
    background: transparent;
    transform: none;
    transform-origin: center center;
}

.phone-screen i {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.phone-screen span {
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    text-align: center;
}

.phone-screen.placeholder {
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.image-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: min(420px, 90vw);
    width: 100%;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 1rem;
}

.lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 14px;
    background: #0f172a;
}

.lightbox-content p {
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .lightbox-content {
    background: rgba(241, 245, 249, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .lightbox-content p {
    color: #334155;
}

.phone-screen.placeholder i {
    opacity: 0.5;
}

.phone-screen.placeholder span {
    opacity: 0.6;
    font-size: 0.65rem;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-badge i {
    font-size: 0.7rem;
}

/* Contact Section */
#contact {
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.05) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateX(10px);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
}

.contact-link-text {
    flex: 1;
}

.contact-link-text span {
    display: block;
    font-weight: 600;
}

.contact-link-text small {
    color: var(--gray);
    font-size: 0.85rem;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

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

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--gray);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.project-link-row {
    margin-top: 1rem;
}

.app-page {
    background: var(--darker);
}

.app-main {
    min-height: calc(100vh - 84px);
    padding: 3rem 0;
}

.app-page .app-main section {
    min-height: auto;
    display: block;
    padding: 0;
}

.app-hero {
    padding: 1.5rem 2rem 1rem;
}

.app-details {
    padding: 0.8rem 2rem 2rem;
}

.app-container {
    max-width: 1080px;
}

.app-head {
    position: relative;
    text-align: center;
    padding-top: 0;
}

.app-head h1 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.app-subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.app-intro {
    color: var(--gray);
    max-width: 760px;
    margin: 0 auto;
}

.app-back-link {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    z-index: 99999;
    pointer-events: auto;
    margin-bottom: 0;
}

.app-back-floating {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    z-index: 99999;
    pointer-events: auto;
}

.app-logo-block {
    width: 104px;
    height: 104px;
    margin: 0 auto 0.75rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.app-detail-card h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.app-detail-card p {
    color: var(--gray);
}

.app-detail-card .phone-mockup {
    margin: 1rem auto 0;
}

.app-phone,
.app-phone:first-child,
.app-phone:last-child {
    width: 190px;
    height: 380px;
    transform: none;
}

.app-phone:hover,
.app-phone:first-child:hover,
.app-phone:last-child:hover {
    transform: translateY(-8px) scale(1.02);
}

.app-shot {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 6, 23, 0.4);
}

.app-policy-card {
    max-width: 880px;
    margin: 0 auto;
}

.app-policy-card h3 {
    margin-top: 1.1rem;
}

.app-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 2rem;
    background: rgba(2, 6, 23, 0.85);
}

.app-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.app-footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-privacy-link {
    color: var(--gray);
    font-size: 0.78rem;
    text-decoration: none;
    opacity: 0.85;
}

.app-privacy-link:hover {
    color: var(--accent);
    opacity: 1;
}

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

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

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

@keyframes ringPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.18));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.28));
    }
}

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

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

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

/* Scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-controls {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .control-btn span {
        display: none;
    }

    .control-btn {
        padding: 0.45rem;
        border-radius: 10px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.3s ease;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }

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

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .divex-details {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

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

    .app-footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-footer-links {
        justify-content: flex-start;
    }

    .app-back-link {
        top: 1rem;
        left: 1rem;
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
        z-index: 99999;
    }

    .app-back-floating {
        top: 1rem;
        left: 1rem;
        z-index: 99999;
    }

    .app-phone,
    .app-phone:first-child,
    .app-phone:last-child {
        width: 155px;
        height: 310px;
    }

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

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

@media (max-width: 480px) {
    section {
        padding: 4rem 1rem;
    }

    .nav-controls {
        gap: 0.4rem;
        margin-right: 0.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        text-align: center;
    }

    .phone-mockup {
        width: 110px;
        height: 220px;
    }
}
