:root{
  /* Dark purple gradient palette */
  --bg-top: #2d1b69;   /* dark purple */
  --bg-mid: #4c1d95;   /* deeper purple */
  --bg-bottom: #1e1b4b;/* very dark purple */
  --card: #1e1b4b;     /* dark card background */
  --text: #e2e8f0;     /* soft lavender text */
  --muted: #a78bfa;    /* light purple muted */
  --accent: #c084fc;   /* bright purple accent */
  --glass: rgba(45,27,105,0.65);
  --max-width:1100px;
  --gap:1.25rem;
}
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Inter, system-ui, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 50%, var(--bg-top) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--bg-mid) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--bg-bottom) 0%, transparent 50%),
    var(--bg-bottom);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

.site-header {
  backdrop-filter: blur(6px);
  background: transparent;
  padding: 1rem 0;
}

.logo {
  margin: 1rem 0 0;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.hamburger {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}


/* Modal nav for mobile */
.modal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Video Modal Text Color */
#videoModal .modal-title {
  color: black;
}

/* Ad Modal Text Color */
#adModal .modal-title {
  color: black;
}

.modal-nav.active {
  opacity: 1;
  visibility: visible;
}

.modal-nav-content {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  max-width: 300px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-nav-content a {
  display: block;
  padding: 1rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-nav-content a:last-child {
  border-bottom: none;
}

.modal-nav-content a:hover {
  color: var(--accent);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
}

.hero-text h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.hero-text p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-row {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(15, 23, 36, 0.06);
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn.ghost:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.btn.ghost i {
  transition: transform 0.3s ease;
}

.btn.ghost:hover i {
  transform: rotate(90deg);
}

.skills-inline {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.skills-inline li {
  color: white;
}

.profile-image {
  height: 400px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  border: 6px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.5s forwards;
}

.about,
.services,
.work,
.contact {
  padding: 2.5rem 0;
}

.contact {
  background: linear-gradient(135deg, var(--card) 0%, rgba(76, 29, 149, 0.5) 100%);
  border-radius: 12px;
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 36, 0.03);
}

.socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--card);
  transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.socials a:hover {
  transform: scale(1.05);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

.socials a i {
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: center;
}

.about-image {
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  border: 6px solid rgba(255, 255, 255, 0.1);
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0.5rem 0;
}

.about-text h5 {
  margin-bottom: 1rem;
}

.about-text ul {
  list-style-type: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.tool-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: scale(1.05);
}

.tool-card .tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.tool-card {
  position: relative;
}

.tool-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

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

.card {
  background: linear-gradient(135deg, var(--card) 0%, rgba(76, 29, 149, 0.8) 100%);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  border: 1px solid rgba(15, 23, 36, 0.03);
  color: white;
  text-align: center;
  justify-self: center;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.3);
}

.card h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card h4 i {
  color: var(--accent);
}

.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.showcase {
  background: var(--card);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  border: 1px solid rgba(15, 23, 40, 0.03);
}

.showcase h4 {
  margin: 0 0 1rem 0;
  color: var(--text);
}

.web-gallery {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 0.5rem 0;
}

.web-gallery::-webkit-scrollbar {
  display: none;
}

.web-gallery {
  scrollbar-width: none;
}

.web-gallery img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.web-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}


.reel-gallery {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 0.5rem 0;
}

.reel-gallery::-webkit-scrollbar {
  display: none;
}

.reel-gallery {
  scrollbar-width: none;
}

.reel-gallery video {
  flex-shrink: 0;
  width: 150px;
  height: 266px; /* 9:16 aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#modalVideo {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.reel-gallery video:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

/* Wrapper around reel gallery to position scroll buttons */
.reel-gallery-wrapper{
  position: relative;
}

.scroll-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s ease, transform 0.12s ease;
}

.scroll-btn i{font-size:16px}

.scroll-btn:hover{background: rgba(0,0,0,0.6); transform: translateY(-50%) scale(1.04)}

.scroll-btn.left{left: 8px}
.scroll-btn.right{right: 8px}

/* Hide scroll buttons on very small screens where gallery wraps */
@media (max-width:480px){
  .scroll-btn{display:none}
}

.reel-gallery video:fullscreen {
  width: 1080px;
  height: 1920px;
  object-fit: contain;
}

.tile-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.ad-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ad-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(15, 23, 40, 0.04);
  text-align: center;
}


/* Typewriter cursor */
.cursor{display:inline-block;margin-left:.35rem;color:var(--accent);font-weight:600}
@keyframes blink {
  0%,49%{opacity:1}
  50%,100%{opacity:0}
}
.cursor{animation:blink 1s steps(1) infinite}

@keyframes fadeIn {
  from{opacity:0}
  to{opacity:1}
}

/* Fade-in animation for hero elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter text style */
#typewriter-name{color:var(--accent);font-weight:700;letter-spacing:0.02em}
#typewriter-titles{font-weight:700;letter-spacing:0.02em}

/* Section separators */
.section-separator{border:0;border-top:3px solid rgba(255,255,255,0.1);margin:2rem auto;width:80%;max-width:600px}


/* Responsive */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr;}
  .cards{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:768px){
  .hamburger{display:block;}
  .nav{display:none;}
  .gallery{grid-template-columns:1fr;}
  .container{padding:1rem;}
  .profile-image{height:auto;max-width:100%;}
  .logo{word-wrap:break-word;}
  .hero-text h2{font-size:1.5rem;}
  .tool-cards{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));}
  .reel-gallery{flex-wrap:wrap; gap:0.5rem;}
  .reel-gallery video {flex:1 1 120px; max-width:120px; height:213px;}
  .ad-gallery{grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:0.5rem;}
  .ad-gallery img{height:120px;}
  .web-gallery{flex-direction:column; gap:0.5rem; overflow-x:visible;}
  .web-gallery img {width:100%; height:120px;}
}

/* Project CTA base tweaks */
.project-ctas {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	margin-left: 12px;
	flex-wrap: wrap;
}
.project-btn {
	position: relative;
	overflow: visible;
	cursor: pointer;
	padding: 10px 18px;
	border-radius: 10px;
	border: 0;
	background: transparent;
	transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms;
	outline: none;
}

/* ============================
   Neon pulse base
   ============================ */
.btn--neon {
	color: #fff;
	background: rgba(10,10,10,0.95);
	padding: 10px 20px;
	border-radius: 999px;
	box-shadow: 0 8px 30px rgba(16,24,40,0.5), inset 0 -6px 20px rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.04);
	position: relative;
	overflow: visible;
	font-weight: 600;
	letter-spacing: .2px;
}
.btn--neon::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 999px;
	background: conic-gradient(from 0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
	filter: blur(10px);
	opacity: 0;
	transition: opacity 240ms, transform 420ms;
	pointer-events: none;
	z-index: -1;
	transform: scale(.98);
}
.btn--neon:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.28); }
.btn--neon:hover::before { opacity: 1; animation: neon-pulse 1.8s infinite ease-in-out; transform: scale(1.02); }
@keyframes neon-pulse {
	0% { transform: scale(.98); opacity: .95; }
	50% { transform: scale(1.04); opacity: .6; }
	100% { transform: scale(.98); opacity: .95; }
}
.btn--neon:active { transform: translateY(1px) scale(.995); }
.btn--neon:focus { box-shadow: 0 0 0 6px rgba(99,102,241,0.10); }

/* ============================
   Neon color variants
   ============================ */

/* Blue / Electric */
.btn--neon--blue {
	background: linear-gradient(90deg,#0ea5ff 0%, #6366f1 100%);
	text-shadow: 0 1px 0 rgba(0,0,0,0.25);
	box-shadow: 0 12px 28px rgba(99,102,241,0.18), 0 4px 12px rgba(14,165,255,0.12);
}
.btn--neon--blue::before {
	background: conic-gradient(from 180deg, rgba(14,165,255,0.85), rgba(99,102,241,0.75));
	filter: blur(14px);
}

/* Pink / Magenta */
.btn--neon--pink {
	background: linear-gradient(90deg,#ff6bab 0%, #ff8fa3 100%);
	text-shadow: 0 1px 0 rgba(0,0,0,0.25);
	box-shadow: 0 12px 28px rgba(255,107,171,0.14), 0 4px 12px rgba(255,143,163,0.10);
}
.btn--neon--pink::before {
	background: conic-gradient(from 200deg, rgba(255,107,171,0.86), rgba(255,143,163,0.72));
	filter: blur(14px);
}

/* Teal / Green */
.btn--neon--teal {
	background: linear-gradient(90deg,#2dd4bf 0%, #0ea5a4 100%);
	text-shadow: 0 1px 0 rgba(0,0,0,0.24);
	box-shadow: 0 12px 28px rgba(45,212,191,0.14), 0 4px 12px rgba(14,165,164,0.10);
}
.btn--neon--teal::before {
	background: conic-gradient(from 160deg, rgba(45,212,191,0.86), rgba(14,165,164,0.72));
	filter: blur(14px);
}

/* small text anchors inside buttons */
.project-ctas .btn-label { display:inline-block; pointer-events:none; }

/* reduce spacing on small screens */
@media (max-width: 640px) {
	.project-ctas { gap: 8px; margin-left: 8px; }
	.btn--neon { padding: 8px 14px; font-size: 14px; }
}
