/* ================================================================
   JS-TechSoft Portfolio Styles
   Extracted from portfolio.html — do NOT modify design tokens
   ================================================================ */

:root {
    --bg-deep: #050816;
    --bg-secondary: #0D1324;
    --bg-card: #0a0f20;
    --accent-blue: #4D7CFF;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06D6F0;
    --accent-indigo: #6366F1;
    --accent-pink: #EC4899;
    --accent-green: #22c55e;
    --text-primary: #F0F2F8;
    --text-secondary: #B0B8D0;
    --text-muted: #6B728F;
    --glass-bg: rgba(13, 19, 36, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: 24px;
    --glow-blue: 0 0 40px rgba(77, 124, 255, 0.35);
    --glow-purple: 0 0 40px rgba(139, 92, 246, 0.35);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --section-padding: 100px 0;
    --gradient-1: linear-gradient(135deg, #4D7CFF, #8B5CF6);
    --gradient-2: linear-gradient(135deg, #8B5CF6, #EC4899);
    --gradient-3: linear-gradient(135deg, #06D6F0, #4D7CFF);
    --gradient-4: linear-gradient(135deg, #6366F1, #06D6F0);
    --navbar-bg: rgba(5, 8, 22, 0.95);
    --hero-badge-bg: rgba(13, 19, 36, 0.65);
    --btn-outline-border: rgba(255, 255, 255, 0.3);
    --rolling-icon-color: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --about-back-text: var(--text-primary);
}

[data-theme="light"] {
    --bg-deep: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0a0a1a;
    --text-secondary: #2d2d40;
    --text-muted: #4a4a5e;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.18);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --hero-badge-bg: rgba(255, 255, 255, 0.85);
    --btn-outline-border: rgba(0, 0, 0, 0.25);
    --rolling-icon-color: rgba(0, 0, 0, 0.65);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    --glow-blue: 0 0 30px rgba(77, 124, 255, 0.12);
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.12);
    --about-back-text: #0a0a1a;
}

[data-theme="cyber"] {
    --bg-deep: #0a0a1a;
    --bg-secondary: #10102e;
    --bg-card: #12123a;
    --accent-blue: #00f0ff;
    --accent-purple: #c300ff;
    --accent-cyan: #00ffcc;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0cc;
    --text-muted: #7070aa;
    --glass-bg: rgba(10, 10, 40, 0.7);
    --glass-border: rgba(0, 255, 255, 0.15);
    --gradient-1: linear-gradient(135deg, #00f0ff, #c300ff);
    --gradient-2: linear-gradient(135deg, #c300ff, #ff00aa);
    --gradient-3: linear-gradient(135deg, #00ffcc, #00f0ff);
    --glow-blue: 0 0 40px rgba(0, 240, 255, 0.5);
    --glow-purple: 0 0 40px rgba(195, 0, 255, 0.5);
    --navbar-bg: rgba(10, 10, 30, 0.95);
    --btn-outline-border: rgba(0, 255, 255, 0.4);
    --rolling-icon-color: rgba(200, 200, 255, 0.8);
    --about-back-text: #e0e0ff;
}

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

html {
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: #4D7CFF var(--bg-deep);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: default;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* ── Custom Cursor ── */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.custom-cursor.hovering {
    width: 48px;
    height: 48px;
    border-color: var(--accent-blue);
    background: rgba(77, 124, 255, 0.15);
    mix-blend-mode: normal;
}

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

/* ── Page Loader ── */
.page-loader {
    position: fixed;
    inset: 0;
    background: #050816;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: #4D7CFF;
    border-right-color: #8B5CF6;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

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

/* ── Navigation ── */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
    background: transparent;
}

.navbar-custom.scrolled,
.navbar-custom.menu-open {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-toggler {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%234D7CFF' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {
    #mainNav {
        background: var(--navbar-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
        margin-top: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--glass-border);
    }
    .navbar-custom .nav-link {
        padding: 12px 24px !important;
        font-size: 1.1rem;
        color: var(--text-primary);
        font-weight: 500;
    }
    .navbar-custom .btn-nav-cta {
        margin: 8px 24px;
        width: calc(100% - 48px);
        text-align: center;
    }
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-custom .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--text-primary);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    transform: scaleX(1);
}

.btn-nav-cta {
    background: var(--gradient-1);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: var(--glow-blue);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 55px rgba(77, 124, 255, 0.55);
    color: #fff;
}

.theme-switch-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.theme-switch-btn:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* ── Back to Main Site Button ── */
.back-to-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.back-to-site-btn:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(77, 124, 255, 0.1);
    transform: translateX(-2px);
    box-shadow: 0 0 12px rgba(77, 124, 255, 0.2);
}

.back-to-site-btn i {
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .back-to-site-btn {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

/* ── Hero Section ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: 0;
    animation: blobFloat 8s infinite;
}

.hero-bg-blob.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    right: -150px;
}

.hero-bg-blob.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -200px;
    left: -150px;
    animation-delay: -4s;
}

.hero-bg-blob.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-cyan);
    top: 50%;
    left: 40%;
    animation-delay: -2s;
    opacity: 0.2;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.08); }
    50% { transform: translate(-20px, 25px) scale(0.94); }
    75% { transform: translate(-35px, -20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.hero-badge .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

.hero-badge .dot.green { background: #22c55e; }

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.js-monogram {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 20%, var(--accent-blue) 60%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
    animation: breathe 3s infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(77, 124, 255, 0.4)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.7)); }
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.hero-title .company-name {
    background: linear-gradient(to right, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1em;
    font-weight: 800;
}

.typewriter-cursor {
    display: inline-block;
    background: var(--accent-blue);
    width: 4px;
    height: 0.9em;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
}

.btn-primary-glow {
    background: var(--gradient-1);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    transition: 0.35s;
    box-shadow: var(--glow-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(77, 124, 255, 0.6);
    color: #fff;
}

.btn-outline-glow {
    background: transparent;
    border: 1.5px solid var(--btn-outline-border);
    color: var(--text-primary);
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    transition: 0.35s;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-glow:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    transform: translateY(-3px);
}

.hero-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ── 3D Cube ── */
.scene-3d {
    perspective: 1000px;
    width: 100%;
    max-width: 400px;
    height: 280px;
    margin: 0 auto;
}

.cube-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-shadow: var(--card-shadow);
    backface-visibility: hidden;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(150px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(150px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }

.cube-face i {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.cube-face h4 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cube-face p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── About Flip Cards ── */
.about-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.about-flip {
    perspective: 1000px;
    height: 320px;
}

.about-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.about-flip:hover .about-flip-inner,
.about-flip.flipped .about-flip-inner {
    transform: rotateY(180deg);
}

.about-front,
.about-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.about-back {
    transform: rotateY(180deg);
    overflow-y: auto;
}

.about-front .about-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--gradient-1);
    color: #fff;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.about-front h4 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.about-back h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-back p {
    color: var(--about-back-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-flip {
    perspective: 1000px;
    height: 340px;
}

.service-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.service-flip:hover .service-flip-inner {
    transform: rotateY(180deg);
}

.service-front,
.service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.service-back {
    transform: rotateY(180deg);
    overflow-y: auto;
    justify-content: flex-start;
}

.service-front .service-icon {
    font-size: 2.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.service-front h4 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.service-back h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-back p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

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

/* ── Team Grid ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.team-flip-card {
    perspective: 1000px;
    height: 450px;
}

.team-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.team-flip-card:hover .team-flip-card-inner {
    transform: rotateY(180deg);
}

.team-front,
.team-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.team-front {
    justify-content: flex-start;
    padding-top: 35px;
}

.team-back {
    transform: rotateY(180deg);
    overflow-y: auto;
    justify-content: flex-start;
}

.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: var(--gradient-1);
    flex-shrink: 0;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: 1;
    transition: transform 0.4s ease;
}

.team-avatar:hover img {
    transform: scale(1.15);
}

.team-avatar .initials {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    pointer-events: none;
    z-index: 0;
}

.team-front h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-front .role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-front .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.team-front .skill-badge {
    background: rgba(77, 124, 255, 0.2);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.team-back .bio-list {
    text-align: left;
    width: 100%;
    margin-top: 10px;
}

.team-back .bio-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-back .bio-item i {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-top: 3px;
}

/* ── Portfolio Rolling Section ── */
.portfolio-rolling-wrapper {
    overflow: hidden;
    padding: 10px 0 30px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.portfolio-track {
    display: flex;
    gap: 1.75rem;
    width: max-content;
    animation: scrollLeft 45s linear infinite;
}

.portfolio-track.reverse {
    animation: scrollRight 45s linear infinite;
    margin-top: 1.75rem;
}

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

.portfolio-flip-card {
    perspective: 1000px;
    width: 300px;
    height: 320px;
    flex-shrink: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.portfolio-flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.flip-card-front {
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 30px 20px;
    justify-content: center;
    text-align: center;
}

.flip-card-front .project-icon {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.flip-card-front h5 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.flip-card-front .project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-blue);
    background: rgba(77, 124, 255, 0.12);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 6px;
}

.flip-card-front .tech-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.flip-card-back h5 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.flip-card-back p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Rolling Tech Section ── */
.rolling-tech-section {
    padding: 60px 0;
    background: var(--bg-deep);
    overflow: hidden;
}

.rolling-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
    align-items: center;
}

.rolling-track.reverse {
    animation: scrollRight 30s linear infinite;
    margin-top: 2rem;
}

.rolling-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 3rem;
    color: var(--rolling-icon-color);
    transition: 0.3s;
    min-width: 100px;
}

.rolling-icon i { font-size: 3rem; margin-bottom: 0.3rem; }
.rolling-icon span { font-size: 0.8rem; color: var(--text-muted); }
.rolling-icon:hover { color: var(--accent-blue); transform: scale(1.15); }

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

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

/* ── FAQ Section ── */
.faq-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.faq-search-wrapper {
    max-width: 520px;
    margin: 0 auto 40px;
    position: relative;
}

.faq-search-wrapper .form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    backdrop-filter: blur(8px);
}

.faq-search-wrapper .form-control::placeholder { color: var(--text-muted); }

.faq-accordion .accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 18px 20px;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) { color: var(--accent-blue); }

.faq-accordion .accordion-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.text-muted { color: var(--text-muted) !important; }

/* ── Contact Form ── */
.contact-form .form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(77, 124, 255, 0.15);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(77, 124, 255, 0.4);
}

.contact-form select.form-control { color-scheme: dark; }
[data-theme="light"] .contact-form select.form-control { color-scheme: light; }
.contact-form select.form-control option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
    box-shadow: var(--glow-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ── Section Heading ── */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .js-monogram { font-size: 3rem; }
    .scene-3d { height: 220px; }
    .section-label { font-size: 1.8rem; }
    .rolling-icon { font-size: 2.2rem; min-width: 70px; }
    .rolling-icon i { font-size: 2.2rem; }
    .about-flip { height: 300px; }
    .service-flip { height: 320px; }
    .team-flip-card { height: 420px; }
    .portfolio-flip-card { width: 250px; height: 300px; }
    body { padding-top: 70px; }
}
