.hero-role { display: inline-block; white-space: nowrap; text-align: left; animation: roleIn .5s ease; transform-origin: bottom; }
.hero-brands { margin-top: var(--space-7); text-align: center; position: relative; }
.hero-brands::before,
.hero-brands::after { content: ""; display: block; height: 1px; width: 100%; opacity: .25; }
.hero-brands::before { background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent); margin-bottom: 10px; }
.hero-brands::after  { background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent); margin-top: 12px; }
.hero-brands h3 { font-size: clamp(10px, 1.2vw, 14px); font-weight: 500; opacity: .8; margin: 0 auto 8px; }
.hero-brands .brands-strip {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}
.hero-brands .brands-strip-track { display: flex; align-items: center; gap: 48px; padding: 6px 0; min-width: max-content; animation: strip 26s linear infinite; opacity: .9; }
.hero-brands .brands-strip-track img { height: 26px; width: auto; }
.brands--marquee { padding-top: 4px; margin-top: -48px; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
	.brands-strip-track { gap: 48px; }
	.brands-strip-track img { height: 24px; }
}

@media (max-width: 600px) {
	.brands-strip-track { gap: 32px; }
	.brands-strip-track img { height: 20px; }
	
	/* Fix hero brands on mobile */
	.hero-brands { 
		margin-top: var(--space-4);
		padding: 0 var(--space-2);
		text-align: center;
	}
	
	.hero-brands h3 { 
		font-size: 11px;
		margin: 0 auto 8px;
		text-align: center;
		width: 100%;
	}
	
	.hero-brands .brands-strip {
		margin: 0 -20px; /* Extend beyond container for better visual */
	}
	
	.hero-brands .brands-strip-track {
		padding: 4px 0;
	}
}

/* Brands heading smaller and subtle glow underline */
.brands--marquee .section-head { text-align: center; margin-bottom: 0; }
.brands--marquee .section-head h2 { font-size: clamp(10px, 1.2vw, 14px) !important; font-weight: 500; opacity: 0.8; letter-spacing: 0; text-transform: none; }
.brands--marquee .section-head::after {
	content: ""; display: block; height: 14px; margin: 4px auto 0; width: 200px;
	background: radial-gradient(closest-side, rgba(255,255,255,0.25), rgba(255,255,255,0));
	filter: blur(8px); opacity: .6;
}

/* Edge fades so icons blur at borders */
.brands-strip::before,
.brands-strip::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 140px; pointer-events: none; z-index: 2;
}
.brands-strip::before { left: 0; background: linear-gradient(to right, var(--bg) 10%, rgba(14,14,16,0)); }
.brands-strip::after { right: 0; background: linear-gradient(to left, var(--bg) 10%, rgba(14,14,16,0)); }
/* ==========================
   UI/UX Freelancer Portfolio Styles
   Modern, edgy, animated aesthetic
   ========================== */

/* ---------- CSS Variables ---------- */
:root {
    --bg: #050507;
	--elev-1: #141419;
	--elev-2: #1b1b22;
	--text: #e8e8ef;
	--muted: #a9a9b3;
	--accent-1: #8a5cff; /* electric purple */
	--accent-2: #22d3ee; /* cyan */
	--accent-3: #ff4d9d; /* pink */
	--ok: #70ffb5;
	--danger: #ff6b6b;
	--radius-xl: 20px;
	--radius-lg: 16px;
	--radius-md: 12px;
	--radius-sm: 8px;
	--ring: 0 0 0 1px rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.45);
	--blur: saturate(140%) blur(12px);
	--shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
	--shadow-hard: 0 30px 80px rgba(0,0,0,0.5);
	--maxw: 1200px;
	--space-1: 8px;
	--space-2: 12px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 32px;
	--space-6: 48px;
	--space-7: 72px;
	--space-8: 112px;

	/* Tag palette */
	--tag-prototyping-bg: #9BE7C7;
	--tag-prototyping-fg: #0a0a0c;
	--tag-research-bg: #FFE48A;
	--tag-research-fg: #0a0a0c;
	--tag-3d-bg: #6D6BF2;
	--tag-3d-fg: #ffffff;
	--tag-uiux-bg: #7EC8FF;
	--tag-uiux-fg: #0a0a0c;
	--tag-mentoring-bg: #FFA371;
	--tag-mentoring-fg: #0a0a0c;
	--tag-creative-bg: #FF6464;
	--tag-creative-fg: #ffffff;
	--tag-graphic-bg: #E066FF;
	--tag-graphic-fg: #ffffff;
	--tag-systems-bg: #00D4AA;
	--tag-systems-fg: #0a0a0c;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: auto; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--text);
	background: radial-gradient(1200px 800px at 10% 10%, rgba(138,92,255,0.12), transparent 40%),
		radial-gradient(800px 600px at 90% 10%, rgba(34,211,238,0.12), transparent 40%),
		radial-gradient(1000px 800px at 50% 100%, rgba(255,77,157,0.09), transparent 50%),
		var(--bg);
	background-attachment: fixed;
	line-height: 1.6;
	letter-spacing: 0.01em;
	overflow-x: hidden; /* Prevent horizontal scroll from any overflowing elements */
}


::selection { background: rgba(138,92,255,0.35); color: white; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Work Page Styles ---------- */

/* Filter Section */
.work-filters {
    padding: 60px 0 40px;
    background: var(--bg);
}

.work-filters-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.work-filters h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(138,92,255,0.9), rgba(34,211,238,0.9));
    border-color: transparent;
    color: #000;
    font-weight: 600;
}

/* Projects Grid - only for work page */
.work-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.work-page .project-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.work-page .project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.work-page .project-card.hidden {
    display: none;
}

.work-page .project-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-page .project-media img,
.work-page .project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-page .project-card:hover .project-media img,
.work-page .project-card:hover .project-video {
    transform: scale(1.05);
}

.work-page .project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.work-page .project-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
}

.work-page .project-card:hover .project-content {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    visibility: visible;
}

.work-page .project-index {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.work-page .project-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.work-page .project-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.work-page .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.work-page .project-tags .tag {
    padding: 6px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    list-style: none;
}

.work-page .project-check {
    width: 100%;
    text-align: center;
    position: relative;
    border-radius: 9999px;
    padding: 14px 64px 14px 22px;
    overflow: visible;
    min-height: 44px;
    color: #1a1a1c;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.95);
}

.work-page .project-check::after {
    content: "\2192";
    position: absolute; 
    right: 6px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 40px; 
    height: 40px; 
    border-radius: 9999px;
    background: rgba(255,255,255,0.9);
    display: grid; 
    place-items: center;
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 4px 15px rgba(0,0,0,0.15);
    transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
    color: #1a1a1c;
}

.work-page .project-check:hover {
    background: rgba(255,255,255,1);
    color: #1a1a1c;
}

.work-page .project-check:hover::after { 
    transform: translateY(-50%) translateX(2px); 
    background: rgba(255,255,255,1); 
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.2);
}

/* Mobile Responsive - only for work page */
@media (max-width: 768px) {
    .work-page .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .work-filters {
        padding: 40px 0 30px;
    }
    
    .work-filters-inner {
        padding: 0 16px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    
    .work-page .project-content {
        padding: 20px;
    }
    
    .work-page .project-title {
        font-size: 18px;
    }
    
    .work-page .project-desc {
        font-size: 13px;
    }
    
    /* Home page project responsive styles - from old CSS */
    .work .project-row { 
        grid-template-columns: 1fr; 
        gap: var(--space-5); 
        padding: var(--space-5);
        margin-bottom: var(--space-6);
    }
    .work .project-left { padding-right: 0; margin-bottom: var(--space-4); }
    
    /* Mobile project order: title → media → description → tags */
    .work .project-left {
        display: flex;
        flex-direction: column;
    }
    
    .work .project-index { order: 1; font-size: clamp(32px, 8vw, 60px); }
    .work .project-title { order: 2; font-size: clamp(24px, 5vw, 36px); margin-bottom: var(--space-4); }
    .work .project-media-mobile { order: 3; display: block; margin-bottom: var(--space-4); }
    .work .project-desc { order: 4; margin-bottom: var(--space-4); }
    .work .project-tags { order: 5; margin: 0; }
    
    /* Hide the separate project-right on mobile since media is now in project-left */
    .work .project-right { display: none; }
}

/* ---------- Layout ---------- */

/* CRITICAL: Navbar visibility and positioning */
.site-header {
	/* Force visibility - prevent GSAP or any other CSS from hiding */
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	
	/* Positioning */
    position: fixed !important;
    top: 14px; 
    left: 50%; 
    transform: translateX(-50%) !important;
    width: min(1100px, calc(100% - 32px));
    max-width: 92%;
    
    /* Styling */
    border-radius: 9999px;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(20,20,25,0.42);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    
    /* Ensure it's on top */
    z-index: 9999 !important;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1200px) {
    .site-header {
        width: calc(100% - 40px);
        max-width: 94%;
    }
}

.site-header.scrolled {
    top: 8px;
    width: min(1000px, 88%);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    background: rgba(20,20,25,0.65);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .nav {
    padding: 8px 16px;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .logo {
    font-size: 13px;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand navbar on hover when scrolled - back to original state */
.site-header.scrolled.hovered {
    top: 14px;
    width: min(1100px, 92%);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 9999px;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(20,20,25,0.42);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.site-header.scrolled.hovered .nav {
    padding: 10px 16px;
}

.site-header.scrolled.hovered .logo {
    font-size: 14px;
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 16px; /* tighter navbar height */
	display: flex;
	align-items: center;
	justify-content: space-between;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-role { margin-left: 12px; color: var(--text); opacity: .85; font-weight: 600; display: inline-block; min-width: 170px; text-align: left; animation: roleIn .5s ease; }
@keyframes roleIn { from { transform: rotateX(90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }

.logo {
    font-family: "General Sans", Inter, sans-serif;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border: 0;
    font-size: 11px;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    gap: 0;
}

.logo span {
    display: block;
    line-height: 1;
}

.site-header.scrolled .logo {
    font-size: 10px;
}

.nav-toggle {
	background: transparent;
	border: none;
	width: 48px; height: 40px;
	position: relative;
	display: none;
	cursor: pointer;
}
.nav-toggle span {
	position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text);
	transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 24px; }
.nav.open .nav-toggle span:first-child { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-5px) rotate(-45deg); }

.nav-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: var(--space-4);
	align-items: center;
}
.nav-menu a { opacity: 0.9; }
.nav-menu a:hover { opacity: 1; }

/* Nav link hover/active states */
.nav-menu a { position: relative; padding: 8px 10px; border-radius: 10px; transition: color .2s ease, background .2s ease, font-weight .2s ease; font-weight: 500; font-size: 14px; }
.nav-menu a:hover { background: rgba(255,255,255,0.06); font-weight: 700; }
.nav-menu a:not(.btn).is-active { background: none; color: transparent; background-image: linear-gradient(135deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; font-weight: 800; }
.nav-menu a.btn.is-active { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset; }
/* Ensure Contact button matches global button behavior */
.nav-menu a.btn { 
	padding: 10px 18px; 
	min-height: 44px; 
	border-radius: 9999px; 
	transition: transform .15s ease, box-shadow .3s ease, background .3s ease;
	will-change: transform;
}
.nav-menu a.btn:hover { 
	transform: translateY(-1px); 
	box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.45); 
	background: rgba(255,255,255,0.08);
}
.nav-menu a.btn:active { 
	transform: translateY(0); 
}
.nav-menu a.btn.btn-primary:hover { 
	background: linear-gradient(135deg, rgba(138,92,255,1), rgba(34,211,238,1)); 
	transform: translateY(-1px); 
	box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.45); 
}



/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    min-height: 44px;
    border-radius: 9999px;
    font-weight: 600; font-size: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--ring);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    transition: transform .15s ease, box-shadow .3s ease, background .3s ease;
    will-change: transform;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.45); background: rgba(255,255,255,0.08); }
.btn:active { transform: translateY(0); }

.btn-primary {
	position: relative;
	background: linear-gradient(135deg, rgba(138,92,255,0.9), rgba(34,211,238,0.9));
	color: #0a0a0c;
	overflow: hidden;
}
.btn-primary::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s ease;
}
.btn-primary:hover::before {
	left: 100%;
}
.btn-primary:hover { background: linear-gradient(135deg, rgba(138,92,255,1), rgba(34,211,238,1)); }

.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); }

/* Pill button with circular arrow used selectively (e.g., Work section) */
.btn-pill {
	position: relative;
	border-radius: 9999px;
	padding: 14px 64px 14px 22px;
	overflow: visible !important;
    min-height: 44px;
}
.btn-pill::after {
	content: "\2192";
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 9999px;
	background: rgba(255,255,255,0.9);
	display: grid; place-items: center;
	border: 1px solid rgba(255,255,255,0.95);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 4px 15px rgba(0,0,0,0.15);
	transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
	color: #1a1a1c;
}
.btn-pill:hover::after { 
	transform: translateY(-50%) translateX(2px) rotate(45deg); 
	background: rgba(255,255,255,1); 
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.2);
}

/* Specific styles for secondary pill buttons (project cards) */
.btn-secondary.btn-pill {
	color: #1a1a1c;
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(255,255,255,0.95);
}
.btn-secondary.btn-pill:hover {
	background: rgba(255,255,255,1);
	color: #1a1a1c;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 92vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    padding: calc(80px + var(--space-6)) var(--space-4) var(--space-4);
}

.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.hero h1 {
	font-size: clamp(38px, 6vw, 84px);
	line-height: 1.1;
	margin: 0 0 var(--space-4);
    font-weight: 700;
	letter-spacing: -0.02em;
    position: relative;
    width: 100%;
    overflow: visible;
}
.hero-subline { font-size: clamp(38px, 6vw, 84px); line-height: 1.05; letter-spacing: -0.02em; color: var(--text); font-weight: 400; margin: -6px 0 var(--space-5); }
.hero h1 .hero-lead { font-weight: 400; color: var(--text); }
.hero h1 .hero-role { 
	font-weight: 800; 
	background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3)); 
	-webkit-background-clip: text; 
	background-clip: text; 
	color: transparent; 
	filter: drop-shadow(0 6px 30px rgba(138,92,255,0.25));
	overflow: visible;
	display: inline-block;
}

/* Animated outline for hero heading */
/* (Removed stroke outline animation) */
.hero p { max-width: 720px; color: var(--muted); font-size: 18px; margin: 0 0 var(--space-5); }

.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-meta { margin-top: var(--space-5); }
.meta-list { display: flex; gap: var(--space-4); padding: 0; margin: 0; list-style: none; color: var(--muted); }

.hero-canvas { 
	position: absolute; 
	inset: 0; 
	overflow: hidden; 
	pointer-events: none; 
	will-change: auto;
}
#noiseCanvas { 
	width: 100%; 
	height: 100%; 
	display: block; 
	opacity: 0.25; 
	mix-blend-mode: overlay; 
	filter: contrast(1.4) brightness(0.8) saturate(0.9);
	will-change: auto;
	transform: translateZ(0); /* Hardware acceleration */
}

/* Floating gradient orbs */
.hero-orbs { 
	position: absolute; 
	inset: 0; 
	pointer-events: none; 
	overflow: hidden; 
	will-change: transform;
}
.hero { 
	overflow: hidden; /* Prevent orbs from causing horizontal scroll */
}
.hero-orb { 
	position: absolute; 
	border-radius: 50%; 
	filter: blur(60px); 
	mix-blend-mode: screen; 
	opacity: 0.6;
	will-change: transform, opacity;
	backface-visibility: hidden;
	transform: translateZ(0); /* Hardware acceleration */
}
.hero-orb:nth-child(1) { 
	width: 400px; height: 400px; 
	background: radial-gradient(circle, rgba(138,92,255,0.8), transparent 70%);
	top: 15%; left: 5%; 
	animation: floatOrb1 8s ease-in-out infinite;
}
.hero-orb:nth-child(2) { 
	width: 300px; height: 300px; 
	background: radial-gradient(circle, rgba(34,211,238,0.7), transparent 70%);
	top: 55%; right: 5%; 
	animation: floatOrb2 6s ease-in-out infinite reverse;
}
.hero-orb:nth-child(3) { 
	width: 250px; height: 250px; 
	background: radial-gradient(circle, rgba(255,77,157,0.6), transparent 70%);
	bottom: 25%; left: 50%; 
	animation: floatOrb3 10s ease-in-out infinite;
}

@keyframes floatOrb1 {
	0% { transform: translate(0, 0) scale(1) rotate(0deg); }
	20% { transform: translate(40px, -30px) scale(1.2) rotate(72deg); }
	40% { transform: translate(-20px, 35px) scale(0.8) rotate(144deg); }
	60% { transform: translate(50px, 15px) scale(1.0) rotate(216deg); }
	80% { transform: translate(-35px, -20px) scale(0.9) rotate(288deg); }
	100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}
@keyframes floatOrb2 {
	0% { transform: translate(0, 0) scale(1) rotate(0deg); }
	25% { transform: translate(-30px, -40px) scale(1.3) rotate(90deg); }
	50% { transform: translate(35px, 25px) scale(0.7) rotate(180deg); }
	75% { transform: translate(-45px, 30px) scale(1.1) rotate(270deg); }
	100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}
@keyframes floatOrb3 {
	0% { transform: translate(0, 0) scale(1) rotate(0deg); }
	15% { transform: translate(30px, 20px) scale(0.8) rotate(54deg); }
	35% { transform: translate(-25px, -35px) scale(1.2) rotate(126deg); }
	55% { transform: translate(40px, -15px) scale(0.9) rotate(198deg); }
	75% { transform: translate(-20px, 40px) scale(1.0) rotate(270deg); }
	100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* Enhanced hero decorative orbs with parallax */
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.3;
	pointer-events: none;
	mix-blend-mode: screen;
}
.hero::before {
	width: 500px; height: 500px; 
	left: calc(-150px + (var(--parX, 0) * 20px)); 
	top: calc(-5% + (var(--parY, 0) * 15px));
	background: radial-gradient(closest-side, rgba(138,92,255,0.6), rgba(255,77,157,0.4), transparent);
	animation: pulseOrb1 5s ease-in-out infinite;
}
.hero::after {
	width: 550px; height: 550px; 
	right: calc(-175px - (var(--parX, 0) * 20px)); 
	bottom: calc(-10% - (var(--parY, 0) * 20px));
	background: radial-gradient(closest-side, rgba(34,211,238,0.5), rgba(138,92,255,0.3), transparent);
	animation: pulseOrb2 7s ease-in-out infinite reverse;
}

@keyframes pulseOrb1 {
	0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
	25% { transform: scale(1.3) rotate(90deg); opacity: 0.5; }
	50% { transform: scale(0.8) rotate(180deg); opacity: 0.2; }
	75% { transform: scale(1.1) rotate(270deg); opacity: 0.4; }
	100% { transform: scale(1) rotate(360deg); opacity: 0.3; }
}
@keyframes pulseOrb2 {
	0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
	30% { transform: scale(0.7) rotate(-120deg); opacity: 0.5; }
	60% { transform: scale(1.4) rotate(-240deg); opacity: 0.2; }
	100% { transform: scale(1) rotate(-360deg); opacity: 0.3; }
}

/* Hero tags */
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-3); }
.hero-tag { padding: 8px 12px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); font-size: 13px; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) var(--space-4); }
.work.section { padding: var(--space-6) var(--space-4); }
.work-grid.section { padding: 40px 0 80px; } /* Add proper padding to work-grid section */
.services.section { padding: var(--space-6) var(--space-4); }
.testimonials.section { padding: var(--space-7) var(--space-4); }
.contact.section { padding: var(--space-6) var(--space-4); }
.section .section-head { max-width: var(--maxw); margin: 0 auto var(--space-6); text-align: center; }
.section .section-head h2 { font-size: clamp(36px, 4.5vw, 60px); margin: 0 0 var(--space-3); text-align: center; }
.section .section-head p { margin: 0; color: var(--muted); text-align: center; }

/* Services */
.services .services-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: var(--space-5); box-shadow: var(--shadow-soft); display: flex !important; flex-direction: column; gap: var(--space-3); height: 100%; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 1 !important; visibility: visible !important; }
.service-card:hover { transform: translateY(-12px) scale(1.02); background: linear-gradient(135deg, rgba(138,92,255,0.12) 0%, rgba(34,211,238,0.12) 100%); border-color: rgba(255,255,255,0.2); box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(138,92,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1); }
.service-card-content { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.service-actions { margin-top: auto; }
.service-art { 
	width: 100%; 
	height: 140px; 
	border-radius: 14px; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	overflow: hidden;
	background: transparent;
}

.service-art lottie-player {
	width: 120px !important;
	height: 120px !important;
	max-width: 120px;
	max-height: 120px;
}

/* Larger Lottie animations for specific services */
.service-card:nth-child(5) .service-art lottie-player  /* E-commerce & Shop Design */ {
	width: 140px !important;
	height: 140px !important;
	max-width: 140px;
	max-height: 140px;
}

.service-card:nth-child(6) .service-art lottie-player  /* Social Media & Marketing */ {
	width: 200px !important;
	height: 200px !important;
	max-width: 200px;
	max-height: 200px;
}

/* Large Lottie animation for Websites & Landing Pages */
.service-card:nth-child(1) .service-art lottie-player  /* Websites & Landing Pages */ {
	width: 200px !important;
	height: 200px !important;
	max-width: 200px;
	max-height: 200px;
}

/* Extra large Lottie animations for Mobile & Web App Design */
.service-card:nth-child(2) .service-art lottie-player  /* Mobile & Web App Design */ {
	width: 200px !important;
	height: 200px !important;
	max-width: 200px;
	max-height: 200px;
}

/* Extra large Lottie animation for Animation & Motion */
.service-card:nth-child(4) .service-art lottie-player  /* Animation & Motion */ {
	width: 280px !important;
	height: 280px !important;
	max-width: 280px;
	max-height: 280px;
}

/* Even larger Lottie animation for UI & UX Design */
.service-card:nth-child(3) .service-art lottie-player /* UI & UX Design */ {
	width: 180px !important;
	height: 180px !important;
	max-width: 180px;
	max-height: 180px;
}
.service-card h3 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); }
.service-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.service-card ul { 
	margin: 16px 0 0 0; 
	padding-left: 0; 
	list-style: none; 
}
.service-card li { 
	color: var(--muted); 
	font-size: 14px; 
	line-height: 1.6; 
	margin-bottom: 8px; 
	position: relative;
	padding-left: 20px;
}
.service-card li:before { 
	content: "•"; 
	color: var(--primary); 
	font-weight: bold; 
	position: absolute; 
	left: 0; 
}

@media (max-width: 1000px) {
    .services .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services .services-grid { grid-template-columns: 1fr; }
    
    /* Fix hero section for mobile */
    .hero { 
        padding: calc(90px + var(--space-4)) var(--space-3) var(--space-4); 
        min-height: 75vh; 
        display: flex;
        align-items: center;
    }
    
    .hero-inner {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    /* Mobile hero typography */
    .hero h1 { 
        font-size: clamp(32px, 9vw, 48px);
        line-height: 1.1;
        margin-bottom: var(--space-3);
        text-align: center;
    }
    
    /* Fix changing word centering on mobile */
    .hero h1 .hero-role {
        text-align: center;
        justify-self: center;
        display: inline-block;
        width: 100%;
    }
    
    .hero-subline { 
        font-size: clamp(32px, 9vw, 48px);
        line-height: 1.1;
        margin-bottom: var(--space-4);
        text-align: center;
    }
    
    .hero p { 
        font-size: 16px;
        line-height: 1.5;
        max-width: 320px;
        margin: 0 auto var(--space-4);
        text-align: center;
    }
    
    /* Mobile CTA buttons */
    .hero-cta { 
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 24px;
    }
    
    /* Fix section headings alignment */
    .section .section-head { 
        text-align: center; 
        margin-bottom: var(--space-5); 
    }
    
    .section .section-head h2 { 
        text-align: center; 
    }
    
    .section .section-head p { 
        text-align: center; 
        max-width: 100%; 
    }
}

/* Work Page */
.work-hero {
    min-height: 50vh;
    display: grid;
    align-items: center;
    position: relative;
    padding: calc(80px + var(--space-6)) var(--space-4) var(--space-4);
    text-align: center;
}
.work-hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}
.work-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin: 0 0 var(--space-4);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.work-lead {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--muted);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}
/* Old work-grid styles removed - using new projects-grid layout */

/* About Page */
.about-hero {
    min-height: 80vh;
    display: grid;
    align-items: center;
    position: relative;
    padding: calc(80px + var(--space-6)) var(--space-4) var(--space-6);
}
.about-hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-7);
    align-items: center;
}
.about-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin: 0 0 var(--space-4);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.hero-accent {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 30px rgba(138,92,255,0.25));
}
.about-lead {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 var(--space-5);
    max-width: 42ch;
}
.about-cta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.about-hero-photo {
    position: relative;
}
.about-hero-photo img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-hard);
    object-fit: cover;
}

/* Story Section */
.about-story {
    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);
}
.about-story-content {
    max-width: var(--maxw);
    margin: 0 auto;
}
.about-story h2 {
    font-size: clamp(36px, 4.5vw, 60px);
    margin: 0 0 var(--space-6);
    text-align: center;
}
.story-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-7);
    align-items: start;
}
.story-text p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 var(--space-4);
}
.story-text p:last-child {
    margin-bottom: 0;
}
.story-stats {
    display: grid;
    gap: var(--space-4);
}
.stat {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    backdrop-filter: blur(4px);
}
.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: var(--space-1);
}
.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

/* Skills Section */
.about-skills-content {
    max-width: var(--maxw);
    margin: 0 auto;
}
.about-skills h2 {
    font-size: clamp(36px, 4.5vw, 60px);
    margin: 0 0 var(--space-6);
    text-align: center;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.skill-category {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: var(--space-5);
    backdrop-filter: blur(4px);
}
.skill-category h3 {
    font-size: clamp(20px, 2.4vw, 28px);
    margin: 0 0 var(--space-4);
    color: var(--text);
}
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.skill-badge {
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    font-size: 13px;
    color: var(--text);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}
.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: var(--space-3);
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}
.tool:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
}
.tool img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 4px;
}
.tool span {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}
.tool.ai img { background: #FF9A00; }
.tool.ps img { background: #31A8FF; }
.tool.id img { background: #FF3366; }
.tool.ae img { background: #9999FF; }
.tool.pr img { background: #9999FF; }
.tool.figma img { background: #F24E1E; }
.tool.wix img { background: #0C6EFC; }
.tool.framer img { background: #0055FF; }
.tool.elementor img { background: #92003B; }
.tool.wordpress img { background: #21759B; }
.tool.blender img { background: #F5792A; }

/* About Page Responsive */
@media (max-width: 900px) {
    .about-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .about-hero {
        min-height: 70vh;
        padding: calc(80px + var(--space-4)) var(--space-4) var(--space-4);
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Work */
.work { position: relative; }
/* Home page work section styles - from old CSS, only for home page */
.work .project-row { 
    max-width: var(--maxw); 
    margin: 0 auto var(--space-7); 
    display: grid; 
    grid-template-columns: 1.1fr 1.2fr; 
    gap: var(--space-6); 
    align-items: center; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.06); 
    border-radius: 28px; 
    padding: var(--space-6); 
    backdrop-filter: blur(4px);
}

.work .project-left { padding-right: var(--space-4); }
.work .project-index { font-size: clamp(42px, 6vw, 80px); font-weight: 800; color: rgba(255,255,255,0.12); letter-spacing: -0.03em; }
.work .project-title { margin: var(--space-3) 0; font-size: clamp(28px, 3.2vw, 44px); }
.work .project-desc { color: var(--muted); line-height: 1.9; max-width: 58ch; }

/* Hide mobile media on desktop */
.work .project-media-mobile { display: none; }
.work .project-tags { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: var(--space-6) 0; padding: 0; list-style: none; }
.work .project-tags .tag { padding: 10px 14px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); font-size: 14px; }

.work .project-media { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: #0f0f12; box-shadow: var(--shadow-hard); }
.work .project-media img[src*="placeholder"] { background: linear-gradient(135deg, rgba(138,92,255,0.2), rgba(34,211,238,0.2)); min-height: 300px; object-fit: cover; }
.work .project-video, .work .project-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.work .project-placeholder { width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(138,92,255,0.15), rgba(34,211,238,0.15)); color: var(--muted); font-size: 18px; font-weight: 500; border-radius: 20px; }
.work .project-video { min-height: 300px; background: linear-gradient(135deg, rgba(138,92,255,0.15), rgba(34,211,238,0.15)); }
.work .project-check { position: absolute; left: 18px; bottom: 18px; }

/* Old project styles removed - using new project-card styles */
.project-tags .tag.tag-prototyping { background: var(--tag-prototyping-bg); color: var(--tag-prototyping-fg); }
.project-tags .tag.tag-research { background: var(--tag-research-bg); color: var(--tag-research-fg); }
.project-tags .tag.tag-3d { background: var(--tag-3d-bg); color: var(--tag-3d-fg); }
.project-tags .tag.tag-uiux { background: var(--tag-uiux-bg); color: var(--tag-uiux-fg); }
.project-tags .tag.tag-mentoring { background: var(--tag-mentoring-bg); color: var(--tag-mentoring-fg); }
.project-tags .tag.tag-creative { background: var(--tag-creative-bg); color: var(--tag-creative-fg); }
.project-tags .tag.tag-graphic { background: var(--tag-graphic-bg); color: var(--tag-graphic-fg); }
.project-tags .tag.tag-systems { background: var(--tag-systems-bg); color: var(--tag-systems-fg); }
.project-tags .tag.tag-dev { background: rgba(34,211,238,0.15); color: #22d3ee; border-color: rgba(34,211,238,0.3); }
.project-tags .tag.tag-aicoding { background: rgba(138,92,255,0.15); color: #8a5cff; border-color: rgba(138,92,255,0.3); }
/* Legacy tag styles - keeping for backwards compatibility */
.tag--green { background: var(--tag-prototyping-bg); color: var(--tag-prototyping-fg); }
.tag--yellow { background: var(--tag-research-bg); color: var(--tag-research-fg); }
.tag--purple { background: var(--tag-uiux-bg); color: var(--tag-uiux-fg); }
.tag--blue { background: var(--tag-uiux-bg); color: var(--tag-uiux-fg); }
.tag--orange { background: var(--tag-mentoring-bg); color: var(--tag-mentoring-fg); }
.tag--red { background: var(--tag-creative-bg); color: var(--tag-creative-fg); }
/* Old project media styles removed - using new project-card styles */

.work-cta { max-width: var(--maxw); margin: var(--space-3) auto var(--space-6); display: flex; justify-content: center; position: relative; z-index: 10; }


/* Brands Marquee */
.brands-rows { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); border: 0; background: transparent; display: grid; gap: 16px; }
.brands-row { overflow: hidden; }
.brands-track { display: flex; align-items: center; gap: 56px; padding: 18px 0; flex-wrap: wrap; justify-content: center; }
.brands-track img { height: 72px; width: auto; opacity: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); transition: transform .2s ease, filter .2s ease; background: transparent; }
.brands-track img:hover { transform: translateY(-1px); filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35)); }
.brands-track img.brand-tight { object-fit: contain; transform: translateX(-10px); }
.brands-track img.brand-white { filter: invert(1); }
.brands-track img:hover { opacity: 1; filter: grayscale(0%) contrast(100%); }
@keyframes marqueeLTR { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
	.brands-track { gap: 36px; padding: 22px 0; }
	.brands-track img { height: 56px; }
}

@media (max-width: 600px) {
	.brands-track { gap: 24px; padding: 18px 0; }
	.brands-track img { height: 42px; }
}

/* Testimonials Carousel */
.testi-carousel {
    position: relative;
    overflow: hidden;
    max-width: calc(var(--maxw) + 200px);
    margin: 0 auto;
    padding: 0 var(--space-4);
}
.testi-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Enhanced fade edges for desktop - stronger blur effect */
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.testi-list { 
    display: flex; 
    align-items: stretch; 
    gap: var(--space-4); 
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    will-change: transform;
    padding: var(--space-2) 0;
}
.testi-card {
    flex: 0 0 380px; /* Fixed width for consistent 3-card display */
    width: 380px;
    height: 200px; /* Fixed height for all cards */
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    align-items: start;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-hard);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease, filter 0.8s ease;
    overflow: hidden; /* Prevent content overflow */
}
.testi-card .avatar { 
    width: 80px; 
    height: 80px; 
    border-radius: 14px; 
    object-fit: cover; 
    border: 1px solid rgba(255,255,255,0.15); 
    background: rgba(255,255,255,0.04); 
}
.testi-card .quote { 
    margin: 0 0 12px; 
    color: var(--text); 
    font-size: 16px; 
    line-height: 1.5; 
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testi-card .meta { 
    color: var(--muted); 
    display: flex; 
    gap: 8px; 
    font-size: 12px; 
    flex-wrap: wrap; 
    margin-top: auto; /* Push to bottom */
}
.testi-card .name { 
    color: var(--text); 
    font-weight: 700; 
}

/* Card states for 3-card centered layout - Desktop */
.testi-card { 
    opacity: 0.3; 
    transform: scale(0.85); 
    filter: blur(3px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testi-card.is-center { 
    opacity: 1; 
    transform: scale(1.0); 
    filter: blur(0px);
    box-shadow: var(--shadow-hard), 0 0 0 2px rgba(138,92,255,0.3), 0 0 30px rgba(138,92,255,0.2);
    z-index: 10;
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(138,92,255,0.2);
}
.testi-card.is-side { 
    opacity: 0.5; 
    transform: scale(0.9); 
    filter: blur(1px);
}

@media (max-width: 900px) {
	.testi-card {
		grid-template-columns: 64px 1fr;
		padding: 22px;
		flex: 0 0 320px;
		width: 320px;
		height: 180px; /* Slightly smaller height on tablets */
	}
	.testi-card .avatar { width: 64px; height: 64px; border-radius: 12px; }
	.testi-card .quote { font-size: 15px; }
	
	/* Home page project responsive styles - only for home page */
	.work .project-row,
	body:not(.work-page) .project-row { 
		grid-template-columns: 1fr; 
		gap: var(--space-5); 
		padding: var(--space-5);
		margin-bottom: var(--space-6);
	}
	.work .project-left,
	body:not(.work-page) .project-left { padding-right: 0; margin-bottom: var(--space-4); }
	
	/* Mobile project order: title → media → description → tags */
	.work .project-left,
	body:not(.work-page) .project-left {
		display: flex;
		flex-direction: column;
	}
	
	.work .project-index,
	body:not(.work-page) .project-index { order: 1; font-size: clamp(32px, 8vw, 60px); }
	.work .project-title,
	body:not(.work-page) .project-title { order: 2; font-size: clamp(24px, 5vw, 36px); margin-bottom: var(--space-4); }
	.work .project-media-mobile,
	body:not(.work-page) .project-media-mobile { order: 3; display: block; margin-bottom: var(--space-4); }
	.work .project-desc,
	body:not(.work-page) .project-desc { order: 4; margin-bottom: var(--space-4); }
	.work .project-tags,
	body:not(.work-page) .project-tags { order: 5; margin: 0; }
	
	/* Hide the separate project-right on mobile since media is now in project-left */
	.work .project-right,
	body:not(.work-page) .project-right { display: none; }
}

@media (max-width: 640px) {
	.testi-carousel {
		padding: 0 var(--space-2);
	}
	
	.testi-list { 
		gap: var(--space-2); 
	}
	
	.testi-card {
		grid-template-columns: 56px 1fr;
		padding: 16px;
		flex: 0 0 260px;
		width: 260px;
		height: 160px; /* Smaller height on mobile */
		margin: 0 auto;
	}
	
	.testi-card .avatar { 
		width: 56px; 
		height: 56px; 
		border-radius: 10px; 
	}
	
	.testi-card .quote { 
		font-size: 15px; 
		line-height: 1.5;
		margin-bottom: 12px;
	}
	
	.testi-card .meta {
		font-size: 12px;
		gap: 8px;
	}
	
	/* Better mobile testimonial scaling */
	.testi-card { 
		opacity: 0.2; 
		transform: scale(0.8); 
		filter: blur(3px);
	}
	
	.testi-card.is-center { 
		opacity: 1; 
		transform: scale(1.0); 
		filter: blur(0px);
		box-shadow: var(--shadow-hard), 0 0 0 2px rgba(138,92,255,0.4), 0 0 20px rgba(138,92,255,0.3);
		background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
		border: 1px solid rgba(138,92,255,0.3);
	}
	
	.testi-card.is-side { 
		opacity: 0.4; 
		transform: scale(0.85); 
		filter: blur(1px);
	}
}

/* Contact */
.contact-wrap { position: relative; max-width: calc(var(--maxw) + 200px); margin: 0 auto; padding: var(--space-7) var(--space-4); border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-hard); }
.contact-wrap::before { content: ""; position: absolute; inset: 0; background: url('../images/backgrounds/contact-form-bg.webp') center/cover no-repeat; filter: saturate(110%); opacity: 0.5; }
.contact-wrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 600px at 10% 10%, rgba(138,92,255,0.12), transparent 40%), radial-gradient(1000px 600px at 90% 90%, rgba(34,211,238,0.12), transparent 40%); mix-blend-mode: screen; opacity: .9; }
.contact-wrap > * { position: relative; z-index: 1; }
.contact-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1.2fr; gap: var(--space-6); align-items: start; }
.contact-copy { color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-copy p { margin-top: 0; }
.contact-highlights { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: 8px; }
.contact-highlights li { position: relative; padding-left: 18px; }
.contact-highlights li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }

.contact-form { width: 100%; background: rgba(15,15,18,0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; padding: var(--space-6); box-shadow: var(--shadow-hard); backdrop-filter: blur(6px) saturate(120%); }
.contact-form { position: relative; z-index: 2; }
.contact-form .form-row { display: grid; gap: 8px; margin-bottom: var(--space-4); }
.contact-form label { color: var(--muted); font-size: 14px; }
.contact-form input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 14px 16px; color: var(--text); border-radius: 9999px; outline: none; transition: border-color .2s ease, background .2s ease; }
.contact-form textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 14px 16px; color: var(--text); border-radius: 18px; min-height: 140px; resize: vertical; outline: none; transition: border-color .2s ease, background .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(138,92,255,0.6); background: rgba(255,255,255,0.08); }
.contact-form .form-actions { display: flex; gap: 10px; justify-content: flex-start; }
.contact-form .btn { border-radius: 9999px; }
.form-row { display: grid; gap: 8px; margin-bottom: var(--space-4); }
.form-row label { color: var(--muted); font-size: 14px; }
.form-row input, .form-row textarea {
	width: 100%;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	outline: none;
	transition: border-color .2s ease, background .2s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: rgba(138,92,255,0.6); background: rgba(255,255,255,0.06); }
.form-actions { display: flex; gap: var(--space-3); align-items: center; justify-content: flex-start; margin-top: var(--space-4); }

/* Footer */
.site-footer { position: relative; padding: var(--space-8) var(--space-4) var(--space-6); color: var(--muted); border-top: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); overflow: visible; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.footer-col { min-width: 0; }
.footer-title { color: var(--text); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; opacity: 0.75; margin: 0 0 var(--space-4); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.linklike { background: none; border: none; padding: 0; color: var(--text); opacity: 0.9; cursor: pointer; font: inherit; text-align: left; }
.linklike:hover { opacity: 1; }
.arrow-link { position: relative; padding-right: 22px; }
.arrow-link::after { content: "\2192"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0.9; }
.socials { display: flex; gap: 14px; align-items: center; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text); opacity: 0.9; transition: transform .15s ease, background .25s ease; }
.social:hover { transform: translateY(-1px); background: rgba(255,255,255,0.08); }
.footer-bottom { max-width: var(--maxw); margin: var(--space-7) auto 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer-legal { display: flex; gap: var(--space-4); }
.footer-legal a { color: var(--muted); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
.footer-legal a:hover { color: var(--text); opacity: 1; }
.footer-watermark { 
	position: absolute; 
	left: 50%; 
	transform: translateX(-50%); 
	bottom: 10px; 
	font-weight: 800; 
	font-size: clamp(100px, 14vw, 200px); 
	letter-spacing: -0.03em; 
	color: rgba(255,255,255,0.06); 
	-webkit-text-stroke: 1px rgba(255,255,255,0.08); 
	pointer-events: none; 
	user-select: none; 
	text-align: center; 
	opacity: 1; 
	white-space: nowrap; 
	z-index: 0; 
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

/* 404 Error Page Styles */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg);
    overflow: hidden;
}

.error-container {
    text-align: center;
    max-width: 800px;
    padding: var(--space-6);
    position: relative;
    z-index: 2;
}

.error-animation {
    margin-bottom: var(--space-6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.error-number {
    font-size: clamp(80px, 15vw, 150px);
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.8;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: var(--space-2);
}

.error-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.error-description {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.error-actions .btn {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.error-facts {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    backdrop-filter: blur(10px);
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.error-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.error-facts h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.error-facts p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Floating background shapes */
.error-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.1;
    filter: blur(1px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 30%;
    animation: float 5s ease-in-out infinite reverse;
}

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

/* Snake Game Styles */
.snake-game-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
}

.score {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

#snakeGame {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-3);
}

.game-controls {
    text-align: center;
}

.controls-info {
    margin-bottom: var(--space-3);
}

.controls-info p {
    margin: var(--space-1) 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.game-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    min-width: 80px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
	.footer-bottom { flex-direction: column; text-align: center; }
}

/* 404 Page Responsive */
@media (max-width: 768px) {
    .error-container {
        padding: var(--space-4);
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 100px;
    }
    
    .error-text {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.contact-grid { grid-template-columns: 1fr; gap: var(--space-5); }
	
	/* Better contact section spacing on tablets */
	.contact-wrap { 
		padding: var(--space-6) var(--space-4); 
		margin: 0 var(--space-3); 
	}
}
@media (max-width: 900px) {
	/* Show mobile toggle button */
	.nav-toggle { 
		display: inline-block !important; 
	}
	
	/* Ensure navbar is properly contained and sized */
	.site-header {
		padding: 0;
		width: calc(100% - 32px) !important;
		max-width: 95%;
		top: 12px;
	}
	
	.site-header.scrolled {
		width: calc(100% - 32px) !important;
		max-width: 95%;
		top: 8px;
	}
	
	.nav {
		padding: 12px 16px;
	}
	
	/* Mobile navigation overlay for better visibility */
	.nav.open::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.7);
		backdrop-filter: blur(8px);
		z-index: 49;
		opacity: 1;
		pointer-events: auto;
		transition: opacity 0.3s ease;
	}
	
	.nav-menu {
		position: fixed; 
		top: 72px; 
		right: var(--space-4); 
		left: var(--space-4);
		flex-direction: column; 
		gap: 12px; 
		padding: 18px;
		background: rgba(8, 8, 10, 0.95);
		backdrop-filter: saturate(180%) blur(20px);
		-webkit-backdrop-filter: saturate(180%) blur(20px);
		border: 1px solid rgba(255,255,255,0.12);
		border-radius: var(--radius-lg);
		box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
		transform-origin: top right; 
		transform: scale(0.98) translateY(-8px);
		opacity: 0; 
		pointer-events: none;
		transition: opacity .2s ease, transform .2s ease;
		z-index: 50;
	}
	
	.nav.open .nav-menu { 
		opacity: 1; 
		pointer-events: auto; 
		transform: scale(1) translateY(0); 
	}
	
	/* Make menu links full width and centered */
	.nav-menu li {
		width: 100%;
	}
	
	.nav-menu li a {
		display: block;
		width: 100%;
		text-align: center;
		padding: 12px 16px;
		border-radius: 8px;
		transition: background 0.2s ease;
	}
	
	.nav-menu li a:hover {
		background: rgba(255, 255, 255, 0.05);
	}
	
	/* Make contact button full width on mobile */
	.nav-menu .btn-primary {
		width: 100%;
		justify-content: center;
		margin-top: 8px;
	}
}

@media (max-width: 720px) {
	/* Smaller header on very small screens */
	.site-header {
		padding: 0;
		width: calc(100% - 24px) !important;
		max-width: 96%;
	}
	
	.site-header.scrolled {
		width: calc(100% - 24px) !important;
		max-width: 96%;
	}
	
	.nav-menu {
		top: 66px;
		right: 12px;
		left: 12px;
	}
	
	.hero { 
		padding-top: calc(70px + var(--space-5)); 
	}
	
	/* Better contact form on mobile */
	.contact-wrap { 
		margin: 0 var(--space-2); 
		padding: var(--space-5) var(--space-3); 
		border-radius: var(--radius-lg); 
	}
	
	.contact-form { 
		padding: var(--space-4); 
		border-radius: var(--radius-lg); 
	}
	
	.contact-grid { 
		gap: var(--space-4); 
	}
	
	/* Better button layout on mobile */
	.hero-cta .btn, 
	.form-actions .btn { 
		width: 100%; 
		justify-content: center; 
	}
	
	.form-actions { 
		flex-direction: column; 
		gap: var(--space-2); 
	}
}

/* ---------- Legal Pages Styles ---------- */
.legal-hero {
    min-height: 60vh;
    display: grid;
    align-items: center;
    position: relative;
    padding: calc(80px + var(--space-6)) var(--space-4) var(--space-4);
    text-align: center;
}

.legal-hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.legal-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
    margin: 0 0 var(--space-3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal-hero p {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--muted);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

.legal-content {
    padding: var(--space-6) var(--space-4) var(--space-8);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: var(--space-7) var(--space-6);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(4px);
}

.legal-section {
    margin-bottom: var(--space-6);
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-section p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 var(--space-3);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section p strong {
    color: var(--text);
    font-weight: 600;
}

.legal-section em {
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* Legal pages responsive */
@media (max-width: 900px) {
    .legal-hero {
        min-height: 50vh;
        padding: calc(80px + var(--space-4)) var(--space-3) var(--space-4);
    }
    
    .legal-container {
        padding: var(--space-5) var(--space-4);
        margin: 0 var(--space-2);
    }
    
    .legal-section h2 {
        font-size: clamp(20px, 4vw, 28px);
    }
}

@media (max-width: 640px) {
    .legal-hero {
        min-height: 40vh;
    }
    
    .legal-container {
        padding: var(--space-4) var(--space-3);
        border-radius: 18px;
    }
    
    .legal-section {
        margin-bottom: var(--space-4);
    }
    
    .legal-section p {
        font-size: 15px;
    }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.marquee-track { animation: none; }
}

/* ---------- Enhanced Mobile Styles (Tablet & Mobile) ---------- */
/* These styles are additive and won't affect desktop layouts */

@media (max-width: 900px) {
	/* Prevent horizontal scroll on all pages */
	html {
		overflow-x: hidden;
		max-width: 100vw;
	}
	
	body {
		overflow-x: hidden;
		max-width: 100vw;
	}
	
	main {
		overflow-x: hidden;
		max-width: 100vw;
	}
	
	/* Hero adjustments for homepage */
	.hero {
		min-height: 85vh;
		padding: calc(70px + var(--space-5)) var(--space-4) var(--space-5);
	}
	
	.hero h1 {
		font-size: clamp(32px, 6vw, 56px);
	}
	
	.hero-subline {
		font-size: clamp(18px, 3vw, 24px);
	}
	
	.hero-cta {
		flex-direction: column;
		width: 100%;
	}
	
	.hero-cta .btn {
		width: 100%;
		justify-content: center;
	}
	
	/* Work page hero */
	.work-hero {
		padding: calc(80px + var(--space-6)) var(--space-4) var(--space-6);
	}
	
	.work-hero h1 {
		font-size: clamp(36px, 6vw, 64px);
	}
	
	.work-lead {
		font-size: 16px;
	}
	
	/* Filter buttons */
	.filter-buttons {
		gap: 10px;
	}
	
	.filter-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	/* About page */
	.about-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-4);
	}
	
	.skills-categories {
		grid-template-columns: 1fr;
	}
	
	/* Sections padding */
	.section {
		padding: var(--space-6) var(--space-4);
	}
	
	.section-head h2 {
		font-size: clamp(32px, 5vw, 48px);
	}
}

@media (max-width: 640px) {
	/* Typography scale */
	h1 {
		font-size: clamp(28px, 7vw, 40px);
	}
	
	h2 {
		font-size: clamp(24px, 6vw, 36px);
	}
	
	h3 {
		font-size: clamp(18px, 4vw, 24px);
	}
	
	/* Hero mobile */
	.hero {
		min-height: 80vh;
		padding: calc(70px + var(--space-4)) var(--space-3) var(--space-4);
	}
	
	/* Homepage work section mobile fixes */
	.work.section {
		padding: var(--space-5) var(--space-3);
	}
	
	.work .project-row {
		margin: 0 auto var(--space-6);
		padding: var(--space-4);
	}
	
	.work .project-media,
	.work .project-media-mobile {
		border-radius: 18px;
	}
	
	.work .project-check {
		left: 12px;
		bottom: 12px;
		padding: 10px 48px 10px 16px;
	}
	
	.work-cta {
		padding: 0 var(--space-3);
	}
	
	.hero h1 {
		font-size: clamp(28px, 7vw, 42px);
	}
	
	.hero p {
		font-size: 15px;
	}
	
	.hero-cta {
		gap: var(--space-3);
	}
	
	.hero-cta .btn {
		padding: 12px 20px;
		font-size: 14px;
	}
	
	/* Brands strip mobile */
	.hero-brands h3 {
		font-size: 14px;
	}
	
	.brands-strip-track img {
		height: 40px;
	}
	
	/* Work page mobile */
	.work-hero {
		padding: calc(70px + var(--space-5)) var(--space-3) var(--space-5);
	}
	
	.work-hero h1 {
		font-size: clamp(32px, 8vw, 48px);
	}
	
	.work-filters-inner {
		padding: 0 var(--space-3);
	}
	
	.work-filters h3 {
		font-size: 16px;
		margin-bottom: var(--space-3);
	}
	
	.filter-buttons {
		gap: 8px;
	}
	
	.filter-btn {
		padding: 8px 14px;
		font-size: 12px;
	}
	
	/* Project cards */
	.work-page .projects-grid {
		padding: 0 var(--space-3);
		gap: var(--space-5);
	}
	
	.work-page .project-card {
		padding: var(--space-4);
		cursor: pointer;
	}
	
	.work-page .project-title {
		font-size: 20px;
	}
	
	.work-page .project-desc {
		font-size: 14px;
	}
	
	/* Hide button and description on mobile - make whole card clickable */
	.work-page .project-check {
		display: none !important;
	}
	
	.work-page .project-desc {
		display: none !important;
	}
	
	/* Services mobile */
	.services-grid {
		gap: var(--space-4);
	}
	
	.service-card {
		padding: var(--space-4);
	}
	
	.service-card h3 {
		font-size: 18px;
	}
	
	.service-art {
		height: 120px;
	}
	
	/* About page mobile */
	.about-hero {
		padding: calc(70px + var(--space-5)) var(--space-3) var(--space-5);
	}
	
	.about-hero h1 {
		font-size: clamp(28px, 7vw, 40px);
	}
	
	.about-stats {
		grid-template-columns: 1fr;
		gap: var(--space-3);
	}
	
	.stat-card {
		padding: var(--space-4);
	}
	
	/* Contact form mobile */
	.contact-wrap {
		padding: var(--space-5) var(--space-3);
		border-radius: 20px;
	}
	
	.contact-grid {
		gap: var(--space-5);
	}
	
	.form-row {
		flex-direction: column;
	}
	
	.form-group {
		margin-bottom: var(--space-3);
	}
	
	input, textarea, select {
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	/* Footer mobile */
	.footer-grid {
		gap: var(--space-4);
	}
	
	.footer-bottom {
		font-size: 13px;
		gap: var(--space-3);
	}
	
	/* Error page mobile */
	.error-page {
		padding: calc(70px + var(--space-4)) var(--space-3) var(--space-4);
	}
	
	.error-lottie lottie-player {
		width: 280px !important;
		height: 280px !important;
	}
	
	.error-title {
		font-size: clamp(32px, 8vw, 48px);
	}
	
	.what-happening h3 {
		font-size: 18px;
	}
	
	.what-happening p {
		font-size: 14px;
	}
	
	.error-actions {
		flex-direction: column;
		width: 100%;
	}
	
	.error-actions .btn {
		width: 100%;
	}
	
	/* Buttons mobile */
	.btn {
		min-height: 48px; /* Touch target */
		padding: 12px 18px;
	}
	
	.btn-pill {
		padding: 12px 56px 12px 20px;
	}
	
	/* Tags mobile */
	.tag {
		font-size: 11px;
		padding: 6px 10px;
	}
	
	/* Ensure all images are responsive */
	img {
		max-width: 100%;
		height: auto;
	}
	
	/* Prevent overflow on all containers */
	.hero-inner,
	.work-hero-inner,
	.about-hero-inner,
	.section > *,
	.project-card,
	.service-card {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	/* Extra small mobile adjustments */
	.hero {
		padding: calc(70px + var(--space-3)) var(--space-2) var(--space-3);
	}
	
	.section {
		padding: var(--space-5) var(--space-2);
	}
	
	.btn {
		font-size: 13px;
		padding: 10px 16px;
	}
	
	.filter-btn {
		font-size: 11px;
		padding: 6px 12px;
	}
	
	.project-tags {
		gap: 6px;
	}
	
	.tag {
		font-size: 10px;
		padding: 5px 8px;
	}
}


