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

:root {
    /* Gradient colors: blue, purple, little pink */
    --blue-1: #3b82f6;
    --blue-2: #2563eb;
    --purple-1: #6366f1;
    --purple-2: #8b5cf6;
    --purple-3: #a855f7;
    --pink-1: #ec4899;
    --pink-2: #f472b6;
    
    /* Colors similar to aayushbharti.in - vivid and intense */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --bg-dark: #0a0e27;
    
    /* Border colors - vivid and intense */
    --border-default: rgba(255, 255, 255, 0.1);
    --border-blue: rgba(59, 130, 246, 0.4);
    --border-purple: rgba(99, 102, 241, 0.4);
    --border-pink: rgba(236, 72, 153, 0.4);
    
    /* Glow colors - vivid */
    --glow-blue: rgba(59, 130, 246, 0.3);
    --glow-purple: rgba(99, 102, 241, 0.3);
    --glow-pink: rgba(236, 72, 153, 0.3);
    
    /* Card backgrounds */
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-bg-hover: rgba(255, 255, 255, 0.04);
    
    /* Gradient text colors - Always gradient, never single color */
    --gradient-start: #3b82f6; /* Blue */
    --gradient-mid: #6366f1; /* Purple */
    --gradient-mid2: #8b5cf6; /* Purple-Pink */
    --gradient-end: #ec4899; /* Pink */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    position: relative;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden !important;
    overflow-y: auto;
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Uniform lighter blue background for Mavis project page - using the blue color from the border */
body.project-mavis-page {
    background-color: rgba(37, 55, 110, 1); /* Lighter blue based on #3b82f6 (#2563eb) but darker for background */
    background: rgba(37, 55, 110, 1);
    min-height: 100vh;
    position: relative;
    transition: background-color 0.5s ease;
}

/* Ensure gradient canvas is hidden on Mavis page */
body.project-mavis-page .gradient-canvas {
    display: none !important;
}

/* Hide the state-panel section (Home – daily overview) on Mavis page */
body.project-mavis-page .state-panel {
    display: none !important;
}

/* Reduce spacing between sections on Mavis page */
body.project-mavis-page .system-blueprint {
    padding-top: 20px !important; /* Very little space between phone and Complete artificial heart monitoring flow */
    margin-top: 0; /* No extra margin */
}

/* Reduce spacing and make title white on Mavis page */
body.project-mavis-page .project-hero {
    padding-top: 100px !important;
}

body.project-mavis-page .project-hero-title {
    color: #ffffff !important;
}

/* Improve text readability on Mavis page */
body.project-mavis-page .project-hero-lede {
    font-size: 1.4rem !important;
    max-width: 1100px !important;
    line-height: 1.8 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #ffffff !important;
}

main,
section,
.container,
.project-detail,
.device-lab,
.lab-visual,
.lab-device-wrapper,
.navbar,
.project-hero,
.state-panel,
.system-blueprint {
    overflow-x: visible !important; /* Allow phone to move outside container */
    overflow-y: visible !important;
    max-width: 100vw;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Exception for .device-lab - allow phone to move freely */
.device-lab,
.lab-visual {
    overflow: visible !important;
}

img,
video,
iframe,
model-viewer {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Force all elements to use box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent any block-level element from creating horizontal overflow */
div,
section,
main,
article,
header,
footer,
nav,
aside {
    max-width: 100%;
    min-width: 0;
}

/* Gradient Canvas Background - KEEP THIS */
.gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    filter: blur(75px);
    transform: scale(1.05);
    opacity: 0.85;
    overflow: hidden;
}

/* Gradient Text - Purple to Pink to Orange - Always maintains gradient */
.gradient-text {
    background: linear-gradient(135deg, 
        #8b5cf6 0%, 
        #ec4899 50%, 
        #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradient-flow 8s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Navigation - Exact like aayushbharti.in */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-brand {
    position: absolute;
    left: 5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-brand:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.nav-language {
    position: absolute;
    right: 5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

.nav-language:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang-text {
    display: block;
}

.nav-menu-capsule {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-active-indicator {
    position: absolute;
    top: 0.375rem;
    height: calc(100% - 0.75rem);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 0;
    will-change: left, width;
}

.nav-link.active ~ .nav-active-indicator,
.nav-active-indicator.active {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    z-index: 1;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link.nav-cta {
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.nav-link.nav-cta:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Remove background when Contact is active - indicator will show instead */
.nav-link.nav-cta.active {
    background: transparent;
}

/* Section Label - Uppercase small text */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    background: transparent;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-email:hover {
    color: var(--text-primary);
}

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

.email-link {
    color: inherit;
    text-decoration: none;
}

/* Section Styles */
section {
    padding: 100px 20px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Info Grid Section - Like aayushbharti.in */
.info-grid-section {
    padding: 120px 20px 80px 20px !important;
    background: transparent;
    position: relative;
    z-index: 1;
    perspective: 1500px;
    transform-style: preserve-3d;
    overflow: visible !important;
    margin-top: 0;
    scroll-margin-top: 100px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 5 Cards Grid Layout - Clean rectangular layout */
.info-grid-5 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    align-items: stretch;
    overflow: visible !important;
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Top row - 2 wide rectangles */
.info-card-collab {
    grid-column: 1;
    grid-row: 1;
    min-height: 240px !important;
    max-height: 240px !important;
    height: 240px !important;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    position: relative;
    z-index: 1;
}

.info-card-collab:hover {
    transform: translateY(-4px);
    z-index: 4;
    overflow: visible;
}

.info-card-collab {
    overflow: visible;
}

.info-card-tech {
    grid-column: 2 / 4;
    grid-row: 1;
    min-height: 240px !important;
    max-height: 240px !important;
    height: 240px !important;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    justify-content: flex-start;
    overflow: hidden;
}

.info-card-tech .info-title {
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.info-card-tech .about-scroll-container {
    height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-top: 0;
}

.info-card-tech .about-scroll-content {
    text-align: center;
}

.info-card-tech:hover {
    transform: translateY(-4px);
    z-index: 4;
}

/* Bottom row - combined card + scoop */
.info-card-combined {
    grid-column: 1 / 3;
    grid-row: 2;
    min-height: 240px !important;
    max-height: 240px !important;
    height: 240px !important;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    overflow: hidden;
}

.info-card-combined:hover {
    transform: translateY(-4px);
    z-index: 4;
}

.info-card-combined .combined-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 0.25rem 0 0.5rem 0;
    overflow: hidden;
}

.info-card-combined .combined-left .globe-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.info-card-combined .combined-left .info-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.info-card-combined .combined-left .skills-two-rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.info-card-combined .combined-left .skills-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-card-combined .combined-left .skill-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card-combined .combined-left .skills-scroll-row {
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    padding-bottom: 0.25rem;
    width: 100%;
}

.info-card-combined .combined-left .skills-scroll-row .tech-word {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.skills-row-hard .skills-scroll-row {
    animation: scroll-skills-left 35s linear infinite;
}

.skills-row-soft .skills-scroll-row {
    animation: scroll-skills-right 32s linear infinite;
}

@keyframes scroll-skills-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes scroll-skills-right {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

.info-card-combined .combined-left .flags-container {
    margin-top: 0.25rem;
}

.info-card-combined .combined-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100%;
    padding: 0.5rem 0;
}

.info-card-combined .combined-right .center-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.info-card-combined .combined-right .email-button {
    margin-top: 0.25rem;
}

.info-card-scoop {
    grid-column: 3;
    grid-row: 2;
    min-height: 240px !important;
    max-height: 240px !important;
    height: 240px !important;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    overflow: hidden;
    justify-content: flex-start;
}

.info-card-scoop:hover {
    transform: translateY(-4px);
    z-index: 4;
}

.info-card-scoop .info-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    margin-top: -0.5rem;
    text-align: center;
}

.info-card-scoop .info-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: -0.25rem;
    text-align: center;
}

.info-card-scoop .scoop-boxes-container {
    flex: 1;
    height: auto;
    min-height: 0;
    max-height: 140px;
    margin-top: 0;
}

/* About Me Scrollable Container */
.about-scroll-container {
    height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-top: 0;
}

.about-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.about-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.about-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.about-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.about-scroll-content {
    padding: 0.5rem 0;
}

.about-scroll-content p {
    margin: 0 0 1.25rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.about-scroll-content p:last-child {
    margin-bottom: 0;
}

/* Collaboration Card - Icons Grid */
.collab-main-title {
    text-align: center;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
}

.collab-icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.collab-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    animation: float-icon 3s ease-in-out infinite;
}

/* Instagram - Albastru */
.collab-icon-link[data-platform="instagram"] {
    border-color: rgba(255, 255, 255, 0.15);
    animation: float-icon 3s ease-in-out infinite, glow-blue 4s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.collab-icon-link[data-platform="instagram"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.collab-icon-link[data-platform="instagram"]:hover::before {
    width: 150%;
    height: 150%;
}

.collab-icon-link[data-platform="instagram"]:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.7);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.collab-icon-link[data-platform="instagram"]:hover .collab-icon-svg {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8)) brightness(1.2);
    transform: rotate(5deg) scale(1.1);
}

/* LinkedIn - Mov */
.collab-icon-link[data-platform="linkedin"] {
    border-color: rgba(255, 255, 255, 0.15);
    animation: float-icon 3s ease-in-out infinite, glow-purple 4s ease-in-out infinite;
    animation-delay: 0.3s, 1.5s;
}

.collab-icon-link[data-platform="linkedin"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.collab-icon-link[data-platform="linkedin"]:hover::before {
    width: 150%;
    height: 150%;
}

.collab-icon-link[data-platform="linkedin"]:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.7);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.collab-icon-link[data-platform="linkedin"]:hover .collab-icon-svg {
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.8)) brightness(1.2);
    transform: rotate(5deg) scale(1.1);
}

/* Email - Roz */
.collab-icon-link[data-platform="email"] {
    border-color: rgba(255, 255, 255, 0.15);
    animation: float-icon 3s ease-in-out infinite, glow-pink 4s ease-in-out infinite;
    animation-delay: 0.6s, 3s;
}

.collab-icon-link[data-platform="email"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.collab-icon-link[data-platform="email"]:hover::before {
    width: 150%;
    height: 150%;
}

.collab-icon-link[data-platform="email"]:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.7);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.collab-icon-link[data-platform="email"]:hover .collab-icon-svg {
    filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.8)) brightness(1.2);
    transform: rotate(5deg) scale(1.1);
}

.collab-icon-svg {
    width: 32px;
    height: 32px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

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

@keyframes glow-blue {
    0%, 100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
    }
}

@keyframes glow-purple {
    0%, 100% {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
    }
}

@keyframes glow-pink {
    0%, 100% {
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.8);
    }
}

.info-card-collab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem !important;
}

.center-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
    transform: translateZ(0);
    will-change: transform, font-size;
}

.info-card-center:hover .center-title {
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: translateZ(10px);
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    contain: layout style paint;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--blue-1), var(--purple-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.info-card[data-color="blue"]::before {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

.info-card[data-color="purple"]::before {
    background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
}

.info-card[data-color="pink"]::before {
    background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
}

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

.info-card:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translate3d(0, -4px, 0);
}

.info-card[data-color="blue"]:hover {
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.info-card[data-color="purple"]:hover {
    box-shadow: 0 20px 40px var(--glow-purple), 0 0 0 1px var(--border-purple);
}

.info-card[data-color="pink"]:hover {
    box-shadow: 0 20px 40px var(--glow-pink), 0 0 0 1px var(--border-pink);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Collaboration Card - Emoji */

@keyframes float-emoji {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Technologies Card - Internet Emoji */
.internet-emoji {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6)) 
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    transition: filter 0.3s ease;
}

.internet-emoji:hover {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8)) 
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
}

/* Globe Card - Globe Emoji */
.globe-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.7)) 
            drop-shadow(0 0 25px rgba(99, 102, 241, 0.5));
    transition: filter 0.3s ease;
}

.globe-emoji:hover {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.9)) 
            drop-shadow(0 0 35px rgba(99, 102, 241, 0.7));
}

/* Scoop Card - Info Icon */
.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    animation: bounce-icon 2s ease-in-out infinite;
}

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

.connection-faces {
    display: none;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    perspective: 500px;
}

.info-card-collab:hover .connection-faces {
    display: flex;
    opacity: 1;
}

.connection-face {
    font-size: 2rem;
    opacity: 0;
    transform-style: preserve-3d;
    animation: pop-in-3d 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.connection-face:nth-child(1) { animation-delay: 0.1s; }
.connection-face:nth-child(2) { animation-delay: 0.2s; }
.connection-face:nth-child(3) { animation-delay: 0.3s; }
.connection-face:nth-child(4) { animation-delay: 0.4s; }

.connection-face:hover {
    animation: rotate-3d-face 0.5s ease infinite;
}

@keyframes float-3d {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg);
    }
    50% {
        transform: translate3d(0, -10px, 0) rotateX(5deg);
    }
}

@keyframes pop-in-3d {
    from {
        opacity: 0;
        transform: translate3d(0, 0, -50px) scale(0) rotateY(180deg) rotateX(180deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotateY(0deg) rotateX(0deg);
    }
}

@keyframes rotate-3d-face {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(90deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateX(-5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

/* Technologies Card - 4 Rows Scrolling 3D */
.tech-rows-scroll {
    margin: 1rem 0;
    height: 220px;
    overflow: hidden;
    position: relative;
    perspective: 800px;
    transform-style: preserve-3d;
    contain: layout style paint;
    width: 100%;
}

.tech-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    white-space: nowrap;
    transform-style: preserve-3d;
    will-change: transform;
    width: max-content;
}

.tech-row-1 {
    animation: scroll-left-right 25s linear infinite;
}

.tech-row-2 {
    animation: scroll-right-left 30s linear infinite;
}

.tech-row-3 {
    animation: scroll-left-right 35s linear infinite;
}

.tech-row-4 {
    animation: scroll-right-left 28s linear infinite;
}

.tech-word {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: fit-content;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.tech-word:hover {
    transform: translateZ(10px) rotateY(5deg);
}

@keyframes scroll-left-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes scroll-right-left {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Removed rotation animation for internet-emoji */

/* Removed 3D rotation for globe-emoji */

/* Scoop Scroll Container - 3D Boxes */
.scoop-boxes-container {
    overflow: hidden;
    margin-top: 0;
    position: relative;
    height: 140px;
    max-height: 140px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    perspective: 600px;
    transform-style: preserve-3d;
    contain: layout style paint;
    flex: 1;
    min-height: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.scoop-boxes-track {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    animation: scroll-scoop-boxes-3d 30s linear infinite;
    height: fit-content;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.scoop-box {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    flex-shrink: 0;
}

.scoop-box:hover {
    transform: translateZ(15px) rotateX(5deg);
}

@keyframes scroll-scoop-boxes-3d {
    0% {
        transform: translate3d(0, 0, 0) translateZ(0);
    }
    100% {
        transform: translate3d(0, -33.333%, 0) translateZ(0);
    }
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.gradient-text-small {
    background: linear-gradient(135deg, 
        #8b5cf6 0%, 
        #ec4899 50%, 
        #f97316 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 8s ease infinite;
}

.info-title.italic {
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
}

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

.info-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.info-link:hover {
    color: var(--blue-1);
    transform: translateX(4px);
}

/* Tech Tags Grid */
.tech-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag-small {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    font-weight: 400;
    transition: all 0.3s ease;
}

.tech-tag-small:hover {
    border-color: var(--border-purple);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Flags Container */
.flags-container {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.flag-item {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flag-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--border-blue);
    box-shadow: 0 0 0 1px var(--border-blue);
}

.flag-item:hover {
    border-color: var(--border-blue);
    background: rgba(255, 255, 255, 0.05);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.location-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.location-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Email Button */
.email-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.email-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-blue);
    transform: translateY(-2px);
}

.email-icon-small {
    font-size: 1.125rem;
}

.email-button-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-showcase {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-showcase {
    background: linear-gradient(135deg, var(--purple-1), var(--pink-1));
    color: var(--text-primary);
    border: none;
}

.btn-primary-showcase:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary-showcase {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-visible);
}

.btn-secondary-showcase:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Services Cards Row */
.services-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--blue-1), var(--purple-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.service-card:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Project Cards - Vivid borders and transitions */
/* Projects Section - Alternative Layout */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 1400px;
    margin: 4rem auto 0;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 400px;
}

.project-link {
    color: inherit;
    text-decoration: none;
}

.project-item.project-left,
.project-item.project-right {
    grid-template-columns: 1fr 1fr;
}

.project-item.project-right .project-content {
    order: 1;
}

.project-item.project-right .project-image-box {
    order: 2;
}

/* Project Image Box - Colored Border */
.project-image-box {
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: float-box 6s ease-in-out infinite;
}

.project-box-purple {
    border: 2px solid rgba(139, 92, 246, 0.8);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.3));
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), inset 0 0 60px rgba(139, 92, 246, 0.1);
    animation: pulse-purple 4s ease-in-out infinite;
}

.project-box-pink {
    border: 2px solid rgba(236, 72, 153, 0.8);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(219, 39, 119, 0.3));
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.4), inset 0 0 60px rgba(236, 72, 153, 0.1);
    animation: pulse-pink 4s ease-in-out infinite;
}

.project-box-blue {
    border: 2px solid rgba(59, 130, 246, 0.8);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.3));
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4), inset 0 0 60px rgba(59, 130, 246, 0.1);
    animation: pulse-blue 4s ease-in-out infinite;
}

.project-box-green {
    border: 2px solid rgba(34, 197, 94, 0.8);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.3));
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4), inset 0 0 60px rgba(34, 197, 94, 0.1);
    animation: pulse-green 4s ease-in-out infinite;
}

.project-image-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: none;
}

.project-box-purple:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(124, 58, 237, 0.4));
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5), inset 0 0 80px rgba(139, 92, 246, 0.15);
}

.project-box-pink:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(219, 39, 119, 0.4));
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.5), inset 0 0 80px rgba(236, 72, 153, 0.15);
}

.project-box-blue:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.4));
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.5), inset 0 0 80px rgba(59, 130, 246, 0.15);
}

.project-box-green:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.4));
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.5), inset 0 0 80px rgba(34, 197, 94, 0.15);
}

.project-box-cyan {
    border: 2px solid rgba(45, 212, 191, 0.95);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.4), rgba(14, 165, 233, 0.35));
    box-shadow: 0 0 50px rgba(45, 212, 191, 0.45), inset 0 0 60px rgba(14, 165, 233, 0.2);
    animation: pulse-blue 4s ease-in-out infinite;
}

.project-box-cyan:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.55), rgba(14, 165, 233, 0.5));
    box-shadow: 0 30px 80px rgba(14, 165, 233, 0.35), inset 0 0 80px rgba(45, 212, 191, 0.25);
}

.project-box-rose {
    border: 2px solid rgba(244, 114, 182, 0.95);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(249, 115, 22, 0.35));
    box-shadow: 0 0 50px rgba(236, 72, 153, 0.5), inset 0 0 70px rgba(249, 115, 22, 0.2);
    animation: pulse-pink 4s ease-in-out infinite;
}

.project-box-rose:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.6), rgba(249, 115, 22, 0.5));
    box-shadow: 0 30px 80px rgba(249, 115, 22, 0.4), inset 0 0 90px rgba(236, 72, 153, 0.25);
}
.project-box-orange {
    border: 2px solid rgba(249, 115, 22, 0.8);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.3));
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.4), inset 0 0 60px rgba(249, 115, 22, 0.1);
    animation: pulse-orange 4s ease-in-out infinite;
}

.project-box-orange:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(234, 88, 12, 0.4));
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.5), inset 0 0 80px rgba(249, 115, 22, 0.15);
}

.project-emoji {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: bounce-emoji 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.project-box-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
}

.project-box-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shine-box-text 12s ease-in-out infinite;
    pointer-events: none;
}

/* Project Content */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, 
        var(--text-primary) 0%, 
        var(--text-primary) 40%, 
        rgba(255, 255, 255, 0.8) 50%, 
        var(--text-primary) 60%, 
        var(--text-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-text 8s ease-in-out infinite;
}

.project-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.project-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shine-description 10s ease-in-out infinite;
    pointer-events: none;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-features li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--blue-1);
    font-weight: 600;
    font-size: 1.25rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    animation: nudge-badge 5s ease-in-out infinite;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-blue);
    transform: translateY(-4px) scale(1.05);
    animation: none;
}

/* Back Button */
.back-button-container {
    position: fixed;
    top: 7rem;
    left: 5rem;
    z-index: 1001;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.back-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.back-text {
    font-size: 1rem;
}

/* Work Section Animations */
@keyframes float-box {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes bounce-emoji {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.05);
    }
    50% {
        transform: translateY(0px) scale(1);
    }
    75% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.4), inset 0 0 60px rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6), inset 0 0 80px rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 1);
    }
}

@keyframes pulse-purple {
    0%, 100% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), inset 0 0 60px rgba(139, 92, 246, 0.1);
        border-color: rgba(139, 92, 246, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), inset 0 0 80px rgba(139, 92, 246, 0.15);
        border-color: rgba(139, 92, 246, 1);
    }
}

@keyframes pulse-pink {
    0%, 100% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.4), inset 0 0 60px rgba(236, 72, 153, 0.1);
        border-color: rgba(236, 72, 153, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(236, 72, 153, 0.6), inset 0 0 80px rgba(236, 72, 153, 0.15);
        border-color: rgba(236, 72, 153, 1);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.4), inset 0 0 60px rgba(34, 197, 94, 0.1);
        border-color: rgba(34, 197, 94, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(34, 197, 94, 0.6), inset 0 0 80px rgba(34, 197, 94, 0.15);
        border-color: rgba(34, 197, 94, 1);
    }
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.4), inset 0 0 60px rgba(249, 115, 22, 0.1);
        border-color: rgba(249, 115, 22, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(249, 115, 22, 0.6), inset 0 0 80px rgba(249, 115, 22, 0.15);
        border-color: rgba(249, 115, 22, 1);
    }
}

@keyframes nudge-badge {
    0%, 100% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(2px) translateY(-2px);
    }
    50% {
        transform: translateX(0px) translateY(-3px);
    }
    75% {
        transform: translateX(-2px) translateY(-2px);
    }
}

@keyframes shine-text {
    0% {
        background-position: -200% 0;
    }
    15% {
        background-position: -200% 0;
    }
    20% {
        background-position: 200% 0;
    }
    25% {
        background-position: 200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shine-description {
    0% {
        left: -100%;
    }
    10% {
        left: -100%;
    }
    15% {
        left: 100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shine-box-text {
    0% {
        left: -100%;
    }
    8% {
        left: -100%;
    }
    12% {
        left: 100%;
    }
    16% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Projects More Button */
.projects-more {
    text-align: center;
    margin-top: 4rem;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-see-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3), 
        rgba(138, 43, 226, 0.3), 
        rgba(236, 72, 153, 0.3));
    background-size: 200% 200%;
    transition: left 0.4s ease;
    z-index: 0;
    border-radius: 12px;
    animation: gradient-flow 8s ease infinite;
}

.btn-see-more:hover::before {
    left: 0;
}

.btn-see-more:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.btn-see-more span,
.btn-see-more {
    position: relative;
    z-index: 1;
}

.project-category {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

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

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

.tech-tag {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    font-weight: 400;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--border-blue);
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* About Card - Vivid border */
.about-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--blue-1), var(--purple-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.about-card:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-text:last-of-type {
    margin-bottom: 2rem;
}

.about-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.about-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.about-link:hover {
    color: var(--blue-1);
    border-bottom-color: var(--blue-1);
}

/* Experience Cards - Vivid borders */
.experience-list {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--purple-1), var(--pink-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.experience-card[data-color="blue"]::before {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

.experience-card[data-color="purple"]::before {
    background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
}

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

.experience-card:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.experience-card[data-color="blue"]:hover {
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.experience-card[data-color="purple"]:hover {
    box-shadow: 0 20px 40px var(--glow-purple), 0 0 0 1px var(--border-purple);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.exp-company-info {
    flex: 1;
}

.exp-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.exp-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.exp-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.exp-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.tech-badge {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    font-weight: 400;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--border-purple);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Education Cards - Vivid borders */
.education-list {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--pink-1), var(--purple-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.education-card[data-color="blue"]::before {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

.education-card[data-color="pink"]::before {
    background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
}

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

.education-card:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.education-card[data-color="blue"]:hover {
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.education-card[data-color="pink"]:hover {
    box-shadow: 0 20px 40px var(--glow-pink), 0 0 0 1px var(--border-pink);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.edu-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.edu-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.edu-institution {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.edu-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Section - Vivid borders */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-group {
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skills-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--purple-1), var(--blue-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skills-group[data-color="blue"]::before {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

.skills-group[data-color="purple"]::before {
    background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
}

.skills-group[data-color="pink"]::before {
    background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
}

.skills-group:hover::before {
    opacity: 1;
}

.skills-group:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.skills-group[data-color="blue"]:hover {
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.skills-group[data-color="purple"]:hover {
    box-shadow: 0 20px 40px var(--glow-purple), 0 0 0 1px var(--border-purple);
}

.skills-group[data-color="pink"]:hover {
    box-shadow: 0 20px 40px var(--glow-pink), 0 0 0 1px var(--border-pink);
}

.skills-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: transparent;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    font-weight: 400;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--border-purple);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Contact Section - Vivid border */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--blue-1), var(--purple-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.contact-card:hover {
    background: var(--card-bg-hover);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--glow-blue), 0 0 0 1px var(--border-blue);
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-links {
    display: grid;
    gap: 1rem;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-blue);
    transform: translateX(4px);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 20px;
    background: transparent;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-default);
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-header,
    .exp-header,
    .edu-header {
        flex-direction: column;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 20px;
    }
    
    /* Mobile Optimizations - Reduce 3D effects for performance */
    .info-grid-5 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        max-width: 100%;
        contain: layout style;
    }
    
    .info-card-collab {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
        grid-column: 1;
    }
    
    .info-card-tech {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
        grid-column: 1;
    }
    
    .info-card-combined {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
        grid-column: 1;
        flex-direction: column;
    }
    
    .info-card-scoop {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
        grid-column: 1;
    }
    
    .info-card-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin: 2rem 0;
    }
    
    .info-card-center:hover {
        transform: scale(1.02);
    }
    
    /* Reduce 3D effects on mobile */
    .info-card,
    .info-card-collab,
    .info-card-tech,
    .info-card-globe,
    .info-card-scoop {
        transform-style: flat;
        backface-visibility: visible;
        will-change: auto;
    }
    
    .info-card-collab:hover,
    .info-card-tech:hover,
    .info-card-globe:hover,
    .info-card-scoop:hover {
        transform: translate3d(0, -2px, 0);
    }
    
    .collab-emoji {
        animation-duration: 12s;
    }
    
    .tech-rows-scroll {
        height: 180px;
    }
    
    .connection-face {
        will-change: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    .project-item {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        min-height: auto;
    }
    
    .project-item.project-right .project-content {
        order: 0;
    }
    
    .project-item.project-right .project-image-box {
        order: 0;
    }
    
    .project-image-box {
        min-height: 300px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .experience-card,
    .education-card,
    .about-card,
    .contact-card {
        padding: 1.5rem;
    }
}

/* Project Detail Page -------------------------------------------------- */
.project-detail {
    padding-top: 140px;
}

.project-hero {
    padding: 180px 20px 120px;
    text-align: center;
}

.project-hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.project-hero-lede {
    font-size: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-meta-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    background: rgba(12, 16, 40, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-meta-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.project-meta-value {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.project-state-cta {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
}

.state-switcher {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    padding: 0.35rem;
}

.state-chip {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.state-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.7), rgba(236, 72, 153, 0.7));
    color: #fff;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.device-lab {
    padding: 40px 20px 80px; /* Reduced bottom padding for less space */
    overflow: visible !important; /* Never clip content */
    position: relative;
    /* Don't restrict phone movement */
    contain: none !important;
    isolation: auto !important;
    margin-bottom: 20px; /* Minimal margin for space between sections */
}

.lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: start;
    overflow: visible !important; /* Never clip content */
    /* Don't restrict phone movement */
    contain: none !important;
    isolation: auto !important;
}


.lab-device-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    overflow: visible;
    contain: layout style paint;
    isolation: isolate;
    z-index: 10;
    border: none;
    border-radius: 32px;
    background: transparent;
    padding: 0;
}

.lab-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.lab-visual {
    position: relative;
    overflow: visible !important; /* Never clip content */
    contain: none !important; /* Don't contain - allow free movement */
    isolation: auto !important; /* No isolation - allow free positioning */
    background: transparent;
    border-radius: 32px;
    perspective: 1500px;
    transform-style: preserve-3d;
    -webkit-perspective: 1500px;
    /* Ensure 3D context for perfect sync */
    -webkit-transform-style: preserve-3d;
    /* Allow phone to move freely - no height restriction */
    min-height: auto;
}



/* Phone Mockup 2D - Simple and effective */
.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw; /* Allow full width for free movement */
    margin: 0;
    perspective: 1000px; /* Optional 3D effect */
    animation: phoneFloat 4s ease-in-out infinite;
    /* Don't restrict frame movement */
    overflow: visible;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}

/* Multiple phone frames - stacked or positioned */
.phone-frame-group {
    position: relative; /* Relative positioning - no manual movement */
    overflow: visible; /* Allow rotated app to extend beyond bounds */
    cursor: default; /* Default cursor - no dragging */
    user-select: auto; /* Allow text selection */
    /* Frame group positioned normally in document flow */
    transform-origin: center center;
    /* No automatic positioning - will be set manually via CSS */
}

/* Position frame 2 and 3 initially - can be adjusted */
.phone-frame-group[data-frame-id="2"] {
    margin-top: 2rem; /* Space between frames */
}

.phone-frame-group[data-frame-id="3"] {
    margin-top: 2rem; /* Space between frames */
}

.phone-frame {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 30; /* Frame always on top of app - higher z-index */
    transform: none; /* No tilt - straight frame */
    transform-origin: center;
    transition: transform 0.3s ease;
    pointer-events: none !important; /* Allow clicks to pass through to iframe - CRITICAL */
}

/* Hover effect disabled - frames don't scale on hover */
/* .phone-mockup-wrapper:hover .phone-frame {
    transform: scale(1.02);
} */

.phone-screen {
    position: absolute;
    /* DIMENSIONS - WILL BE UPDATED AUTOMATICALLY BY EDITOR */
    top: 15%;
    left: 11%;
    width: 78%;
    height: 70%;
    border: none !important;
    border-radius: 30px;
    overflow: visible !important; /* Changed to visible to see iframe content */
    background: transparent !important; /* Transparent background to see iframe */
    z-index: 20 !important; /* Higher than frame to ensure visibility - frame has pointer-events: none */
    transform-origin: center center;
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    pointer-events: auto !important; /* CRITICAL - Allow interaction with iframe */
    zoom: 100%;
    /* Ensure visibility - CRITICAL */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, Opera */
.phone-screen::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Zoom out the iframe content to reduce scrolling */
.phone-screen iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    /* CSS zoom for real content zoom (not image scale) - will be applied dynamically via JavaScript editor */
    zoom: 100% !important;
    transform-origin: center center !important;
    transform-style: preserve-3d !important;
    pointer-events: auto !important;
    overflow: visible !important; /* Changed to visible */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 20 !important;
    background: transparent !important;
    position: relative !important;
}

/* Hover effect removed - zoom is controlled dynamically by editor */
/* .phone-mockup-wrapper:hover .phone-screen {
    transform: scale(1.02);
} */

.lab-note {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.project-mavis-page .lab-note,
body.project-mavis-page .lab-visual .lab-note,
body.project-mavis-page .device-lab .lab-note,
body.project-mavis-page .lab-visual p.lab-note {
    color: #ffffff !important;
}

.lab-data {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 40px 80px 120px 0;
    overflow: visible;
    margin-top: -10px;
    position: relative;
}

/* Live Description Panel - Right Side */
.live-description-panel {
    padding: 0;
    margin-top: 0;
    position: relative;
    z-index: 100 !important;
}

.live-description-panel .app-card-active {
    width: 100%;
    max-width: 100%;
    animation: none; /* Remove float animation for live panel */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative;
    z-index: 101 !important;
    overflow: visible !important;
}

.live-description-panel .app-card-content {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    padding: 2rem !important;
    height: auto !important;
    min-height: auto !important;
    position: relative;
    z-index: 102 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
}

.live-description-panel #home-quick-cards {
    position: relative;
    z-index: 103 !important;
}

.live-description-panel .quick-card {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.live-description-panel .app-card-content p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.live-description-panel .app-card-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.lab-card {
    padding: 1.75rem;
    border-radius: 24px;
    background: rgba(12, 16, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(8, 10, 30, 0.6);
}

.lab-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.lab-card p,
.lab-card li {
    color: var(--text-secondary);
    line-height: 1.6;
}

.lab-card ul {
    padding-left: 1.2rem;
    margin: 0;
}

/* New App Cards with Toggle and Gradient Colors */
.app-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Animăm opacitatea și poziția pentru efectele de fade / cascada */
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, position 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 0.4rem;
}

/* When a card is active, move it to top and hide others */
.lab-data:has(.app-card.active) .app-card:not(.active) {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: scale(0.8);
}

.app-card.active {
    position: relative;
    z-index: 100;
    order: -1;
}

/* Removed complex animations - cards now stay in place and only description toggles */

.app-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Background removed - each card type sets its own */
    transition: all 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.app-card-header:hover {
    /* Hover effect removed - each card type handles its own */
}

.app-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.app-card-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    transition: transform 0.3s ease;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.app-card.active .app-card-toggle {
    transform: rotate(45deg);
}

.app-card-content {
    max-height: 0 !important;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease, transform 0.4s ease !important;
    padding: 0 1.25rem !important;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    display: block !important;
    visibility: visible !important;
}

.app-card.active .app-card-content {
    max-height: 2000px !important;
    padding: 0 1.25rem 1.25rem 1.25rem !important;
    opacity: 1 !important;
    transform: scaleY(1) !important;
    /* Animate on open: fade in with scale animation */
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease, transform 0.4s ease !important;
    display: block !important;
    visibility: visible !important;
}

/* When closing: scale down from top with animation */
.app-card:not(.active) .app-card-content {
    transform: scaleY(0) !important;
    transform-origin: top;
    transition: transform 0.25s ease, max-height 0.25s ease, padding 0.25s ease, opacity 0.15s ease !important;
}

.app-card-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.75rem;
    font-size: 0.9rem;
}

.app-card-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Emergency Features - Animated presentation */
.emergency-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: featureSlideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 1.3rem;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature-item:nth-child(4) .feature-icon { animation-delay: 0.6s; }
.feature-item:nth-child(5) .feature-icon { animation-delay: 0.8s; }

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

@keyframes featureSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Home & Battery Card - Blue Gradient (opaque, darkened from transparent blend with blue background) */
.app-card-home {
    background: linear-gradient(135deg, rgb(30, 55, 120), rgb(25, 48, 110));
}

.app-card-home .app-card-header {
    background: transparent;
}

.app-card-home.active .app-card-header {
    background: transparent;
}

.app-card-home.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-home .app-card-content {
    background: transparent;
}

/* Battery Card - Separate from Home (Slightly Different Blue Gradient) */
.app-card-battery {
    background: linear-gradient(135deg, rgb(40, 65, 135), rgb(30, 55, 125));
}

.app-card-battery .app-card-header {
    background: transparent;
}

.app-card-battery.active .app-card-header {
    background: transparent;
}

.app-card-battery.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-battery .app-card-content {
    background: transparent;
}

/* Heart Parameters Card - Purple/Magenta Gradient (opaque, darkened from transparent blend) */
.app-card-heart {
    background: linear-gradient(135deg, rgb(65, 35, 110), rgb(75, 25, 100));
}

.app-card-heart .app-card-header {
    background: transparent;
}

.app-card-heart.active .app-card-header {
    background: transparent;
}

.app-card-heart.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-heart .app-card-content {
    background: transparent;
}

/* Emergency Card - Red Gradient with Pulsing (opaque, darkened from transparent blend) */
.app-card-emergency {
    background: linear-gradient(135deg, rgb(120, 35, 45), rgb(110, 25, 35));
}

.app-card-emergency .app-card-header {
    background: transparent;
    /* No glow animation on header */
}

.app-card-emergency.active .app-card-header {
    background: transparent;
    /* No glow animation on header */
}

/* Pulse animation only on text (h3), not on X or card */
.app-card-emergency .app-card-header h3 {
    animation: pulse-emergency-text 2s ease-in-out infinite;
}

.app-card-emergency .app-card-toggle {
    /* X does not pulse */
    animation: none !important;
}

.app-card-emergency.active {
    /* Fixed shadow, no pulsing glow */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-emergency .app-card-content {
    background: transparent;
}

@keyframes pulse-emergency-text {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

/* Notifications Card - Orange/Amber Gradient (opaque, darkened blend) */
.app-card-notifications {
    background: linear-gradient(135deg, rgb(150, 70, 35), rgb(130, 60, 28));
}

.app-card-notifications .app-card-header {
    background: transparent;
}

.app-card-notifications.active .app-card-header {
    background: transparent;
}

.app-card-notifications.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-notifications .app-card-content {
    background: transparent;
}

/* Monitor Card - Yellow/Gold Gradient (opaque, darkened from transparent blend) */
.app-card-monitor {
    background: linear-gradient(135deg, rgb(145, 105, 30), rgb(135, 95, 20));
}

.app-card-monitor .app-card-header {
    background: transparent;
}

.app-card-monitor.active .app-card-header {
    background: transparent;
}

.app-card-monitor.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-monitor .app-card-content {
    background: transparent;
}

/* Settings Card - Intense Dark Green Gradient (opaque, darkened from transparent blend) */
.app-card-settings {
    background: linear-gradient(135deg, rgb(25, 90, 70), rgb(20, 70, 50));
}

.app-card-settings .app-card-header {
    background: transparent;
}

.app-card-settings.active .app-card-header {
    background: transparent;
}

.app-card-settings.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-settings .app-card-content {
    background: transparent;
}

.app-card-settings .app-card-content p {
    margin-bottom: 1rem;
}

.app-card-settings .app-card-content p:last-child {
    margin-bottom: 0;
}

/* Profile Card - Turquoise/Teal Gradient (different from Settings green and Monitor yellow) */
.app-card-profile {
    background: linear-gradient(135deg, rgb(25, 105, 115), rgb(15, 95, 105));
}

.app-card-profile .app-card-header {
    background: transparent;
}

.app-card-profile.active .app-card-header {
    background: transparent;
}

.app-card-profile.active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-profile .app-card-content {
    background: transparent;
}

.app-card-profile .app-card-content p {
    margin-bottom: 1rem;
}

.app-card-profile .app-card-content p:last-child {
    margin-bottom: 0;
}

/* Pulsing background effect for Emergency */
body.project-mavis-page.pulsing-red {
    animation: pulse-background-red 2s ease-in-out infinite;
}

@keyframes pulse-background-red {
    0%, 100% {
        background-color: rgb(115, 30, 40);
    }
    50% {
        background-color: rgb(135, 50, 60);
    }
}

body.project-mavis-page.pulsing-orange {
    animation: pulse-background-orange 3s ease-in-out infinite;
}

@keyframes pulse-background-orange {
    0%, 100% {
        background-color: rgb(140, 65, 32);
    }
    50% {
        background-color: rgb(150, 75, 40);
    }
}

.state-panel {
    padding: 120px 20px;
    transition: background 0.6s ease;
}

.state-panel-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.state-panel h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.state-panel p {
    color: #fff;
}

.state-insights {
    min-width: 280px;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
}

.state-insights-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
}

.state-home {
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.45), rgba(15, 23, 42, 0.9));
}

.state-monitor {
    background: radial-gradient(circle at top, rgba(248, 113, 113, 0.5), rgba(15, 23, 42, 0.95));
}

.state-settings {
    background: radial-gradient(circle at top, rgba(34, 197, 94, 0.45), rgba(15, 23, 42, 0.95));
}

.system-blueprint {
    padding: 120px 20px 160px;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.blueprint-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 16, 40, 0.85);
    padding: 1.75rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.blueprint-card h3 {
    margin-bottom: 0.75rem;
}

.blueprint-card p {
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }
}

/* Phone Screen Editor */
.phone-screen-editor {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 320px;
    background: rgba(37, 55, 110, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
    cursor: move;
    user-select: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.phone-screen-editor:active {
    cursor: grabbing;
}

.phone-screen-editor:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.phone-screen-editor.collapsed .editor-content {
    display: none;
}

.phone-screen-editor.collapsed .toggle-editor {
    transform: rotate(180deg);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.editor-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.toggle-editor {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toggle-editor:hover {
    transform: scale(1.1);
}

.editor-content {
    padding: 20px;
    display: block;
}

.editor-control {
    margin-bottom: 20px;
}

.editor-control:last-of-type {
    margin-bottom: 24px;
}

.editor-control label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.editor-control label > span:first-child {
    min-width: 90px;
    font-weight: 600;
}

.editor-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.editor-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.editor-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.editor-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.editor-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.value-display {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #ffffff;
    font-family: monospace;
    font-size: 12px;
}

.editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.editor-actions button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-save {
    background: rgba(76, 175, 80, 0.7);
    color: #ffffff;
}

.btn-save:hover {
    background: rgba(76, 175, 80, 0.9);
}

.editor-actions button:active {
    transform: scale(0.95);
}

.css-output {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: monospace;
    font-size: 11px;
    color: #ffffff;
    white-space: pre-wrap;
    word-break: break-all;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.css-output::-webkit-scrollbar {
    width: 6px;
}

.css-output::-webkit-scrollbar-track {
    background: transparent;
}

.css-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.css-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.css-output.show {
    display: block;
}

.css-output code {
    color: #4fc3f7;
    font-size: 11px;
}

@media (max-width: 768px) {
    .project-hero {
        padding-top: 140px;
    }

    .phone-mockup-wrapper {
        max-width: 1400px; /* Much larger frame on mobile too */
    }
    
    .phone-screen-editor {
        right: 10px;
        width: 280px;
        top: 80px;
    }

    .state-panel-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Password Overlay Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.password-modal h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.password-modal input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.password-modal input:focus {
    outline: none;
    border-color: var(--border-blue);
    box-shadow: 0 0 0 3px var(--glow-blue);
    background: rgba(255, 255, 255, 0.08);
}

.password-modal button {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.password-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    min-height: 1.25rem;
}