/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ============================
   CSS Design Tokens (Light Theme)
   ============================ */
:root {
	/* Colors - Light Theme */
	--background: 0 0% 100%;
	--foreground: 220 13% 18%;

	--card: 220 14% 98%;
	--card-foreground: 220 13% 18%;

	--popover: 0 0% 100%;
	--popover-foreground: 220 13% 18%;

	--primary: 210 100% 50%;
	--primary-foreground: 0 0% 100%;

	--secondary: 220 14% 96%;
	--secondary-foreground: 220 13% 18%;

	--muted: 220 14% 96%;
	--muted-foreground: 220 9% 46%;

	--accent: 210 100% 50%;
	--accent-foreground: 0 0% 100%;

	--destructive: 0 84% 60%;
	--destructive-foreground: 0 0% 100%;

	--border: 220 13% 91%;
	--input: 220 13% 91%;
	--ring: 210 100% 50%;

	--radius: 0.75rem;

	/* Gradients */
	--gradient-primary: linear-gradient(135deg, hsl(210 100% 50%) 0%, hsl(260 100% 65%) 100%);
	--gradient-subtle: linear-gradient(180deg, hsl(220 14% 98%) 0%, hsl(220 14% 96%) 100%);
	--shadow-soft: 0 4px 20px -4px hsl(220 13% 18% / 0.08);
	--shadow-glow: 0 0 60px -10px hsl(210 100% 50% / 0.3);

	/* Particle colors */
	--particle-1: 210 100% 60%;
	--particle-2: 260 100% 65%;
	--particle-3: 180 100% 50%;
}

/* Dark Theme */
.dark {
	--background: 220 13% 10%;
	--foreground: 220 14% 96%;

	--card: 220 13% 13%;
	--card-foreground: 220 14% 96%;

	--popover: 220 13% 13%;
	--popover-foreground: 220 14% 96%;

	--primary: 210 100% 60%;
	--primary-foreground: 220 13% 10%;

	--secondary: 220 13% 18%;
	--secondary-foreground: 220 14% 96%;

	--muted: 220 13% 18%;
	--muted-foreground: 220 9% 60%;

	--accent: 210 100% 60%;
	--accent-foreground: 220 13% 10%;

	--destructive: 0 62% 50%;
	--destructive-foreground: 0 0% 100%;

	--border: 220 13% 20%;
	--input: 220 13% 20%;
	--ring: 210 100% 60%;

	--gradient-primary: linear-gradient(135deg, hsl(210 100% 60%) 0%, hsl(260 100% 70%) 100%);
	--gradient-subtle: linear-gradient(180deg, hsl(220 13% 13%) 0%, hsl(220 13% 10%) 100%);
	--shadow-soft: 0 4px 20px -4px hsl(0 0% 0% / 0.3);
	--shadow-glow: 0 0 60px -10px hsl(210 100% 60% / 0.4);

	--particle-1: 210 100% 65%;
	--particle-2: 260 100% 70%;
	--particle-3: 180 100% 55%;
}

/* ============================
   Base Styles
   ============================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	padding-top: 4rem;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

ul,
ol {
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* ============================
   Typography
   ============================ */
.text-display-xl {
	font-size: clamp(3rem, 10vw, 7rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.text-display-lg {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.text-display-md {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.text-display-sm {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.text-gradient {
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.text-foreground {
	color: hsl(var(--foreground));
}

.text-muted-foreground {
	color: hsl(var(--muted-foreground));
}

.text-primary {
	color: hsl(var(--primary));
}

.text-primary-foreground {
	color: hsl(var(--primary-foreground));
}

/* ============================
   Layout
   ============================ */
.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 8rem 0;
}

.section-alt {
	background-color: hsla(var(--card), 0.5);
}

.grid {
	display: grid;
	gap: 2rem;
}

.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.items-center {
	align-items: center;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.gap-1 {
	gap: 0.25rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

.gap-6 {
	gap: 1.5rem;
}

.gap-8 {
	gap: 2rem;
}

.gap-12 {
	gap: 3rem;
}

.flex-wrap {
	flex-wrap: wrap;
}

/* ============================
   Components
   ============================ */

/* Glass Effect */
.glass {
	background-color: hsla(var(--background), 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid hsla(var(--border), 0.5);
}

.glass-card {
	background-color: hsla(var(--card), 0.6);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	box-shadow: var(--shadow-soft);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 9999px;
	transition: all 0.3s ease;
	outline: none;
}

.btn:focus-visible {
	outline: 2px solid hsl(var(--ring));
	outline-offset: 2px;
}

.btn:disabled {
	pointer-events: none;
	opacity: 0.5;
}

.btn svg {
	pointer-events: none;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.btn-default {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.btn-default:hover {
	background-color: hsl(var(--primary) / 0.9);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-hero {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
}

.btn-hero:hover {
	background-color: hsl(var(--foreground) / 0.9);
	transform: scale(1.05);
}

.btn-hero-outline {
	background: transparent;
	color: hsl(var(--foreground));
	border: 2px solid hsl(var(--foreground) / 0.2);
}

.btn-hero-outline:hover {
	background-color: hsl(var(--foreground) / 0.05);
	border-color: hsl(var(--foreground) / 0.4);
}

.btn-outline {
	background: transparent;
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
	background-color: hsl(var(--secondary));
	color: hsl(var(--secondary-foreground));
}

.btn-secondary {
	background-color: hsl(var(--secondary));
	color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
	background-color: hsl(var(--secondary) / 0.8);
}

.btn-ghost {
	background: transparent;
	color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
	background-color: hsl(var(--secondary));
	color: hsl(var(--secondary-foreground));
}

.btn-gradient {
	background: var(--gradient-primary);
	color: hsl(var(--primary-foreground));
}

.btn-gradient:hover {
	opacity: 0.9;
}

.btn-icon {
	height: 2.5rem;
	width: 2.5rem;
	padding: 0;
}

.btn-sm {
	height: 2.25rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.btn-lg {
	height: 3.5rem;
	padding-left: 2rem;
	padding-right: 2rem;
	font-size: 1rem;
}

.btn-xl {
	height: 4rem;
	padding-left: 2.5rem;
	padding-right: 2.5rem;
	font-size: 1.125rem;
}

/* Tags */
.tag {
	display: inline-flex;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	border-radius: 9999px;
	background-color: hsl(var(--secondary));
	color: hsl(var(--muted-foreground));
}

.tag-primary {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.tag-sm {
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	border-radius: 0.375rem;
}

/* Badge */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border-radius: 9999px;
	background-color: hsl(var(--secondary));
	border: 1px solid hsl(var(--border));
	color: hsl(var(--muted-foreground));
}

.pulse-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background-color: #22c55e;
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Cards */
.card {
	background-color: hsl(var(--card));
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	overflow: hidden;
	transition: all 0.5s ease;
}

.card:hover {
	transform: scale(1.02);
}

.card-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.card:hover .card-image img {
	transform: scale(1.1);
}

.card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, hsl(var(--card)) 0%, transparent 100%);
}

.card-content {
	padding: 1.5rem;
}

/* ============================
   Header
   ============================ */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: hsla(var(--background), 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid hsla(var(--border), 0.5);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.logo-icon {
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-size: 1.125rem;
}

.logo-text {
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	transition: color 0.3s;
}

.logo:hover .logo-text {
	color: hsl(var(--primary));
}

.nav-desktop {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav-link {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
	border-radius: 9999px;
	transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
	color: hsl(var(--foreground));
	background-color: hsl(var(--secondary));
}

.footer-brand .logo-text {
	font-size: 2rem;
	font-weight: 600;
}

.footer-brand .logo-icon {
	width: 3rem;
	height: 3rem;
	font-size: 1.5rem;
	border-radius: 0.75rem;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mobile-menu-btn {
	display: none;
}

/* Mobile Menu */
.mobile-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: calc(100vh - 4rem);
	background-color: hsl(var(--background));
	border-bottom: 1px solid hsl(var(--border));
	padding: 2rem 1.5rem;
	overflow-y: auto;
}

.mobile-menu.active {
	display: flex;
	flex-direction: column;
}

.mobile-nav-link {
	display: block;
	padding: 1rem 0;
	font-size: 1.5rem;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
	border-bottom: 1px solid hsl(var(--border));
	transition: all 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
	color: hsl(var(--foreground));
	background-color: transparent;
	padding-left: 1rem;
}

.mobile-menu .btn-hero {
	margin-top: 2rem;
	width: 100%;
	justify-content: center;
	padding: 1rem;
	font-size: 1.125rem;
	border-radius: 9999px;
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	border: none;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.mobile-menu .btn-hero:hover {
	transform: scale(1.02);
	background-color: hsl(var(--foreground) / 0.9);
	padding-left: 1rem;
}

/* Hamburger Menu Icon */
.hamburger {
	width: 20px;
	height: 14px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: hsl(var(--foreground));
	border-radius: 2px;
	transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
	.nav-desktop {
		display: none;
	}

	.btn-desktop {
		display: none !important;
	}

	.mobile-menu-btn {
		display: flex;
	}
}

/* ============================
   Footer
   ============================ */
.footer {
	border-top: 1px solid hsl(var(--border));
	background-color: hsla(var(--card), 0.5);
	padding: 4rem 0 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
}

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

.footer-brand p {
	color: hsl(var(--muted-foreground));
	max-width: 20rem;
	line-height: 1.7;
}

.social-links {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.social-link {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background-color: hsl(var(--secondary));
	display: flex;
	align-items: center;
	justify-content: center;
	color: hsl(var(--muted-foreground));
	transition: all 0.3s;
}

.social-link:hover {
	color: hsl(var(--foreground));
	background-color: hsla(var(--secondary), 0.8);
}

.footer-links h4 {
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.footer-links ul {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-links a {
	color: hsl(var(--muted-foreground));
	transition: color 0.3s;
}

.footer-links a:hover {
	color: hsl(var(--foreground));
}

.footer-bottom {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid hsl(var(--border));
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
}

/* ============================
   Hero Section
   ============================ */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 8rem;
	padding-bottom: 4rem;
}

.hero-content .badge {
	margin-bottom: 2rem;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero-blob {
	position: absolute;
	border-radius: 9999px;
	filter: blur(48px);
	opacity: 0.1;
}

.hero-blob-1 {
	top: 25%;
	left: 25%;
	width: 24rem;
	height: 24rem;
	background-color: hsl(var(--primary));
	animation: float 6s ease-in-out infinite;
}

.hero-blob-2 {
	bottom: 25%;
	right: 25%;
	width: 20rem;
	height: 20rem;
	background-color: hsl(var(--accent));
	animation: float 6s ease-in-out infinite;
	animation-delay: -3s;
}

.hero-content {
	max-width: 64rem;
	margin: 0 auto;
	text-align: center;
}

.hero h1 {
	font-weight: 500;
	margin-bottom: 1.5rem;
	opacity: 0;
	animation: fadeInUp 0.8s ease forwards;
	animation-delay: 0.2s;
}

.hero-subtitle {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: hsl(var(--muted-foreground));
	max-width: 42rem;
	margin: 0 auto 3rem;
	font-weight: 400;
	opacity: 0;
	animation: fadeInUp 0.8s ease forwards;
	animation-delay: 0.4s;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 4rem;
	opacity: 0;
	animation: fadeInUp 0.8s ease forwards;
	animation-delay: 0.6s;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	opacity: 0;
	animation: fadeInUp 0.8s ease forwards;
	animation-delay: 0.8s;
}

@media (max-width: 768px) {
	.hero-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

.stat-item {
	text-align: center;
}

.stat-value {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 500;
}

.stat-label {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-top: 0.25rem;
}

/* ============================
   Skills Section
   ============================ */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 1024px) {
	.skills-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.skill-card {
	padding: 2rem;
	transition: all 0.3s ease;
}

.skill-card:hover {
	box-shadow: var(--shadow-glow);
}

.skill-icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
	transform: scale(1.1);
}

.skill-icon svg {
	width: 1.75rem;
	height: 1.75rem;
	color: white;
}

.skill-card h3 {
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.skill-card p {
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

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

/* ============================
   Services Section
   ============================ */
.services-list {
	border-top: 1px solid hsl(var(--border));
}

.service-item {
	padding: 2.5rem 0;
	border-bottom: 1px solid hsl(var(--border));
	cursor: pointer;
	transition: background-color 0.3s;
	position: relative;
}

.service-item:hover {
	background-color: hsla(var(--secondary), 0.3);
}

.service-inner {
	display: grid;
	grid-template-columns: 3rem 16rem 1fr auto;
	gap: 3rem;
	align-items: center;
}

@media (max-width: 1024px) {
	.service-inner {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.service-number {
	font-size: 0.875rem;
	font-family: monospace;
	color: hsl(var(--muted-foreground));
}

.service-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	transition: color 0.3s;
}

.service-item:hover .service-title {
	color: hsl(var(--primary));
}

.service-desc {
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
}

.service-features {
	display: none;
}

@media (min-width: 1280px) {
	.service-features {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		max-width: 20rem;
	}
}

.service-arrow {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%) translateX(1rem);
	opacity: 0;
	transition: all 0.3s;
	color: hsl(var(--primary));
}

.service-item:hover .service-arrow {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* ============================
   Portfolio Section
   ============================ */
.section-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	margin-bottom: 4rem;
}

.section-header-content {
	max-width: 42rem;
}

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

.section-header p {
	font-size: 1.25rem;
	color: hsl(var(--muted-foreground));
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

@media (max-width: 1024px) {
	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.portfolio-card {
	display: block;
	transition: transform 0.5s ease;
}

.portfolio-card:hover {
	transform: scale(1.02);
}

.portfolio-image {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 1rem 1rem 0 0;
}

.portfolio-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.portfolio-card:hover .portfolio-image img {
	transform: scale(1.1);
}

.portfolio-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, hsl(var(--card)) 0%, transparent 100%);
	z-index: 2;
}

.portfolio-color-overlay {
	position: absolute;
	inset: 0;
	opacity: 0.2;
	z-index: 1;
}

.portfolio-hover-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
	background-color: hsla(var(--background), 0.6);
	backdrop-filter: blur(4px);
}

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

.view-icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	background-color: hsl(var(--foreground));
	display: flex;
	align-items: center;
	justify-content: center;
}

.view-icon svg {
	color: hsl(var(--background));
	width: 1.5rem;
	height: 1.5rem;
}

.portfolio-content {
	padding: 1.5rem;
	background-color: hsla(var(--card), 0.6);
	backdrop-filter: blur(20px);
	border-radius: 0 0 1rem 1rem;
	border: 1px solid hsl(var(--border));
	border-top: 0;
}

.portfolio-category {
	font-size: 0.875rem;
	color: hsl(var(--primary));
	font-weight: 500;
}

.portfolio-title {
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0.5rem 0 0.75rem;
	transition: color 0.3s;
}

.portfolio-card:hover .portfolio-title {
	color: hsl(var(--primary));
}

.portfolio-desc {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.6;
	margin-bottom: 1rem;
}

/* ============================
   Blog Section
   ============================ */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

@media (max-width: 1024px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.blog-card {
	display: block;
	height: 100%;
}

.blog-card article {
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.5s ease;
}

.blog-card:hover article {
	transform: scale(1.02);
}

.blog-image {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: 1rem 1rem 0 0;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.blog-card:hover .blog-image img {
	transform: scale(1.1);
}

.blog-content {
	flex: 1;
	padding: 1.5rem;
	background-color: hsla(var(--card), 0.6);
	backdrop-filter: blur(20px);
	border-radius: 0 0 1rem 1rem;
	border: 1px solid hsl(var(--border));
	border-top: 0;
	display: flex;
	flex-direction: column;
}

.blog-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
}

.blog-meta svg {
	width: 1rem;
	height: 1rem;
}

.blog-title {
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
	transition: color 0.3s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card:hover .blog-title {
	color: hsl(var(--primary));
}

.blog-excerpt {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.read-more {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--primary));
	margin-top: 1rem;
	opacity: 0;
	transition: opacity 0.3s;
}

.blog-card:hover .read-more {
	opacity: 1;
}

/* ============================
   CTA Section
   ============================ */
.cta-section {
	position: relative;
	overflow: hidden;
	background-color: hsl(var(--secondary));
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
}

.cta-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	height: 600px;
	background-color: hsla(var(--primary), 0.05);
	border-radius: 9999px;
	filter: blur(60px);
}

.cta-content {
	position: relative;
	z-index: 1;
	max-width: 56rem;
	margin: 0 auto;
	text-align: center;
}

.cta-badge {
	margin-bottom: 2rem;
}

.cta-badge svg {
	color: hsl(var(--primary));
}

.cta-heading {
	margin-bottom: 1.5rem;
}

.cta-desc {
	font-size: 1.25rem;
	color: hsl(var(--muted-foreground));
	max-width: 42rem;
	margin: 0 auto 3rem;
	line-height: 1.7;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 4rem;
}

.trust-indicators {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem 4rem;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.avatars {
	display: flex;
}

.avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: var(--gradient-primary);
	border: 2px solid hsl(var(--background));
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.875rem;
	font-weight: 500;
	margin-left: -0.5rem;
}

.avatar:first-child {
	margin-left: 0;
}

.trust-text {
	text-align: left;
}

.trust-value {
	font-size: 0.875rem;
	font-weight: 500;
}

.trust-label {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
}

.stat-trust {
	text-align: center;
}

.stat-trust .trust-value {
	font-size: 1.875rem;
	font-weight: 500;
}

/* ============================
   Particles
   ============================ */
.particles {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.particle {
	position: absolute;
	border-radius: 9999px;
	opacity: 0.4;
	animation: particle 20s linear infinite;
}

.particle-1 {
	background-color: hsl(var(--particle-1));
}

.particle-2 {
	background-color: hsl(var(--particle-2));
}

.particle-3 {
	background-color: hsl(var(--particle-3));
}

/* ============================
   Page Header (Portfolio/Blog)
   ============================ */
.page-header {
	padding-top: 6rem;
	padding-bottom: 3rem;
}

.page-header h1 {
	margin-bottom: 1.5rem;
}

.page-header p {
	font-size: 1.25rem;
	color: hsl(var(--muted-foreground));
	max-width: 48rem;
	line-height: 1.7;
}

/* Filter */
.filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 3rem;
}

.filter-btn {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
	background-color: hsl(var(--secondary));
	border-radius: 9999px;
	transition: all 0.3s;
}

.filter-btn:hover {
	color: hsl(var(--foreground));
	background-color: hsla(var(--secondary), 0.8);
}

.filter-btn.active {
	color: hsl(var(--background));
	background-color: hsl(var(--foreground));
}

/* Featured Blog Card */
.featured-blog {
	display: block;
	margin-bottom: 4rem;
}

/* ============================
   Detail Pages
   ============================ */
.detail-hero {
	position: relative;
	height: 60vh;
	overflow: hidden;
}

.detail-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.detail-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, hsl(var(--background)) 0%, hsla(var(--background), 0.5) 50%, transparent 100%);
}

.detail-content {
	position: relative;
	z-index: 1;
	margin-top: 2rem;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
	margin-bottom: 2rem;
	transition: color 0.3s;
}

.back-link:hover {
	color: hsl(var(--foreground));
}

.detail-header {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 3rem;
	margin-bottom: 4rem;
}

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

.detail-info {
	height: fit-content;
}

.info-item {
	margin-bottom: 1.5rem;
}

.info-label {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.25rem;
}

.info-value {
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.info-value svg {
	width: 1rem;
	height: 1rem;
}

.detail-buttons {
	display: flex;
	gap: 0.75rem;
	padding-top: 1rem;
}

.detail-section {
	margin-bottom: 4rem;
}

.detail-section h2 {
	margin-bottom: 1.5rem;
}

.detail-text {
	color: hsl(var(--muted-foreground));
	line-height: 1.8;
	white-space: pre-line;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tech-tag {
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	background-color: hsl(var(--secondary));
	font-size: 0.875rem;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

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

.gallery-item {
	aspect-ratio: 16/9;
	border-radius: 1rem;
	overflow: hidden;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* Share buttons */
.share-section {
	padding-top: 1rem;
	border-top: 1px solid hsl(var(--border));
}

.share-label {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.75rem;
}

.share-buttons {
	display: flex;
	gap: 0.75rem;
}

/* Blog content */
.blog-article-content {
	max-width: 48rem;
}

.blog-section {
	margin-bottom: 3rem;
}

.blog-section h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 1rem;
}

.blog-section p {
	color: hsl(var(--muted-foreground));
	font-size: 1.125rem;
	line-height: 1.8;
}

/* Featured Blog Card */
.featured-blog {
	margin-bottom: 3rem;
}

.featured-blog article {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	transition: transform 0.5s ease;
}

@media (max-width: 768px) {
	.featured-blog article {
		grid-template-columns: 1fr;
	}
}

.featured-blog:hover article {
	transform: scale(1.01);
}

.featured-blog .blog-image {
	border-radius: 1rem 0 0 1rem;
}

@media (max-width: 768px) {
	.featured-blog .blog-image {
		border-radius: 1rem 1rem 0 0;
	}
}

.featured-blog .blog-content {
	border-radius: 0 1rem 1rem 0;
	border-left: 0;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 768px) {
	.featured-blog .blog-content {
		border-radius: 0 0 1rem 1rem;
		border-top: 0;
		border-left: 1px solid hsla(var(--border), 0.3);
	}
}

.featured-blog .blog-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.featured-blog .read-more {
	opacity: 1;
}

/* 404 Page */
.not-found {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.not-found h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: 1rem;
}

.not-found p {
	color: hsl(var(--muted-foreground));
	margin-bottom: 2rem;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-20px) rotate(2deg);
	}
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

@keyframes bounce {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(8px);
	}
}

@keyframes particle {
	0% {
		transform: translateY(100vh) rotate(0deg);
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		transform: translateY(-100vh) rotate(720deg);
		opacity: 0;
	}
}

/* ============================
   Utilities
   ============================ */
.hidden {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.relative {
	position: relative;
}

.z-10 {
	z-index: 10;
}

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

.text-left {
	text-align: left;
}

.font-medium {
	font-weight: 500;
}

.font-mono {
	font-family: monospace;
}

.max-w-3xl {
	max-width: 48rem;
}

.max-w-4xl {
	max-width: 56rem;
}

.max-w-5xl {
	max-width: 64rem;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mb-8 {
	margin-bottom: 2rem;
}

.mb-12 {
	margin-bottom: 3rem;
}

.mb-16 {
	margin-bottom: 4rem;
}

.mb-20 {
	margin-bottom: 5rem;
}

.mt-4 {
	margin-top: 1rem;
}

.mt-16 {
	margin-top: 4rem;
}

.p-6 {
	padding: 1.5rem;
}

.p-8 {
	padding: 2rem;
}

.pt-4 {
	padding-top: 1rem;
}

.py-10 {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.w-full {
	width: 100%;
}

.rounded-full {
	border-radius: 9999px;
}

.rounded-xl {
	border-radius: 0.75rem;
}

.rounded-2xl {
	border-radius: 1rem;
}

.opacity-0 {
	opacity: 0;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Color Overlays */
.color-blue {
	background: linear-gradient(to bottom right, hsla(210, 100%, 50%, 0.2), hsla(280, 100%, 50%, 0.2));
}

.color-green {
	background: linear-gradient(to bottom right, hsla(160, 100%, 40%, 0.2), hsla(170, 100%, 50%, 0.2));
}

.color-orange {
	background: linear-gradient(to bottom right, hsla(30, 100%, 50%, 0.2), hsla(0, 100%, 50%, 0.2));
}

/* ============================
   Pagination
   ============================ */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
	margin-bottom: 2rem;
}

.pagination-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.5rem;
	color: hsl(var(--muted-foreground));
	background-color: transparent;
	border: 1px solid hsl(var(--border));
	transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
	background-color: hsl(var(--secondary));
	color: hsl(var(--foreground));
	border-color: hsl(var(--secondary));
}

.pagination-btn.active {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-dots {
	color: hsl(var(--muted-foreground));
	padding: 0 0.25rem;
}