/* Extracted from index.html */
body {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #240e57, #06b6d4);
	border-radius: 4px;
}

.glass-card {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.glass-card:hover {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: none;
	transform: none;
}

.glow-border {
	position: relative;
}

.glow-border::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	background: linear-gradient(135deg, #8b5cf6, #06b6d4, #8b5cf6);
	opacity: 0;
	z-index: -1;
	transition: opacity 0.4s ease;
	filter: blur(8px);
}

.glow-border:hover::before {
	opacity: 0.45;
}

/* allow glass-card to show the glow on hover (removed override) */

.glass-card::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(
		90deg,
		rgba(139, 92, 246, 0) 0%,
		rgba(139, 92, 246, 0.9) 45%,
		rgba(6, 182, 212, 0.9) 55%,
		rgba(139, 92, 246, 0) 100%
	);
	background-size: 320% 320%;
	filter: drop-shadow(0 0 8px rgba(139,92,246,0.35)) drop-shadow(0 0 6px rgba(6,182,212,0.22));
	opacity: 0;
	pointer-events: none;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.glass-card:hover::after {
	opacity: 0.23;
	animation: neon-sweep 2.2s linear infinite;
}

@keyframes neon-sweep {
	0% { background-position: 0% 0%; }
	25% { background-position: 100% 0%; }
	50% { background-position: 100% 100%; }
	75% { background-position: 0% 100%; }
	100% { background-position: 0% 0%; }
}

.neon-border {
  position: relative;
  border-radius: 15px; /* adjust as needed */
  padding: 20px;
  background: #d61313; /* element background */
  color: #fff;
  z-index: 0;
}

.neon-border::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  background-size: 300% 300%;
  animation: neonMove 6s linear infinite;
  z-index: -1;
}

@keyframes neonMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.gradient-text {
	background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 50%, #06b6d4 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-fadeInUp {
	animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slideIn {
	animation: slideIn 0.6s ease-out forwards;
}

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

.btn-primary {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-primary::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
	opacity: 1;
}

.btn-primary span {
	position: relative;
	z-index: 1;
}

.portfolio-item {
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
	transform: scale(1.02);
}

.portfolio-item:hover .portfolio-overlay {
	opacity: 1;
}

.nav-link {
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #8b5cf6, #06b6d4);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

.section-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

input:focus, textarea:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.noise-overlay {
	position: fixed;
	inset: 0;
	opacity: 0.03;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Background video for #home (landscape, covers area) */
.home-bg-video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-90deg);
	transform-origin: center;
	will-change: transform;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
	z-index: -20;
	pointer-events: none;
	background-color: #000;
}

/* Ensure the site logo anchor aligns left and doesn't center */
.site-logo {
	display: flex;
	align-items: center;
	margin-left: 0;
	margin-right: auto;
}
.site-logo img {
	display: block;
	height: 40px;
	max-height: 56px;
}

/* Slight scale when in portrait to emphasize landscape crop */
@media (orientation: portrait) {
	.home-bg-video {
		transform: translate(-50%, -50%) rotate(-90deg) scale(1.15);
	}
}

@view-transition { navigation: auto; }

/* Nudge hero background up on small screens */
@media (max-width: 768px) {
	.home-bg-video {
		top: 30%;
	}

	
}
