/*
  Faysal Mahamud — Portfolio Theme
  Accent: Neon Green (#39FF14) to match gig banner
*/
:root{
  --bg: #000000;
  --bg-2:#0a0a0a;
  --surface:#111111;
  --text:#e6edf3;
  --muted:#8b949e;
  --accent:#00ff87;
  --card:#111111;
  --card-2:#1a1a1a;
  --ring: rgba(0,255,135,.25);
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}
*{box-sizing:border-box; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale}
html{scroll-behavior:smooth; scroll-padding-top:76px}
body{
  margin:0; font-family: 'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,cantarell,sans-serif;
  color:var(--text); 
  background: radial-gradient(circle at 10% 20%, rgba(0, 255, 135, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,255,135,.15);
  font-size:16px;
  line-height:1.6;
}
body.no-scroll{overflow:hidden; height:100vh}

/* Performance optimization for mobile */
@media (max-width: 768px){
  body{
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    font-size:15px; 
    line-height:1.65;
  }
  
  /* Reduce transitions on mobile for better performance */
  .card, .work-card, .contact-card, .stat-item, .tags li{
    transition: all 0.2s ease;
  }
  
  .hero-badges li{
    animation: none;
  }
  
  /* Disable complex shadows on mobile */
  .btn.primary{
    box-shadow: 0 4px 12px var(--ring);
  }
  
  /* Disable backdrop blur on mobile for better performance */
  .site-header{
    backdrop-filter: none;
    background: rgba(0,0,0,.95);
  }
  
  .site-nav{
    backdrop-filter: none;
  }
  
  /* Disable blur effects */
  .hero::before{
    filter: none;
    opacity: .4;
  }
}
@media (max-width: 480px){
  body{font-size:14.5px; line-height:1.7}
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92%); margin-inline:auto}
.section{padding:80px 0}
.section{scroll-margin-top: 76px}
.two-col{display:grid; gap:36px; grid-template-columns: 1.2fr .8fr}
@media (max-width: 900px){ .two-col{grid-template-columns:1fr; gap:32px} }
@media (max-width: 620px){ .two-col{gap:28px} }

/* Header */
.site-header{position:sticky; top:0; z-index:50; backdrop-filter: blur(12px); background: rgba(0,0,0,.85); border-bottom: 1px solid rgba(0,255,135,.08); transition: all 0.4s ease}
.site-header{display:flex; align-items:center; justify-content:space-between; padding:12px 4%}
.brand{display:flex; align-items:center; gap:10px; font-weight:600; transition: all .3s ease}
.brand-logo{height:48px; width:auto; transition: all .3s ease; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3))}
.brand-text{opacity:.9; font-size:18px; font-weight:700; color:var(--text); letter-spacing:0.5px}
.brand:hover .brand-logo{transform: scale(1.05); filter: drop-shadow(0 3px 12px rgba(57,255,20,.3))}
.brand:hover .brand-text{color:var(--accent)}
.site-nav{display:flex; align-items:center; gap:18px}
.site-nav a{color:var(--muted); position:relative; padding:8px 2px}
.site-nav a::after{content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition: transform .25s ease}
.site-nav a:hover::after{transform:scaleX(1)}
.site-nav a:hover{color:var(--text)}
.nav-toggle{display:none; font-size:24px; background:transparent; color:var(--text); border:0}
@media (max-width: 860px){
  .nav-toggle{display:block; cursor:pointer; padding:8px; transition:transform 0.3s ease}
  .nav-toggle:active{transform:scale(0.95)}
  .site-nav{position:fixed; inset:60px 12px auto; right:12px; display:none; flex-direction:column; padding:18px; background:linear-gradient(135deg, rgba(17,24,39,0.98), rgba(17,24,39,0.95)); border:1px solid rgba(0,255,135,.15); border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(0,255,135,.1); backdrop-filter:blur(12px)}
  .site-nav.open{display:flex; animation:slideInDown 0.3s ease-out}
  /* Mobile-friendly larger tap targets */
  .site-nav{gap:8px}
  .site-nav a{width:100%; padding:14px 16px; font-size:16px; border-radius:10px; font-weight:500; transition:all 0.3s ease}
  .site-nav a:hover, .site-nav a:active{background:rgba(0,255,135,.1); color:var(--accent); transform:translateX(4px)}
  /* Smaller logo on mobile */
  .brand-logo{height:42px}
  .brand-text{font-size:16px}
  /* Header padding adjustment */
  .site-header{padding:10px 4%}
}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 18px; border-radius:8px; border:1px solid rgba(255,255,255,.08); color:var(--text); transition: all .3s cubic-bezier(0.16, 1, 0.3, 1); background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); position: relative; overflow: hidden; cursor:pointer}
.btn::before{content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(255,255,255,.1), transparent); transform: translateX(-100%); transition: transform 0.6s ease}
.btn:hover::before{transform: translateX(100%)}
.btn.small{padding:8px 12px; font-size:14px}
.btn:hover{transform:translateY(-3px) scale(1.03); border-color:rgba(255,255,255,.3); box-shadow: 0 4px 12px rgba(0,0,0,.2)}
.btn:active{transform:translateY(-1px) scale(0.98)}
.btn.primary{background:linear-gradient(135deg, var(--accent), #96ff82); background-size: 200% 100%; color:#0b0f14; font-weight:700; border-color: transparent; box-shadow:0 12px 30px var(--ring)}
.btn.primary:hover{filter:brightness(1.15); box-shadow:0 8px 20px rgba(57,255,20,.3), 0 0 15px rgba(57,255,20,.15); transform: translateY(-3px) scale(1.05)}
.btn.primary:active{transform:translateY(-1px) scale(1.02)}

@media (min-width: 769px){
  .btn.primary{animation: btnGradientShift 3s ease infinite}
}

@media (max-width: 620px){
  .btn{padding:13px 20px; font-size:15px; min-height:48px; border-radius:10px}
  .btn.small{padding:10px 16px; font-size:14px; min-height:44px}
}

@keyframes btnGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (min-width: 769px){
  .btn.primary.pulse{animation: pulse 2.2s ease-in-out infinite}
}
@media (max-width: 768px){
  .btn.primary.pulse{animation: none}
}
.btn.secondary{background:var(--card-2)}
.btn.ghost{background:transparent}
.btn.cta{background:transparent; border-color: rgba(57,255,20,.4); color:#caffc2}
.btn.cta:hover{background:rgba(57,255,20,.1)}

/* Hero */
.hero{position:relative; display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap:24px; padding:60px 4% 40px}
.hero h1{font-size:clamp(32px, 4.5vw, 52px); line-height:1.1; margin:0 0 12px}
.accent{color:var(--accent)}
.hero p{margin:8px 0 22px; color:var(--muted)}
.hero-description{
  background: linear-gradient(90deg, 
    #c7d2de,
    #39ff14,
    #00d9ff,
    #ff3366,
    #ffaa00,
    #c7d2de
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 15px;
  line-height: 1.6;
}
@media (min-width: 769px){
  .hero-description{animation: colorShift 8s ease-in-out infinite}
}
@media (max-width: 768px){
  .hero-description{background-position: 50% 50%}
}

@keyframes colorShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.hero-badges{display:flex; gap:10px; list-style:none; padding:0; margin:18px 0 0}
.hero-badges li{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18,26,41,0.8), rgba(18,26,41,0.95));
  border: 1px solid rgba(255,255,255,.08);
  color: #e6edf3;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-badges li i{
  font-size: 16px;
  transition: transform 0.3s ease;
}
.hero-badges li::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,135,.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-badges li:hover{
  background: linear-gradient(135deg, rgba(26,35,50,0.9), rgba(26,35,50,1));
  border-color: rgba(0,255,135,.4);
  color: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,255,135,.15), 0 4px 12px rgba(0,0,0,.3);
}
.hero-badges li:hover::before{opacity: 1}
.hero-badges li:hover i{
  transform: scale(1.15) rotate(5deg);
}
.hero-media{justify-self:center}
.hero-media .photo{
  width:clamp(220px, 60vw, 380px); 
  height:clamp(220px, 60vw, 380px); 
  object-fit:cover; 
  border-radius:50%; 
  border:4px solid rgba(57,255,20,.25);
  box-shadow: 0 0 40px rgba(57,255,20,.3), 0 30px 60px rgba(0,0,0,.4);
  background: linear-gradient(135deg, #1a2332 0%, #0f1720 100%);
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), border-color .3s ease, box-shadow .3s ease;
  cursor:pointer;
}
@media (min-width: 769px){
  .hero-media .photo{animation: heroFloat 6s ease-in-out infinite}
}
.hero-media .photo:hover{
  transform: scale(1.08);
  border-color: rgba(57,255,20,.6);
  box-shadow: 0 0 60px rgba(57,255,20,.5), 0 30px 80px rgba(0,0,0,.5), inset 0 0 30px rgba(57,255,20,.1);
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}
/* subtle animated glow behind hero */
.hero::before{
  content:""; position:absolute; inset:auto 0 0 0; height:280px; transform: translateY(-40%);
  background: radial-gradient(360px 200px at 70% 30%, rgba(57,255,20,.15), transparent 60%);
  pointer-events:none; filter: blur(24px); opacity:.7;
}
@media (min-width: 769px){
  .hero::before{animation: heroGlow 8s ease-in-out infinite}
}

@keyframes heroGlow {
  0%, 100% {
    opacity: .6;
  }
  50% {
    opacity: .85;
  }
}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr; padding:50px 5% 32px; gap:32px}
  .hero-media{order:-1}
  .hero h1{font-size:clamp(28px, 8vw, 42px); line-height:1.2}
  .hero p{font-size:15px; line-height:1.65; margin:12px 0 24px}
  .hero .hero-actions{justify-content:center; gap:14px}
  .hero .hero-actions .btn{padding:14px 24px; font-size:15px; font-weight:600}
  .hero .hero-badges{justify-content:center; flex-wrap:wrap; gap:8px}
  .hero .hero-badges li{padding:10px 16px; font-size:14px}
  .hero .hero-content{justify-self:center; text-align:center; max-width:100%}
  .hero-media .photo{width:clamp(240px, 70vw, 320px); height:clamp(240px, 70vw, 320px)}
}

/* Section spacing tweaks for small devices */
@media (max-width: 700px){ 
  .section{padding:60px 5%}
  .section h2{font-size:28px; margin-bottom:20px}
  .section p{font-size:15px; line-height:1.7}
  .container{width:min(1100px, 94%)}
  .quick-stats{grid-template-columns: 1fr; gap: 14px}
  .stat-item{padding:24px 18px}
  .quick-stats .num{font-size:42px}
}
@media (max-width: 420px){ 
  .section{padding:50px 5%}
  .section h2{font-size:24px}
}

/* About */
.quick-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat-item{
  position: relative;
  padding: 20px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13,17,23,0.8), rgba(22,27,34,0.95));
  border: 2px solid rgba(255,255,255,.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.stat-item::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-item::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,135,.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-item:hover::before{opacity: 1}
.stat-item:hover::after{opacity: 1}
.stat-item:hover{
  background: linear-gradient(135deg, rgba(22,27,34,0.95), rgba(22,27,34,1));
  border-color: rgba(0,255,135,.3);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,255,135,.15), 0 6px 15px rgba(0,0,0,.3);
}
.quick-stats .num{
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #00d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  line-height: 1;
}
.stat-item:hover .num{
  transform: scale(1.15);
  filter: brightness(1.2);
}
.stat-label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.stat-item:hover .stat-label{
  color: var(--text);
}
.about-card{background:var(--card); border:1px solid rgba(255,255,255,.06); padding:18px; border-radius:8px; transition: all 0.4s ease}
.about-card:hover{transform: translateY(-4px); border-color: rgba(57,255,20,.2); box-shadow: 0 6px 15px rgba(57,255,20,.06)}
.checklist{margin:0 0 16px; padding-left:18px}
.checklist li{margin:6px 0; transition: all 0.3s ease; position: relative; padding-left:8px}
.checklist li::before{content:''; position:absolute; left:-12px; top:50%; transform:translateY(-50%); width:6px; height:6px; border-radius:50%; background:var(--accent); opacity:0; transition: all 0.3s ease}
.checklist li:hover{transform:translateX(8px); color:var(--accent)}
.checklist li:hover::before{opacity:1}

@media (max-width: 700px){
  .about-card{padding:22px; border-radius:12px}
  .about-card h3{font-size:20px; margin-bottom:14px}
  .checklist{padding-left:20px; margin-bottom:20px}
  .checklist li{font-size:15px; line-height:1.7; margin:10px 0}
}

/* Cards */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.card{background:var(--card); border:1px solid rgba(255,255,255,.06); padding:18px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.15); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden}
.card::before{content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(57,255,20,.05), transparent); transition: left 0.6s ease}
.card h3{margin:0 0 6px; transition: color 0.3s ease}
.card p{margin:0; color:var(--muted)}
.card:hover{transform: translateY(-8px); box-shadow: 0 8px 20px rgba(0,0,0,.2), 0 0 12px rgba(57,255,20,.1); border-color: rgba(57,255,20,.3)}
.card:hover::before{left: 100%}
.card:hover h3{color: var(--accent)}
@media (max-width: 900px){ .cards{grid-template-columns:1fr 1fr; gap:14px} }
@media (max-width: 620px){ 
  .cards{grid-template-columns:1fr; gap:16px}
  .card{padding:22px; border-radius:12px}
  .card h3{font-size:18px; margin-bottom:8px}
  .card p{font-size:14px; line-height:1.6}
}

/* Skills */
.tags{display:flex; flex-wrap:wrap; gap:10px; list-style:none; padding:0}
.tags li{padding:8px 12px; border-radius:999px; background:#0f1730; border:1px solid rgba(255,255,255,.06); display:inline-flex; align-items:center; gap:8px; transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); cursor: default; position: relative}
@media (max-width: 620px){
  .tags{gap:8px}
  .tags li{padding:10px 14px; font-size:14px}
  .tags li i{font-size:18px}
}
.tags li::after{content: ''; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(135deg, rgba(57,255,20,.2), transparent); opacity: 0; transition: opacity 0.3s ease}
.tags li:hover{transform: translateY(-4px) scale(1.05); background: rgba(57,255,20,.1); border-color: rgba(57,255,20,.4); box-shadow: 0 10px 20px rgba(57,255,20,.2); color: var(--accent)}
.tags li:hover::after{opacity: 1}
.tags li i{font-size:18px; line-height:1; display:inline-block}
.tags li i.devicon-nextjs-original{filter: invert(1) brightness(1.2)}

/* Work */
.grid{display:grid; gap:24px}
.work-grid{grid-template-columns:repeat(3,1fr)}
.work-card{
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(17,24,39,0.9), rgba(17,24,39,0.5));
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #96ff82);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover::before{opacity: 1}
.work-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57,255,20,.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.work-card img{
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  border-radius: 6px 6px 0 0;
}
.work-card:hover img{
  transform: scale(1.08);
  filter: brightness(1.15) saturate(1.1);
}
.work-card:hover{
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 30px rgba(57,255,20,.25), inset 0 1px 0 rgba(57,255,20,.1);
  border-color: rgba(57,255,20,.5);
}
.work-card:hover::after{opacity: 1}
.work-meta{
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85) 20%, rgba(0,0,0,.95));
  backdrop-filter: blur(8px);
}
.work-meta h3{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
  transition: color 0.3s ease;
}
.work-meta p{
  font-size: 13px;
  margin: 0;
  color: var(--accent);
  font-weight: 500;
}
.work-card:hover .work-meta h3{
  color: var(--accent);
}
@media (max-width: 900px){ .work-grid{grid-template-columns:1fr 1fr; gap:18px} }
@media (max-width: 620px){ 
  .work-grid{grid-template-columns:1fr; gap:20px}
  .work-card{border-radius:12px}
  .work-meta{padding:18px}
  .work-meta h3{font-size:15px}
}

/* Contact */
.contact-cards{display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; margin:20px 0}
.contact-card{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(17,24,39,0.8), rgba(17,24,39,0.4));
  box-shadow: 0 4px 12px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.contact-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,.08), transparent);
  transition: left 0.6s ease;
}
.contact-card:hover::before{left: 100%}
.contact-card:hover{
  transform: translateY(-6px);
  border-color: rgba(57,255,20,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 20px rgba(57,255,20,.15), inset 0 1px 0 rgba(57,255,20,.1);
  background: linear-gradient(135deg, rgba(17,24,39,0.95), rgba(17,24,39,0.6));
}
.contact-icon{
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(57,255,20,.15), rgba(57,255,20,.05));
  border: 1px solid rgba(57,255,20,.2);
  font-size: 20px;
  color: var(--accent);
  transition: all 0.3s ease;
}
.contact-card:hover .contact-icon{
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(57,255,20,.25), rgba(57,255,20,.1));
  border-color: rgba(57,255,20,.4);
  box-shadow: 0 4px 12px rgba(57,255,20,.2);
}
.contact-info{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.contact-info span{
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-info strong{
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}
.contact-card:hover .contact-info strong{
  color: var(--accent);
}
.contact-card-email{
  grid-column: 1 / -1;
}
.contact-form{display:grid; grid-template-columns:1fr 1fr; gap:12px; align-content:start}
.contact-form label{display:grid; gap:6px}
.contact-form label > span{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-form input, .contact-form textarea{background:#0e1530; border:1px solid rgba(255,255,255,.08); color:var(--text); padding:12px 12px; border-radius:6px; outline:none; transition: all 0.3s ease; font-family: 'Poppins', sans-serif}
.contact-form input:hover, .contact-form textarea:hover{border-color:rgba(255,255,255,.15); background:#0f1638}
.contact-form input:focus, .contact-form textarea:focus{border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring), 0 4px 10px rgba(57,255,20,.08); transform:translateY(-2px); background:#0f1740}
.contact-form textarea{resize: vertical; min-height: 100px; max-height: 200px}
.contact-form .full{grid-column:1 / -1}
.contact-form .btn{
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
}
.form-note{
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0;
  padding: 10px 14px;
  background: rgba(17,24,39,0.5);
  border-left: 3px solid rgba(57,255,20,.3);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}
@media (max-width: 760px){ 
  .contact-form{grid-template-columns:1fr; gap:14px}
  .contact-form input, .contact-form textarea{padding:14px; font-size:15px}
  .contact-form label > span{font-size:15px}
}
@media (max-width: 768px){ .contact-cards{grid-template-columns:1fr 1fr; gap:12px} }
@media (max-width: 560px){ 
  .contact-cards{grid-template-columns:1fr; gap:14px}
  .contact-card{padding:18px; border-radius:12px}
  .contact-icon{width:52px; height:52px; font-size:22px}
  .contact-info strong{font-size:15px}
}

/* Footer */
.site-footer{border-top:1px solid rgba(0,255,135,.08); padding:26px 0 40px; background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.95))}
.footer-inner{display:flex; align-items:center; justify-content:space-between}
@media (max-width: 640px){
  .site-footer{padding:24px 5% 36px}
  .footer-inner{flex-direction:column; gap:16px; text-align:center}
  .footer-inner p{margin:0; font-size:14px}
  .footer-actions{display:flex; gap:12px; align-items:center; flex-wrap:wrap; justify-content:center}
  .to-top{width:40px; height:40px; font-size:22px}
}
.to-top{display:inline-grid; place-items:center; width:36px; height:36px; border-radius:10px; border:1px solid rgba(255,255,255,.12); transition: all 0.3s ease; font-size:20px}
.to-top:hover{background:rgba(57,255,20,.15); border-color:var(--accent); transform:translateY(-4px) scale(1.1); color:var(--accent); box-shadow: 0 8px 16px rgba(57,255,20,.15)}

/* Utilities */
.section h2{margin:0 0 14px; position:relative; display:inline-block; padding-bottom:8px}
.section h2::after{content:''; position:absolute; bottom:0; left:0; width:60px; height:3px; background:linear-gradient(90deg, var(--accent), transparent); border-radius:2px}
.two-col > *{background:transparent}

/* Visually-hidden utility for accessible SEO text */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0 0 1px 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border:0;
}

/* Animations */
@keyframes floatY {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-10px) }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 12px 30px var(--ring); }
  50% { box-shadow: 0 14px 36px rgba(57,255,20,.4); }
}
@keyframes glow {
  0%,100%{ opacity:.8 }
  50%{ opacity:1 }
}
@keyframes imgGlow {
  0%,100% { box-shadow: 0 0 40px rgba(57,255,20,.3), 0 30px 60px rgba(0,0,0,.4) }
  50% { box-shadow: 0 0 50px rgba(57,255,20,.4), 0 30px 60px rgba(0,0,0,.4) }
}

/* Scroll Reveal Animations - Standard */
@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rotateIn {
  from { transform: rotate(-5deg) scale(0.95); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes backgroundShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* All looping animations disabled */

/* Animation utility classes - Standard */
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-slide-up { animation: slideInUp 0.6s ease-out forwards; }
.animate-slide-down { animation: slideInDown 0.5s ease-out forwards; }
.animate-scale { animation: scaleIn 0.5s ease-out forwards; }
.animate-fade { animation: fadeIn 0.6s ease-out forwards; }
.animate-rotate { animation: rotateIn 0.6s ease-out forwards; }

/* Premium Reveal Animations - Repeatable */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
  contain: layout;
}

/* Mobile optimization - simpler animations */
@media (max-width: 768px) {
  [data-reveal] {
    will-change: opacity;
  }
}

.reveal-fade-up {
  animation: revealFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-fade-down {
  animation: revealFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-fade-left {
  animation: revealFadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-fade-right {
  animation: revealFadeRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-scale {
  animation: revealScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile - faster, simpler animations */
@media (max-width: 768px) {
  .reveal-fade-up {
    animation: revealFadeUpMobile 0.4s ease-out forwards;
  }
  
  .reveal-fade-down {
    animation: revealFadeDownMobile 0.4s ease-out forwards;
  }
  
  .reveal-fade-left {
    animation: revealFadeLeftMobile 0.4s ease-out forwards;
  }
  
  .reveal-fade-right {
    animation: revealFadeRightMobile 0.4s ease-out forwards;
  }
  
  .reveal-scale {
    animation: revealScaleMobile 0.4s ease-out forwards;
  }
}

@keyframes revealFadeUp {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealFadeDown {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-120px) scale(0.9);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealFadeRight {
  0% {
    opacity: 0;
    transform: translateX(120px) scale(0.9);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealScale {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Mobile-optimized animations - simple, fast, no blur */
@keyframes revealFadeUpMobile {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealFadeDownMobile {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealFadeLeftMobile {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealFadeRightMobile {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealScaleMobile {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger delays for multiple items */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }
.stagger-9 { animation-delay: 0.9s; }

/* Mobile - disable stagger delays for faster loading */
@media (max-width: 768px) {
  .stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5,
  .stagger-6, .stagger-7, .stagger-8, .stagger-9 {
    animation-delay: 0s !important;
  }
  
  /* Disable hover effects on mobile for better performance */
  .card:hover, .work-card:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  /* Remove will-change after animation completes */
  [data-reveal].reveal-fade-up,
  [data-reveal].reveal-fade-down,
  [data-reveal].reveal-fade-left,
  [data-reveal].reveal-fade-right,
  [data-reveal].reveal-scale {
    will-change: auto;
  }
  
  /* Simplify gradient animations on mobile */
  .gradient-text, .gradient-border {
    background-size: 100% 100%;
    animation: none;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(18, 140, 126, 0.3));
  animation: whatsappPulse 2s ease-in-out infinite;
  z-index: -1;
}

.whatsapp-float i {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #2FE074, #15A77D);
}

.whatsapp-float:hover i {
  transform: scale(1.15) rotate(5deg);
}

.whatsapp-float:active {
  transform: translateY(-4px) scale(1.05);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid rgba(0, 0, 0, 0.85);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes whatsappPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: whatsappFloat 3s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  
  .whatsapp-float::before {
    animation: whatsappPulse 2s ease-in-out infinite;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
  
  /* Disable heavy hover effects on mobile */
  .card:hover, .work-card:hover{
    transform: none;
  }
  
  .hero-media .photo{
    animation: none;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 28px;
    animation: whatsappFloat 3s ease-in-out infinite;
  }
  
  .whatsapp-float::before {
    animation: whatsappPulse 2s ease-in-out infinite;
  }
}

@media (max-width: 360px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 20px;
    right: 14px;
    animation: whatsappFloat 3s ease-in-out infinite;
  }
  
  .whatsapp-float::before {
    animation: whatsappPulse 2s ease-in-out infinite;
  }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  *{animation: none !important; transition: none !important}
}
