/* ============================================
   UTD Dev - Development Services Page Styles
   3D Effects, Code Animations & Modern Design
   ============================================ */

:root {
    --dev-green: #10b981;
    --dev-green-dark: #059669;
    --dev-green-light: #34d399;
    --dev-blue: #3b82f6;
    --dev-purple: #8b5cf6;
    --dev-cyan: #06b6d4;
    --dev-orange: #f59e0b;
    --dev-pink: #ec4899;
}

/* ============================================
   PAGE BACKGROUND
   ============================================ */
.dev-page {
    background: #0a0118;
    color: #fff;
    overflow-x: hidden;
}

.dev-page .container {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   NAVBAR - Dev Page Theme
   ============================================ */
.dev-page .land-nav {
    background: rgba(10, 1, 24, 0.95);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.1);
}

.dev-page .land-nav.scrolled {
    background: rgba(10, 1, 24, 0.98);
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.2);
}

.dev-page .land-nav-links a.active {
    color: var(--dev-green-light);
}

.dev-page .btn-land-cta {
    background: linear-gradient(135deg, var(--dev-green), var(--dev-green-light));
}

.dev-page .btn-land-cta:hover {
    background: linear-gradient(135deg, var(--dev-green-dark), var(--dev-green));
}

/* Mobile menu highlight */
.dev-page .mobile-nav-panel a[href="dev.html"] {
    color: var(--dev-green-light) !important;
    background: rgba(16, 185, 129, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.dev-hero {
    position: relative;
    min-height: 100vh;
    padding: 90px 0 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dev-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0a0118 0%, #0d1f1a 30%, #1a2e28 60%, #0a0118 100%);
}

/* Code Rain Effect */
.code-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.15;
}

.code-drop {
    position: absolute;
    top: -20px;
    color: var(--dev-green);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    animation: dropFall linear infinite;
    text-shadow: 0 0 10px var(--dev-green);
}

@keyframes dropFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Floating Code Blocks */
.floating-code-blocks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.1;
}

.code-block {
    position: absolute;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--dev-green-light);
    animation: floatCode linear infinite;
    white-space: nowrap;
}

@keyframes floatCode {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, -60px) rotate(-5deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Hero Content */
.dev-hero .container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
}

.dev-hero-content {
    max-width: 650px;
    animation: slideInFromRight 1s ease-out;
    order: 1;
}

[dir="ltr"] .dev-hero-content {
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dev-green-light);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

.dev-hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    color: #fff;
}

.gradient-text-dev {
    background: linear-gradient(135deg, #10b981, #34d399, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dev-hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* Hero Stats */
.dev-hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dev-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dev-stat:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.dev-stat .stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dev-green), var(--dev-cyan));
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.dev-stat .stat-number {
    font-size: 24px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
}

.dev-stat .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Buttons */
.dev-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-dev-primary,
.btn-dev-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.btn-dev-primary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-dev-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #34d399, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-dev-primary:hover::before {
    opacity: 1;
}

.btn-dev-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.6);
}

.btn-dev-primary span,
.btn-dev-primary i {
    position: relative;
    z-index: 1;
}

.btn-dev-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dev-green-light);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.btn-dev-secondary:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* ============================================
   FLOATING DEVICES - 3D Showcase
   ============================================ */
.floating-devices {
    position: relative;
    height: 600px;
    perspective: 1000px;
    order: 2;
}

/* ---- Glow rings behind phone ---- */
.hero-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 4s ease-in-out infinite;
}
.ring-1 {
    width: 320px; height: 320px;
    border-color: rgba(16, 185, 129, 0.25);
    animation-delay: 0s;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1) inset;
}
.ring-2 {
    width: 480px; height: 480px;
    border-color: rgba(59, 130, 246, 0.15);
    animation-delay: 1.3s;
}
.ring-3 {
    width: 640px; height: 640px;
    border-color: rgba(139, 92, 246, 0.08);
    animation-delay: 2.6s;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* ---- Phone wrapper ---- */
.hero-phone-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%       { transform: translate(-50%, -50%) translateY(-18px); }
}

/* ---- Phone frame ---- */
.hero-phone {
    width: 260px;
    height: 520px;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border-radius: 38px;
    padding: 10px;
    box-shadow:
        0 0 0 2px rgba(16, 185, 129, 0.4),
        0 0 60px rgba(16, 185, 129, 0.25),
        0 40px 100px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-phone-notch {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    margin: 0 auto 6px;
}

.hero-phone-screen {
    width: 100%;
    height: calc(100% - 26px);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.hero-app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.hero-app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent 60%,
        rgba(16, 185, 129, 0.15) 100%);
}

.hero-phone-btn {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* ---- Floating stat cards ---- */
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(10, 1, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    animation: cardFloat 5s ease-in-out infinite;
}
.card-top-left    { top: 20px;   left: -80px;  animation-delay: 0s; }
.card-bottom-right{ bottom: 60px; right: -80px; animation-delay: 1.5s; }
.card-mid-left    { top: 50%;    left: -90px;  animation-delay: 0.8s; transform: translateY(-50%); }
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.card-mid-left { animation: cardFloatMid 5s ease-in-out infinite; }
@keyframes cardFloatMid {
    0%, 100% { transform: translateY(-50%); }
    50%       { transform: translateY(calc(-50% - 8px)); }
}

.hfc-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff;
    flex-shrink: 0;
}
.hfc-text { display: flex; flex-direction: column; }
.hfc-text strong { font-size: 15px; font-weight: 800; color: #fff; line-height: 1; }
.hfc-text span   { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ---- Floating tech badges ---- */
.hero-tech-badge {
    position: absolute;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(8px);
    animation: badgeSpin 8s ease-in-out infinite;
}
.badge-react  {
    top: 10px; right: -20px;
    background: rgba(97, 218, 251, 0.15);
    border: 1px solid rgba(97, 218, 251, 0.4);
    color: #61dafb;
    animation-delay: 0s;
}
.badge-flutter {
    bottom: 80px; left: -30px;
    background: rgba(2, 86, 155, 0.2);
    border: 1px solid rgba(85, 197, 240, 0.4);
    color: #55C5F0;
    animation-delay: 2s;
}
.badge-node {
    bottom: 20px; right: -10px;
    background: rgba(104, 160, 99, 0.2);
    border: 1px solid rgba(104, 160, 99, 0.4);
    color: #68A063;
    animation-delay: 4s;
}
@keyframes badgeSpin {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(15deg); }
}

/* ============================================
   TECH STACK SECTION - Infinite Marquee
   ============================================ */
.tech-stack {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #0d0a1f 0%, #0a0118 50%, #0d1a14 100%);
    position: relative;
    overflow: hidden;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.dev-badge-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dev-green-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    color: #fff;
}

.section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Marquee wrapper */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    direction: ltr; /* force LTR so animation is consistent regardless of page direction */
    will-change: transform;
}

.marquee-ltr {
    animation: scrollLTR 35s linear infinite;
}

.marquee-rtl {
    animation: scrollRTL 35s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

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

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

/* Each tech pill */
.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    white-space: nowrap;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.marquee-item:hover {
    border-color: var(--clr);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15),
                0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.06) translateY(-2px);
}

.marquee-item i {
    font-size: 24px;
    color: var(--clr);
    filter: drop-shadow(0 0 6px var(--clr));
}

.marquee-item span {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.dev-services {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0118 0%, #1a0a2e 100%);
}

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

.service-card {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(16, 185, 129, 0.15),
        transparent 30%
    );
    animation: rotateGradient 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes rotateGradient {
    100% { transform: rotate(360deg); }
}

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

.service-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(16, 185, 129, 0.4);
}

.service-icon-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dev-green), var(--dev-cyan));
    border-radius: 20px;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-glow {
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(30px);
    opacity: 0.5;
    z-index: 0;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.service-features li i {
    color: var(--dev-green-light);
    font-size: 14px;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--dev-green), var(--dev-cyan));
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-cta:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

[dir="ltr"] .service-cta:hover {
    transform: translateX(4px);
}

/* ============================================
   DEVELOPMENT PROCESS
   ============================================ */
.dev-process {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a0a2e 0%, #0a0118 100%);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.process-step {
    position: relative;
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.4s ease;
}

.process-step:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dev-green), var(--dev-cyan));
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

[dir="ltr"] .step-number {
    left: 24px;
    right: auto;
}

.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    font-size: 28px;
    color: var(--dev-green-light);
    margin: 0 auto 20px;
}

.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.step-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-choose-us {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0118 0%, #1a0a2e 100%);
}

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

.feature-card {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.dev-portfolio {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a0a2e 0%, #0a1a14 50%, #0a0118 100%);
    position: relative;
    overflow: hidden;
}

.dev-portfolio::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

/* --- Portfolio Card --- */
.portfolio-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4,0,0.2,1);
}

.portfolio-card:hover {
    border-color: rgba(16,185,129,0.35);
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(16,185,129,0.2);
}

/* --- Card Visual (top colored area) --- */
.portfolio-card-visual {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pclr1) 20%, #0a0118), color-mix(in srgb, var(--pclr2) 20%, #0a0118));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .portfolio-card-visual {
        background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(6,182,212,0.2));
    }
}

.pv-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

/* Mini phone mockup inside card visual */
.pv-phone-mini {
    width: 100px;
    height: 170px;
    background: #0d0d1a;
    border-radius: 16px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        0 0 0 1px rgba(var(--pclr1), 0.3),
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(16,185,129,0.15);
    position: relative;
    z-index: 2;
}

.pv-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #111827;
    overflow: hidden;
    padding: 8px 6px;
}

/* Fake UI elements inside mini phone */
.pv-app-ui { display: flex; flex-direction: column; gap: 6px; }

.pv-ui-bar {
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.pv-ui-card {
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
}

.pv-ui-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.pv-ui-product {
    height: 28px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
}

.pv-ui-btn {
    height: 16px;
    border-radius: 8px;
    margin-top: 4px;
}

.pv-ui-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59,130,246,0.4);
    margin: 0 auto 4px;
}

.pv-ui-chart {
    height: 35px;
    background: linear-gradient(to top, rgba(16,185,129,0.3), rgba(6,182,212,0.1));
    border-radius: 4px;
    border-bottom: 1px solid rgba(16,185,129,0.5);
}

.pv-ui-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pv-ui-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pv-ui-bar.short { height: 5px; }

.pv-ui-map {
    height: 42px;
    background: rgba(59,130,246,0.12);
    border-radius: 4px;
    border: 1px solid rgba(59,130,246,0.2);
    position: relative;
    overflow: hidden;
}

.pv-ui-balance {
    height: 30px;
    background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(59,130,246,0.3));
    border-radius: 6px;
}

.pv-ui-progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.pv-ui-progress-fill {
    height: 100%;
    border-radius: 3px;
}

/* Floating icons in card visual */
.pv-icon-float {
    position: absolute;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(8px);
    z-index: 3;
    animation: pvIconFloat 4s ease-in-out infinite;
}

@keyframes pvIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-6px) rotate(8deg); }
}

/* --- Card Info (bottom text area) --- */
.portfolio-card-info {
    padding: 24px 28px;
}

.pci-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.pci-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.pci-type {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    color: var(--dev-green-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.portfolio-card-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 16px;
}

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

.pci-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--tc, rgba(255,255,255,0.7));
    font-family: 'Fira Code', monospace;
    transition: all 0.3s;
}

.portfolio-card:hover .pci-tag {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
}

/* Portfolio bottom CTA */
.portfolio-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.portfolio-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.dev-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a0a2e 0%, #0d1f1a 50%, #1a0a2e 100%);
    position: relative;
    overflow: hidden;
}

.dev-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dev-green), var(--dev-cyan));
    border-radius: 50%;
    font-size: 48px;
    color: #fff;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.6);
    animation: ctaIconPulse 3s ease-in-out infinite;
}

@keyframes ctaIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(16, 185, 129, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 25px 80px rgba(16, 185, 129, 0.8);
    }
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-dev-primary-xl {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
}

.btn-dev-primary-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 60px rgba(16, 185, 129, 0.7);
}

.btn-dev-wa {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
}

.btn-dev-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.3);
}

/* ============================================
   FADE-UP ANIMATION
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .dev-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dev-hero-content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

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

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

    .floating-devices {
        width: 100%;
        height: 450px;
        order: 2;
    }
}

@media (max-width: 768px) {
    .dev-page .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dev-hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

    .dev-hero-title {
        font-size: 32px;
    }

    .dev-hero-desc {
        font-size: 14px;
    }

    .dev-stat {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px;
    }

    .floating-devices {
        height: 350px;
    }

    .hero-phone {
        width: 200px;
        height: 400px;
    }

    .card-top-left    { left: -30px; top: 10px; }
    .card-bottom-right{ right: -30px; bottom: 30px; }
    .card-mid-left    { left: -20px; }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .tech-item {
        padding: 16px;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

    .section-header h2 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn-dev-primary-xl,
    .btn-dev-wa {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dev-hero-title {
        font-size: 28px;
    }

    .dev-hero-desc {
        font-size: 13px;
    }

    .dev-badge {
        font-size: 11px;
        padding: 8px 14px;
    }

    .floating-devices {
        height: 280px;
    }

    .hero-phone {
        width: 160px;
        height: 320px;
    }

    .card-top-left, .card-bottom-right, .card-mid-left {
        display: none;
    }
}
