:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --neon-teal: #00E5FF;
    --neon-purple: #B030FF;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Layout */
    --bento-gap: 1.5rem;
    --bento-radius: 24px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-teal);
}

/* Background Elements */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Native blended gradient mesh for perfect smoothness and zero boundary clipping */
    background: 
        radial-gradient(circle at 10% 15%, rgba(0, 229, 255, 0.13) 0%, transparent 60%),
        radial-gradient(circle at 90% 85%, rgba(176, 48, 255, 0.13) 0%, transparent 60%),
        var(--bg-dark);
}

/* Hide absolute glow elements to prevent browser rendering line artifacts */
.glow {
    display: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Bento Box & Glassmorphism */
.bento-box {
    border-radius: var(--bento-radius);
    overflow: hidden;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.p-lg { padding: 2.5rem; }
.p-xl { padding: 3.5rem; }

/* Interactions */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--glass-hover);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

.btn.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--neon-teal);
    color: var(--neon-teal);
}

.glow-hover:hover {
    background: transparent;
    color: var(--neon-teal);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.2);
    border: 1px solid var(--neon-teal);
}

/* ── Ultra-Glass VisionOS Light Gradient Portfolio Button ── */
.btn-portfolio-hero {
	position: relative;
	background-color: rgba(255, 255, 255, 0.85);
	background-image: linear-gradient(135deg, rgba(255, 46, 147, 0.15), rgba(255, 137, 51, 0.15), rgba(0, 195, 255, 0.15), rgba(138, 43, 226, 0.15));
	background-size: 300% 300%;
	animation: gradientMove 4s ease infinite;
	color: #0b0c10 !important;
	border-radius: 9999px;
	border: 1.5px solid rgba(255, 255, 255, 0.95);
	padding: 0.8rem 2rem 0.8rem 2.8rem;
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: 0.3px;
	text-shadow: none;
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55),
	            0 4px 12px rgba(0, 0, 0, 0.25),
	            inset 0 3px 6px rgba(255, 255, 255, 1),
	            inset 0 -5px 10px rgba(0, 0, 0, 0.2),
	            0 0 25px rgba(255, 255, 255, 0.2);
	transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.38s ease, background-color 0.38s ease;
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
}

/* Glass Sheen Top Reflection Arc */
.btn-portfolio-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 48%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.15) 100%);
	border-radius: 9999px 9999px 0 0;
	pointer-events: none;
	z-index: 1;
}

/* Top-to-Bottom Light Sheen Sweep Animation (Triggers every 5s) */
.btn-portfolio-hero::after {
	content: '';
	position: absolute;
	top: -150%;
	left: -20%;
	width: 140%;
	height: 120%;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(255, 255, 255, 0.95) 50%,
		transparent 100%
	);
	animation: topToBottomSweep 5s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

@keyframes topToBottomSweep {
	0%, 65% {
		top: -150%;
	}
	100% {
		top: 150%;
	}
}

/* Animated Glass Border Stroke Effect */
.btn-border-stroke {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	padding: 1.5px; /* Border stroke width */
	background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.9), rgba(255,255,255,0.1), rgba(255,255,255,0.9), rgba(255,255,255,0.1));
	background-size: 200% 100%;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.38s ease;
}

.btn-portfolio-hero:hover .btn-border-stroke {
	opacity: 1;
	animation: strokeGlassMove 1.8s linear infinite;
}

@keyframes strokeGlassMove {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Larger Custom Portfolio Icon */
.btn-custom-icon {
	width: 38px;
	height: 38px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
	transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.btn-portfolio-hero span {
	position: relative;
	z-index: 2;
}

/* Hover Interaction */
.btn-portfolio-hero:hover {
	transform: scale(1.07) translateY(-3px);
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65),
	            0 6px 16px rgba(0, 0, 0, 0.3),
	            inset 0 4px 8px rgba(255, 255, 255, 1),
	            inset 0 -6px 12px rgba(0, 0, 0, 0.22),
	            0 0 35px rgba(255, 255, 255, 0.35);
	color: #0b0c10 !important;
	text-decoration: none;
}

.btn-portfolio-hero:hover .btn-custom-icon {
	transform: scale(1.22) rotate(12deg) translateY(-1px);
}

.btn-portfolio-hero:active {
	transform: scale(0.98) translateY(0);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45),
	            inset 0 2px 4px rgba(255, 255, 255, 0.8),
	            inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}

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

/* Floating Portfolio Button */
.floating-portfolio-btn {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.85);
	background-image: linear-gradient(135deg, rgba(255, 46, 147, 0.15), rgba(255, 137, 51, 0.15), rgba(0, 195, 255, 0.15), rgba(138, 43, 226, 0.15));
	background-size: 300% 300%;
	animation: gradientMove 4s ease infinite;
	border: 1.5px solid rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55),
	            0 4px 12px rgba(0, 0, 0, 0.25),
	            inset 0 3px 6px rgba(255, 255, 255, 1),
	            inset 0 -5px 10px rgba(0, 0, 0, 0.2),
	            0 0 25px rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transform: translateY(40px) scale(0.8);
	transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	overflow: hidden;
}

.floating-portfolio-btn.visible {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0) scale(1);
}

.floating-portfolio-btn::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; height: 50%;
	background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.1));
	border-radius: 50% 50% 0 0;
	pointer-events: none;
}

.floating-portfolio-btn:hover {
	transform: scale(1.15) translateY(-5px);
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65),
	            0 6px 16px rgba(0, 0, 0, 0.3),
	            inset 0 4px 8px rgba(255, 255, 255, 1),
	            inset 0 -6px 12px rgba(0, 0, 0, 0.22),
	            0 0 35px rgba(255, 255, 255, 0.35);
}

.floating-portfolio-btn .btn-custom-icon {
	width: 32px;
	height: 32px;
}

.floating-portfolio-btn:hover .btn-custom-icon {
	transform: scale(1.22) rotate(12deg) translateY(-1px);
}

/* ==========================================
   Entrance Animations (Initial Page Load)
   ========================================== */

@keyframes fadeInUpLoad {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDownLoad {
    0% { opacity: 0; transform: translateY(-20px) translateX(-50%); } /* Includes navbar translate -50% */
    100% { opacity: 1; transform: translateY(0) translateX(-50%); }
}

@keyframes scaleInPopLoad {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInSlowLoad {
    0% { opacity: 0; }
    100% { opacity: 0.025; }
}

/* Applying staggered entrance animations */
.navbar {
    animation: fadeInDownLoad 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-title {
    animation: fadeInUpLoad 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.hero-subtitle {
    animation: fadeInUpLoad 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.hero .btn-portfolio-hero {
    animation: scaleInPopLoad 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s backwards;
}

.hero-bg-text {
    animation: fadeInSlowLoad 2s ease-in-out 0.8s backwards;
}

.hero-icon-container {
    animation: scaleInPopLoad 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s backwards;
}

.hero-left-icon-container {
    animation: scaleInPopLoad 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s backwards;
}

.hero-top-left-icon-container {
    animation: scaleInPopLoad 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s backwards;
}

.hero-trust-badge {
    animation: scaleInPopLoad 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.1s backwards;
}

/* Layout */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--neon-teal);
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

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

.bento-grid {
    display: grid;
    gap: var(--bento-gap);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: var(--container-width);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.85rem 2rem;
    z-index: 100;
}

.logo {
    justify-self: start;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links {
    justify-self: center;
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-icon-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.35);
    color: #00E5FF;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem; /* Account for navbar */
    position: relative;
    z-index: 1;
}

/* Custom Deep Teal Background for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: radial-gradient(circle at 50% 50%, #175d7c 0%, #112739 40%, #0b0c10 100%);
    z-index: -1;
    /* Smooth fade into the rest of the site */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    pointer-events: none;
}

/* Giant Background Watermark Text */
.hero-bg-text {
    position: absolute;
    top: 58%; /* Vertically aligns closer to the button area */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16vw; /* Huge responsive text */
    font-weight: 900; /* Extra bold */
    color: #ffffff;
    opacity: 0.025; /* Extremely faint, subtle watermark */
    letter-spacing: 0.02em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0; /* Behind content but in front of gradient background */
    text-transform: uppercase;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    cursor: pointer;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.mouse:hover {
    opacity: 1;
    border-color: var(--neon-teal);
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    animation: scroll-wheel 1.6s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
    transition: background-color 0.3s ease;
}

.mouse:hover .wheel {
    background-color: var(--neon-teal);
}

@keyframes scroll-wheel {
    0% {
        opacity: 0;
        transform: translateY(-2px);
    }
    15% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translateY(6px);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ==========================================
   Partial Arc Orbital Node System
   ========================================== */
.arc-system {
	position: absolute;
	top: 50%;
	left: -3px;
	transform: translateY(-50%);
	width: 1000px;
	height: 1000px;
	z-index: 5;
	pointer-events: none;
}

.arc-paths {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}

.arc-line {
    fill: none;
    stroke-linecap: round;
    stroke-width: 2px;
}

#outer-arc-path {
    stroke: rgba(255, 255, 255, 0.05); /* Extremely low opacity */
    /* Removed stroke-dasharray */
}

#inner-arc-path {
    stroke: rgba(255, 255, 255, 0.05);
    /* Removed stroke-dasharray and heavy shadow */
}

.arc-node {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: auto;
    z-index: 10;
    offset-rotate: 0deg; /* Keep node and popup upright */
}

/* Continuous movement animations with staggered delays */
.node-outer-top {
    offset-path: path('M 500 50 A 450 450 0 0 0 500 950');
    animation: move-continuous 18s linear infinite;
    animation-delay: 0s;
}

.node-outer-bottom {
    offset-path: path('M 500 50 A 450 450 0 0 0 500 950');
    animation: move-continuous 18s linear infinite;
    animation-delay: -12s; /* 12 seconds ahead */
}

.node-inner-top {
    offset-path: path('M 500 200 A 300 300 0 0 0 500 800');
    animation: move-continuous 18s linear infinite;
    animation-delay: -3s; /* Display Ad (Top) */
}

.node-inner-bottom {
    offset-path: path('M 500 200 A 300 300 0 0 0 500 800');
    animation: move-continuous 18s linear infinite;
    animation-delay: -9s; /* Packaging Design (Bottom) */
}

/* Hollow Node Cores */
.node-core {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Centers perfectly on the 0x0 arc-node */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.outer-core {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6), inset 0 0 10px rgba(0, 229, 255, 0.4);
}

.inner-core {
    box-shadow: 0 0 10px rgba(176, 48, 255, 0.6), inset 0 0 10px rgba(176, 48, 255, 0.4);
}

/* Glassmorphism Popup - Left Aligned & Horizontal Layout */
.node-popup {
    position: absolute;
    top: 50%;
    right: 100%; /* Position entirely on the left side of the node */
    left: auto;
    margin-right: 25px; /* Spacing between popup and node */
    transform: translateY(-50%) translateX(20px) scale(0.8);
    transform-origin: right center; /* Scale out from the right edge */
    width: 260px; /* Slightly wider for horizontal layout */
    min-width: 260px; /* Prevent squishing */
    padding: 12px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: none; /* Let hover rely on the node */
}

/* Tooltip Connection Caret */
.node-popup::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%; /* Stick to the right edge */
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 229, 255, 0.3); /* Triangle pointing right */
}

.node-inner-top .node-popup,
.node-inner-bottom .node-popup {
    border-color: rgba(176, 48, 255, 0.3);
}

.node-inner-top .node-popup::after,
.node-inner-bottom .node-popup::after {
    border-color: transparent transparent transparent rgba(176, 48, 255, 0.3);
}

/* Small square thumbnail */
.node-popup img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    flex-shrink: 0; /* Prevent squishing */
}

.node-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Hover manual trigger */
.arc-node:hover .node-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
    pointer-events: auto;
}

.arc-node:hover .node-core {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 255, 255, 0.2);
}

/* Animations for Continuous Path Movement */
@keyframes move-continuous {
    0% { 
        offset-distance: 0%; 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        offset-distance: 100%; 
        opacity: 0; 
    }
}

/* Automatic Popup Animation synchronized with the continuous movement */
/* The popup fades in smoothly as it travels along the middle of the arc */
.node-outer-top .node-popup,
.node-outer-bottom .node-popup,
.node-inner-top .node-popup,
.node-inner-bottom .node-popup {
    animation: popup-auto-continuous 18s linear infinite;
}

/* Ensure the popup animation respects the same delays as the movement */
.node-outer-top .node-popup { animation-delay: 0s; }
.node-inner-top .node-popup { animation-delay: -3s; }
.node-outer-bottom .node-popup { animation-delay: -12s; }
.node-inner-bottom .node-popup { animation-delay: -9s; }

@keyframes popup-auto-continuous {
    0%, 15% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) translateX(20px) scale(0.8);
    }
    25%, 75% {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0) scale(1);
    }
    85%, 100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) translateX(20px) scale(0.8);
    }
}

/* Floating Trust & Stats Badge */
.hero-trust-badge {
	position: absolute;
	bottom: 11%;
	right: -292px;
	z-index: 12;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	padding: 2.2rem 2.8rem !important;
	background: rgba(255, 255, 255, 0.04) !important;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: trustBadgeFloat 4s ease-in-out infinite;
	text-align: left;
	max-width: 488px;
}

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

.trust-stars-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.quality-shield {
    filter: drop-shadow(0 0 5px var(--neon-teal));
}

.rating-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.experience-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.experience-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-height: 3rem; /* Prevents container from jumping */
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform: translateX(0);
    opacity: 1;
}

.experience-title.slide-out-right {
    transform: translateX(30px);
    opacity: 0;
}

.experience-title.slide-in-left {
    transform: translateX(-30px);
    opacity: 0;
    transition: none; /* Instantly snap to the left before sliding in */
}

.trust-avatars-row.tool-icons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0;
}

.tool-icons .tool-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, z-index 0.3s;
    position: relative;
}

.tool-icons .tool-icon-wrapper:first-child {
    margin-left: 0;
}

.tool-icons:hover .tool-icon-wrapper {
    transform: translateX(4px);
}

.tool-icons .tool-icon-wrapper:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 5;
}

.tool-icon-wrapper.ai {
    background: linear-gradient(135deg, rgba(255, 124, 0, 0.2), rgba(255, 124, 0, 0.05));
    border-color: rgba(255, 124, 0, 0.5);
}

.tool-icon-wrapper.id {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(255, 51, 102, 0.05));
    border-color: rgba(255, 51, 102, 0.5);
}

.tool-icon-wrapper.ps {
    background: linear-gradient(135deg, rgba(49, 168, 255, 0.2), rgba(49, 168, 255, 0.05));
    border-color: rgba(49, 168, 255, 0.5);
}

.tool-text {
    font-size: 0.85rem;
    font-weight: 700;
}

.tool-icon-wrapper.ai .tool-text { color: #FF7C00; }
.tool-icon-wrapper.id .tool-text { color: #FF3366; }
.tool-icon-wrapper.ps .tool-text { color: #31A8FF; }

.trust-brands-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.trust-brands-text strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .orbital-system,
    .hero-trust-badge {
        display: none;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-title .hero-script-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15em;
    font-weight: 700;
    color: #ffffff;
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentcolor;
    letter-spacing: 0;
    margin-right: 0.1em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--neon-teal), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero-title span.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bento-gap);
}

/* Global Grid Span Classes (for other bento grids) */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.relative-card {
    position: relative;
}

.floating-gif {
	position: absolute;
	top: 0px;
	right: 3px;
	width: 132px;
	height: auto;
	z-index: 10;
	animation: floating-element 4s ease-in-out infinite;
	pointer-events: none;
}

.floating-gif-lg {
    width: 180px;
    top: 10px; /* Adjusted top to account for larger size if needed */
}

.floating-gif-xl {
	width: 210px;
	top: -9px;
	right: 10px;
}

.content-push-down {
    margin-top: 60px; /* Pushes the text content down to make room for large GIFs */
}

.highlight-dark-gif {
    /* Add a white/yellow glow around transparent elements to make dark text visible on dark background */
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

@keyframes floating-element {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
.icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Experience Card specific styling to give it a distinct vibe */
.experience-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(176, 48, 255, 0.05) 100%);
    border: 1px solid rgba(176, 48, 255, 0.2);
    box-shadow: inset 0 0 15px rgba(176, 48, 255, 0.1);
    transition: all 0.4s ease;
    padding: 3rem 1.5rem 1.5rem 1.5rem !important;
    overflow: visible !important;
}

.experience-card:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(176, 48, 255, 0.12) 100%);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.1);
}

.idea-gif {
    top: -25px;
    right: -15px;
    width: 130px;
    z-index: 15;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.stat-divider {
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 0.5rem 0;
}

.exp-number {
    font-size: 2.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--neon-teal), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    min-width: 80px; /* Ensures the numbers align vertically even with different widths */
    text-align: right;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-align: left;
}

/* Our Work Section Container (Pseudo-element Breakout) */
#work.section {
    position: relative;
    padding: 7rem 0;
    z-index: 1;
}

#work.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    transition: background 0.8s ease-in-out, box-shadow 0.8s ease-in-out, border-color 0.8s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    background: transparent;
    pointer-events: none;
}

#work.section:hover::before {
    background: radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.14) 0%, transparent 50%),
                radial-gradient(circle at 85% 80%, rgba(176, 48, 255, 0.14) 0%, transparent 50%),
                #060606;
    border-top-color: rgba(0, 229, 255, 0.15);
    border-bottom-color: rgba(176, 48, 255, 0.15);
    box-shadow: inset 0 0 80px rgba(0, 229, 255, 0.03), inset 0 0 80px rgba(176, 48, 255, 0.03);
}

.work-section-container {
    width: 100%;
}

/* Work Grid (Youtube-style uniform cards layout) */
/* ─── Process Section (Single-SVG approach) ─────────────────────────── */
.process-svg-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    overflow: visible;
}

.process-main-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
}

/* Watermark background numbers */
.wm-num {
	font-size: 165px;
	font-weight: 900;
	fill: rgba(255, 255, 255, 0.05);
	font-family: var(--font-primary, 'Space Grotesk', sans-serif);
	text-anchor: middle;
	dominant-baseline: middle;
	user-select: none;
	pointer-events: none;
}

/* The glowing wave path — animated via GSAP */
.wave-path {
    /* Line visible by default; animated by GSAP fromTo */
}

/* Hexagon node icon groups */
.process-node polygon {
    transition: all 0.3s ease;
}
.process-node:hover polygon {
    stroke: rgba(0, 229, 255, 0.9) !important;
    stroke-width: 2 !important;
}

/* Animated GIF process node icons */
.process-gif-icon {
	width: 176px;
	height: 184px;
	x: -72px;
	y: -92px;
}

/* foreignObject text blocks inside SVG */
.node-fo {
    overflow: visible;
}

.node-text-block {
    padding: 0;
    font-family: var(--font-primary, 'Space Grotesk', sans-serif);
    text-align: left;
}

.node-text-block h4 {
	font-size: 2.3rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 0.5rem 0;
	letter-spacing: 6.5px;
	text-transform: uppercase;
}

.node-text-block p {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.5;
	margin: 0;
}

/* Responsive — stack vertically on small screens */
@media (max-width: 768px) {
    .process-main-svg {
        display: none;
    }
    .process-mobile-fallback {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
}



.work-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Filterable Tabs */
.work-tabs-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.work-tabs {
    display: inline-flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.35rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--neon-teal);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

/* Youtube Card Styles */
.work-card {
    width: calc(33.333% - 1.334rem); /* Exactly 1/3 minus gap space */
    cursor: pointer;
    display: none; /* Hide cards by default, active class reveals them */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.work-card.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
}

.work-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Strict 16:9 Youtube-style ratio */
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-thumbnail img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-info-meta {
    padding: 0 0.5rem;
}

.work-info-meta h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.work-card:hover .work-info-meta h4 {
    color: var(--neon-teal);
}

.work-info-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Case Study Details Bento Modal */
.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 2rem;
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: var(--container-width);
    max-height: 90vh;
    border-radius: var(--bento-radius);
    padding: 3rem;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--neon-purple);
}

/* Modal Bento Grid System */
.modal-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bento-gap);
    grid-auto-rows: minmax(180px, auto);
}

.modal-box {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-box {
    overflow: hidden;
    position: relative;
}

.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-box h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.info-box .role {
    color: var(--neon-teal);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box p {
    margin-top: 1rem;
}

.stats-box h4,
.services-box h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.modal-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin-top: -1rem;
}

.modal-stat-item {
    display: flex;
    flex-direction: column;
}

.modal-stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-teal), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-family: var(--font-heading);
}

.modal-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.modal-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-services-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-services-list li::before {
    content: "✓";
    color: var(--neon-purple);
    font-weight: bold;
}

.testimonial-box {
    position: relative;
    padding-top: 3.5rem !important;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: rgba(176, 48, 255, 0.15);
    line-height: 1;
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quote-author {
    font-size: 0.875rem;
    color: var(--neon-teal);
    font-weight: 500;
}

@media (max-width: 900px) {
    .modal-bento-grid {
        grid-template-columns: 1fr;
    }
    .modal-bento-grid .span-2,
    .modal-bento-grid .row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .project-modal {
        padding: 1rem;
    }
    .modal-content {
        padding: 2rem 1.5rem;
    }
}

.work-overlay h4 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.work-overlay span {
    color: var(--neon-teal);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.work-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s, background 0.3s ease, border-color 0.3s ease;
}

.work-card:hover .work-overlay h4,
.work-card:hover .work-overlay span,
.work-card:hover .work-overlay .btn {
    transform: translateY(0);
}

/* Team Grid */
/* Team Section (Sci-Fi Aesthetic) */
.team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.team-card-wrapper {
    position: relative;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.4) 0%, rgba(176, 48, 255, 0.4) 100%);
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.2));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.left-card-wrapper {
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.right-card-wrapper {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.team-card-wrapper:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--neon-teal) 0%, var(--neon-purple) 100%);
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.5));
}

.scifi-panel {
    background: rgba(10, 15, 25, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none !important;
    height: 100%;
}

.left-panel {
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.right-panel {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.team-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem !important;
}

/* Hexagonal Profile Image */
.scifi-avatar-container {
    position: relative;
    width: 125px;
    height: 135px;
    flex-shrink: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-teal) 0%, var(--neon-purple) 100%);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.45));
    transition: all 0.3s ease;
}

.scifi-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
    border-radius: 0 !important;
    border: none !important;
    display: block;
}

.team-card-wrapper:hover .scifi-avatar-container {
    transform: scale(1.06);
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.75));
}

/* Text Content & Badges */
.left-aligned-info {
    text-align: left;
}

.right-aligned-info {
    text-align: right;
}

.right-aligned-info .role-badge {
    margin-left: auto;
}

.name-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.flex-end-header {
    justify-content: flex-end;
}

.name-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neon-teal);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    margin: 0;
    letter-spacing: -0.5px;
}

.neon-icon {
    filter: drop-shadow(0 0 6px var(--neon-teal));
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background: rgba(176, 48, 255, 0.12);
    border: 1px solid rgba(176, 48, 255, 0.4);
    border-radius: 50px;
    color: #d896ff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 10px rgba(176, 48, 255, 0.2);
}

.team-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.floating-message-gif {
	position: absolute;
	top: -95px;
	left: 40px;
	width: 217px;
	height: auto;
	z-index: 10;
	animation: floating-element 4s ease-in-out infinite;
	pointer-events: none;
}

.contact-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.contact-gif-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.contact-info-text h3 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

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

.contact-gif {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .contact-card-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-teal);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1.25rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    height: 1.5rem; /* Reserve space */
}

.form-status.success { color: var(--neon-teal); }
.form-status.error { color: #ff4b4b; }

/* Footer */
.footer {
    margin: 2rem;
    padding: 2rem 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

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

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

.social-links a {
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--neon-purple);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .work-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .span-3 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .services-grid,
    .work-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .span-2, .span-3 { grid-column: span 1; }
    
    .team-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
    }
    
    .left-aligned-info,
    .right-aligned-info {
        text-align: center !important;
    }
    
    .name-header {
        justify-content: center !important;
    }
    
    .right-aligned-info .role-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .section { padding: 4rem 0; }
}

/* Tools Infinite Marquee Styling */
.tools-marquee {
    position: relative;
    width: 110vw; /* Wider to avoid showing corners when rotated */
    left: 50%;
    transform: translateX(-50%) rotate(-2.5deg); /* Tilted at -2.5 degrees as requested */
    overflow: hidden;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    z-index: 5;
    margin: 4.5rem 0; /* Extra margin to prevent overlapping with section titles */
}

.tools-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    gap: 4rem; /* Increased spacing between tags */
    padding-left: 4rem;
}

.tool-tag {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Enlarged text size as requested */
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tool-tag::before {
    content: "•";
    color: var(--neon-teal);
    font-size: 2.25rem; /* Enlarged bullet size to match new text scale */
    margin-right: 0.5rem;
}

.tool-tag:nth-child(even)::before {
    color: var(--neon-purple);
}

.tool-tag:hover {
    color: var(--text-primary);
}

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

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS — Our Work Section (Home Page)
═══════════════════════════════════════════════════════════════ */
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 220px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 20px 60px -15px rgba(0, 229, 255, 0.18);
    text-decoration: none;
    color: var(--text-primary);
}

.packaging-card:hover {
    border-color: rgba(176, 48, 255, 0.35);
    box-shadow: 0 20px 60px -15px rgba(176, 48, 255, 0.2);
}

.motion-card:hover {
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 20px 60px -15px rgba(255, 107, 53, 0.18);
}

.ads-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 20px 60px -15px rgba(0, 255, 136, 0.15);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.065;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.editorial-card .category-card-bg {
    background: radial-gradient(ellipse at top-left, #00E5FF, transparent 70%);
}

.packaging-card .category-card-bg {
    background: radial-gradient(ellipse at top-right, #B030FF, transparent 70%);
}

.motion-card .category-card-bg {
    background: radial-gradient(ellipse at bottom-left, #FF6B35, transparent 70%);
}

.ads-card .category-card-bg {
    background: radial-gradient(ellipse at bottom-right, #00FF88, transparent 70%);
}

.category-card:hover .category-card-bg {
    opacity: 0.13;
}

.category-card-glow {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.35s ease;
}

.editorial-card .category-card-glow {
    background: linear-gradient(90deg, transparent, #00E5FF, transparent);
}

.packaging-card .category-card-glow {
    background: linear-gradient(90deg, transparent, #B030FF, transparent);
}

.motion-card .category-card-glow {
    background: linear-gradient(90deg, transparent, #FF6B35, transparent);
}

.ads-card .category-card-glow {
    background: linear-gradient(90deg, transparent, #00FF88, transparent);
}

.category-card:hover .category-card-glow {
    opacity: 1;
}

.category-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    gap: 1rem;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card-thumb {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 20px 20px 0 0;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-thumb {
    transform: scale(1.03);
}

.category-card-text {
    flex: 1;
    min-width: 0;
}

.category-card-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.3px;
    font-family: var(--font-heading);
}

.category-card-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    opacity: 0.8;
}

.category-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-card:hover .category-card-arrow {
    transform: scale(1.1) rotate(45deg);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.editorial-card:hover .category-card-arrow { background: rgba(0, 229, 255, 0.2); border-color: #00E5FF; color: #00E5FF; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
.packaging-card:hover .category-card-arrow { background: rgba(176, 48, 255, 0.2); border-color: #B030FF; color: #B030FF; box-shadow: 0 0 15px rgba(176, 48, 255, 0.4); }
.motion-card:hover .category-card-arrow { background: rgba(255, 107, 53, 0.2); border-color: #FF6B35; color: #FF6B35; box-shadow: 0 0 15px rgba(255, 107, 53, 0.4); }
.ads-card:hover .category-card-arrow { background: rgba(0, 255, 136, 0.2); border-color: #00FF88; color: #00FF88; box-shadow: 0 0 15px rgba(0, 255, 136, 0.4); }
.editing-card:hover .category-card-arrow { background: rgba(0, 229, 255, 0.2); border-color: #00E5FF; color: #00E5FF; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }


/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO PAGE — portfolio.html
═══════════════════════════════════════════════════════════════ */
.portfolio-layout {
    display: flex;
    gap: 2.5rem;
    max-width: 100%;
    margin: 0;
    padding: 1rem 2.5rem 3rem 2.5rem;
    min-height: calc(100vh - 100px);
    align-items: flex-start;
}

/* ── Sidebar ── */
.portfolio-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    align-self: flex-start;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 1.2rem 0;
    padding-left: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    width: 100%;
}

.sidebar-btn .sb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-btn.active {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.18);
}

.sidebar-btn.active .sb-dot {
    background: #00E5FF;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0.75rem 0.5rem;
}

/* ── Dynamic Left Sidebar Sub-Categories ── */
.accordion-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sub-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 24, 0.45);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    outline: none;
}

.sub-cat-btn * {
    pointer-events: none;
}

.sub-cat-arrow {
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 0.9rem;
}

.sub-cat-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.sub-cat-btn:hover .sub-cat-arrow {
    opacity: 0.8;
    transform: translateX(3px);
}

.sub-cat-btn.active {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
}

.sub-cat-btn.active .sub-cat-arrow {
    opacity: 1;
    color: #00E5FF;
    transform: translateX(3px);
}

/* ── Floating Glass Category Widget (Fixed Right Side) ── */
.portfolio-right-sidebar {
	position: fixed;
	right: 2rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 90;
	width: 215px;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	background: rgba(18, 18, 24, 0.65);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.03);
	border-radius: 20px;
}

.floating-widget-header {
    margin-bottom: 0.35rem;
    padding-left: 0.25rem;
}

.floating-widget-header .sb-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.floating-cat-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.cat-btn-thumb {
    width: 48px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cat-btn-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    transition: color 0.3s ease;
    line-height: 1.2;
}

.floating-cat-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateX(-4px);
}

.floating-cat-btn:hover .cat-btn-label {
    color: #ffffff;
}

.floating-cat-btn:hover .cat-btn-thumb {
    transform: scale(1.05);
    border-color: rgba(0, 229, 255, 0.4);
}

.floating-cat-btn.active {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.floating-cat-btn.active .cat-btn-label {
    color: var(--neon-teal);
}

.floating-cat-btn.active .cat-btn-thumb {
    border-color: var(--neon-teal);
}

/* ── Gallery ── */
.portfolio-gallery-wrap {
    flex: 1;
    min-width: 0;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.gallery-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

.gallery-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: #00E5FF;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.gallery-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    position: relative;
    cursor: pointer;
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease, opacity 0.4s ease;
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 16px 40px -12px rgba(0, 229, 255, 0.15);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-card img {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    object-fit: cover;
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 14, 24, 0.88) 0%, transparent 55%);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00E5FF;
    margin-bottom: 0.35rem;
}

.portfolio-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: var(--font-heading);
}

/* Category-specific card accent */
.portfolio-card[data-category="packaging"]:hover { border-color: rgba(176, 48, 255, 0.3); box-shadow: 0 16px 40px -12px rgba(176, 48, 255, 0.2); }
.portfolio-card[data-category="packaging"] .portfolio-card-tag { color: #B030FF; }
.portfolio-card[data-category="motion"]:hover { border-color: rgba(255, 107, 53, 0.3); box-shadow: 0 16px 40px -12px rgba(255, 107, 53, 0.15); }
.portfolio-card[data-category="motion"] .portfolio-card-tag { color: #FF6B35; }
.portfolio-card[data-category="display-ads"]:hover { border-color: rgba(0, 255, 136, 0.3); box-shadow: 0 16px 40px -12px rgba(0, 255, 136, 0.1); }
.portfolio-card[data-category="display-ads"] .portfolio-card-tag { color: #00FF88; }

/* ── Portfolio page hero/header ── */
.portfolio-page-header {
    padding: 7rem 280px 1.5rem 2.5rem;
    max-width: 100%;
    margin: 0;
}

.portfolio-page-header .section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon-teal);
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1rem;
}

.portfolio-page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin: 0 0 0.75rem 0;
    font-family: var(--font-heading);
}

.portfolio-page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .portfolio-page-header {
        padding-right: 1.5rem;
    }
    .category-card-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-layout {
        flex-direction: column;
        padding-right: 1.5rem;
    }
    .portfolio-sidebar {
        display: none;
    }
    .portfolio-right-sidebar {
        order: -1;
        position: static;
        transform: none;
        width: 100%;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem;
        scroll-snap-type: x mandatory;
    }
    .portfolio-right-sidebar .floating-cat-btn {
        min-width: 200px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── Behance-Style Project Modal ── */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-left-sidebar {
	position: fixed;
	top: 2rem;
	left: 0.5rem;
	bottom: 2rem;
	width: 237px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	z-index: 1002;
	pointer-events: none;
}

.modal-info-box {
    background: rgba(18, 18, 24, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-meta-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00E5FF;
}

.modal-meta-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.modal-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.tool-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tool-badge:nth-child(1) {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
}

.tool-badge:nth-child(2) {
    border-color: rgba(176, 48, 255, 0.4);
    background: rgba(176, 48, 255, 0.1);
    color: #B030FF;
}

.tool-badge:nth-child(3) {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.tool-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.modal-project-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.35rem 0;
    font-family: var(--font-heading);
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.modal-meta-cat {
    color: #00E5FF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-meta-dot {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.5;
}

.modal-meta-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.modal-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    gap: 0.5rem;
}

.modal-social-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.modal-social-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-social-links a:hover {
    color: #00E5FF;
    transform: translateY(-2px);
}

.modal-contact-btn {
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-contact-btn:hover {
    background: #00E5FF;
    color: #0d0d12;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.project-modal-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    overflow-y: auto;
    background: #0d0d12;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    z-index: 1001;
    animation: slideUpModal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-modal-body {
    width: 100%;
    min-height: 100%;
}

.project-modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal-btn {
    position: fixed;
    top: 2rem;
    right: 2.5rem;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-modal-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #00E5FF;
    transform: scale(1.1);
}

/* ── Modal Bottom Right Navigation Controls ── */
.modal-nav-controls {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 1002;
    pointer-events: auto;
}

.modal-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.modal-nav-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.5);
    color: #00E5FF;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.3);
}

.modal-nav-btn:active {
    transform: scale(0.95);
}

@keyframes slideUpModal {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── Admin Panel Dynamic Card & Modal Text Block ── */
.dynamic-card {
    cursor: pointer;
}
.dynamic-card img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.modal-text-block {
    padding: 2rem 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(240, 244, 255, 0.75);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
    font-style: italic;
    letter-spacing: 0.01em;
}

.project-modal-body img {
    width: 100%; display: block; margin: 0;
}

.project-modal-body video {
    width: 100%; display: block; background: #000;
}

/* category editing-card glow */
.editing-card .category-card-glow {
    background: radial-gradient(ellipse at center, rgba(0,229,255,0.18) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════
   BEFORE / AFTER SLIDER BLOCK
═══════════════════════════════════════════════════════════════ */
.ba-grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; width: 100%; margin: 15px 0; }
.ba-container { position: relative; width: 100%; user-select: none; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; background: #080d1a; box-shadow: 0 10px 30px rgba(0,0,0,0.3); line-height: 0; }
.ba-after-img { width: 100%; display: block; object-fit: contain; }
.ba-before-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: fill; z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-slider-line { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: white; z-index: 3; transform: translateX(-50%); pointer-events: none; }
.ba-slider { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: white; border-radius: 50%; cursor: ew-resize; z-index: 4; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.ba-slider::before { content: '◀'; font-size: 11px; color: #333; margin-right: 3px; }
.ba-slider::after { content: '▶'; font-size: 11px; color: #333; }
.ba-label { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: rgba(8, 13, 26, 0.85); backdrop-filter: blur(4px); color: var(--text-primary); padding: 8px 20px; border-radius: 20px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; z-index: 5; border: 1px solid var(--glass-border); text-shadow: 0 2px 4px rgba(0,0,0,0.5); line-height: 1.2; }
.ba-badge { position: absolute; top: 15px; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); color: white; padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-family: 'Space Grotesk', sans-serif; font-weight: 500; z-index: 5; border: 1px solid rgba(255,255,255,0.1); line-height: 1.2; }
.ba-badge.before { left: 15px; }
.ba-badge.after { right: 15px; }
