/*
  Portfolio — Complete Vanilla CSS
  Replaces every Tailwind utility used in the original markup.
*/

/* ───── 0. VARIABLES ───── */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --accent: #F59E0B;
  --bg-light: #F9FAFB;
  --text-dark: #111827;
  --gray-100: #F3F4F6;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --white: #ffffff;
  --purple-50: #F5F3FF;
  --purple-600: #7C3AED;
  --emerald-50: #ECFDF5;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --blue-50: #EFF6FF;
  --blue-600: #2563EB;
  --blue-800: #1E40AF;
  --orange-50: #FFF7ED;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
}

/* ───── 1. RESET & BASE ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}
::selection { background: var(--primary); color: var(--white); }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; }

/* helper fonts */
.font-sora { font-family: 'Sora', sans-serif; }
.font-heading { font-family: 'Poppins', sans-serif; }

/* ───── 2. LAYOUT ───── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ───── 3. CUSTOM CURSOR ───── */
#cursor {
  width: 20px; height: 20px; background: var(--primary);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; mix-blend-mode: difference; transition: transform .1s ease;
  display: none;
}
@media(min-width:768px){ #cursor{ display: block; } }

/* ───── 4. GLASSMORPHISM ───── */
.glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
}

/* ───── 5. ANIMATIONS ───── */
@keyframes float {
  0%   { transform: translateY(0) rotate(0); }
  50%  { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0); }
}
.floating { animation: float 6s ease-in-out infinite; }
.floating-delayed { animation: float 6s ease-in-out infinite; animation-delay: 2s; }
.reveal { opacity: 1; } /* GSAP will override */

/* ───── 6. NAVIGATION ───── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  padding: 1rem 0; transition: all .5s;
}
@media(min-width:768px){ .navbar{ padding: 1.5rem 0; } }
.navbar .nav-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.nav-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -.05em; }
.nav-logo span { color: var(--primary); }

.nav-links { display: none; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-weight: 500; font-size: .6875rem; text-transform: uppercase;
  letter-spacing: .2em; transition: color .3s;
}
.nav-links a:hover { color: var(--primary); }
@media(min-width:768px){ .nav-links{ display: flex; } }

.nav-toggle { display: block; font-size: 1.25rem; background: none; border: none; color: var(--text-dark); }
@media(min-width:768px){ .nav-toggle{ display: none; } }

.btn-hire {
  background: var(--text-dark); color: var(--white);
  padding: .5rem 1.5rem; border-radius: 9999px;
  font-size: .625rem; font-weight: 700; transition: all .3s;
  box-shadow: var(--shadow-lg);
}
@media(min-width:640px){ .btn-hire{ padding: .75rem 2rem; font-size: .75rem; } }
.btn-hire:hover { background: var(--primary); transform: translateY(-2px); }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 100%; left: 0; width: 100%;
  background: var(--white); box-shadow: var(--shadow-md); z-index: 50;
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  display: flex; flex-direction: column; align-items: center; padding: 1rem 0; gap: 1rem;
}
.mobile-menu-inner a {
  font-weight: 500; text-transform: uppercase; font-size: .875rem; transition: color .3s;
}
.mobile-menu-inner a:hover { color: var(--primary); }
@media(min-width:768px){ .mobile-menu{ display: none !important; } }

/* ───── 7. HERO ───── */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; padding-top: 5rem; overflow: hidden;
}
.hero-bg-right {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: linear-gradient(to left, rgba(37,99,235,.05), transparent);
  pointer-events: none;
}
.hero-shape {
  position: absolute; top: -6rem; right: -6rem; width: 24rem; height: 24rem;
  background: rgba(37,99,235,.1); border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center; position: relative; z-index: 10;
}
@media(min-width:1024px){ .hero-grid{ grid-template-columns: 1fr 1fr; } }

/* hero left */
.hero-sub {
  display: flex; align-items: center; gap: .75rem; color: var(--primary);
  font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  font-size: .625rem; margin-bottom: 1.5rem;
}
.hero-sub span { display: inline-block; width: 2.5rem; height: 2px; background: var(--primary); }

.hero-title {
  font-size: 2.25rem; font-weight: 900; line-height: .95;
  margin-bottom: 2rem; letter-spacing: -.05em;
}
@media(min-width:640px){ .hero-title{ font-size: 3rem; } }
@media(min-width:768px){ .hero-title{ font-size: 3.75rem; } }
@media(min-width:1024px){ .hero-title{ font-size: 6.25rem; } }

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-desc {
  font-size: 1rem; color: var(--gray-500); margin-bottom: 2.5rem;
  max-width: 32rem; line-height: 1.625;
}
@media(min-width:768px){ .hero-desc{ font-size: 1.25rem; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.btn-portfolio {
  background: var(--text-dark); color: var(--white); padding: .75rem 1.5rem;
  border-radius: 9999px; font-weight: 700; display: inline-flex;
  align-items: center; gap: .75rem; transition: all .3s; box-shadow: var(--shadow-xl);
}
@media(min-width:640px){ .btn-portfolio{ padding: 1.25rem 2.5rem; } }
.btn-portfolio:hover { background: var(--primary); }
.btn-portfolio:hover .arrow-icon { transform: rotate(45deg); }
.arrow-icon { transition: transform .3s; }

.social-links { display: flex; align-items: center; gap: 1rem; padding-left: 1rem; }
.social-links a { color: var(--gray-400); transition: color .3s; }
.social-links a:hover { color: var(--primary); }

/* hero right – image */
.hero-visual { display: flex; justify-content: center; }
@media(min-width:1024px){ .hero-visual{ justify-content: flex-end; } }
.hero-img-wrap {
  position: relative; width: 15rem; height: 15rem;
}
@media(min-width:640px){ .hero-img-wrap{ width: 20rem; height: 20rem; } }
@media(min-width:1024px){ .hero-img-wrap{ width: 31.25rem; height: 31.25rem; } }

.img-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to top right, rgba(37,99,235,.2), rgba(245,158,11,.2));
  border-radius: 50%; transform: scale(1.1); filter: blur(24px);
}
.img-circle {
  position: absolute; inset: 0; background: var(--white); border-radius: 50%;
  overflow: hidden; box-shadow: var(--shadow-2xl); border: 15px solid var(--white); z-index: 10;
}
.img-circle img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: all .7s;
}
.img-circle:hover img { filter: grayscale(0); }

/* floating badges */
.float-badge {
  position: absolute; background: var(--white); padding: 1.25rem;
  border-radius: 1.5rem; box-shadow: var(--shadow-xl); z-index: 20;
  display: flex; align-items: center; gap: .75rem; border: 1px solid var(--gray-100);
}
.float-badge.top-left { top: -1.25rem; left: -1.25rem; }
.float-badge.bottom-right { bottom: 2.5rem; right: -1.25rem; }
.float-badge.mid-right {
  top: 50%; right: -2.5rem; padding: 1rem; border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}
.icon-box {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.25rem;
}
.icon-box.sm { width: 2.5rem; height: 2.5rem; border-radius: .75rem; }

/* ───── 8. EXPERIENCE CARDS ───── */
.exp-section {
  padding: 3rem 0; position: relative; z-index: 20; margin-top: -5rem;
}
.exp-grid { display: grid; gap: 2rem; }
@media(min-width:768px){ .exp-grid{ grid-template-columns: repeat(3,1fr); } }

.exp-card {
  background: rgba(255,255,255,.7); backdrop-filter: blur(24px);
  padding: 2.5rem; border-radius: 2.5rem; border: 1px solid var(--white);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 2rem;
  transition: all .5s;
}
.exp-card:hover { box-shadow: var(--shadow-xl); }
.exp-num {
  font-size: 3rem; font-weight: 900; transition: transform .3s;
}
.exp-card:hover .exp-num { transform: scale(1.1); }
.exp-num.c1 { color: var(--primary); }
.exp-num.c2 { color: var(--accent); }
.exp-num.c3 { color: var(--emerald-500); }
.exp-label {
  color: var(--gray-500); font-weight: 600; line-height: 1.25;
  text-transform: uppercase; font-size: .75rem; letter-spacing: .1em;
}

/* ───── 9. SERVICES ───── */
.services { padding: 8rem 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-sub {
  color: var(--primary); font-weight: 700; text-transform: uppercase;
  letter-spacing: .4em; font-size: .75rem; margin-bottom: 1rem;
}
.section-title { font-size: 3rem; font-weight: 900; letter-spacing: -.025em; }
.section-line {
  width: 5rem; height: 6px; background: var(--accent);
  margin: 1.5rem auto 0; border-radius: 9999px;
}
.services-grid { display: grid; gap: 2rem; }
@media(min-width:768px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .services-grid{ grid-template-columns: repeat(4,1fr); } }

.service-card {
  padding: 2.5rem; border-radius: 3rem; background: var(--bg-light);
  border: 1px solid transparent; transition: all .5s;
}
.service-card:hover {
  border-color: rgba(37,99,235,.2); background: var(--white);
  box-shadow: var(--shadow-2xl);
}
.svc-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem; transition: all .3s;
}
.service-card:hover .svc-icon { background: var(--primary) !important; color: var(--white) !important; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.service-card p { color: var(--gray-500); font-size: .875rem; line-height: 1.625; margin-bottom: 1.5rem; }

/* ───── 10. PORTFOLIO / WORKS ───── */
.works { padding: 8rem 0; }
.works-header {
  display: flex; flex-direction: column; gap: 2rem;
  margin-bottom: 5rem;
}
@media(min-width:768px){
  .works-header{ flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.works-filters { display: flex; gap: 1.5rem; font-size: .875rem; font-weight: 700; color: var(--gray-400); }
.works-filters button {
  background: none; border: none; color: inherit; transition: color .3s;
}
.works-filters button.active { color: var(--text-dark); border-bottom: 2px solid var(--primary); padding-bottom: .25rem; }
.works-filters button:hover { color: var(--text-dark); }

.works-grid { display: grid; gap: 2.5rem; }
@media(min-width:768px){ .works-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .works-grid{ grid-template-columns: repeat(3,1fr); } }

.project-card {
  position: relative; height: 31rem; border-radius: 3rem;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.project-card img, .project-card video {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1s;
}
.project-card:hover img, .project-card:hover video { transform: scale(1.1); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--text-dark), transparent, transparent);
  opacity: 0; transition: all .5s;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-info {
  position: absolute; bottom: 0; left: 0; padding: 3rem;
  transform: translateY(2.5rem); opacity: 0; transition: all .5s;
}
.project-card:hover .project-info { transform: translateY(0); opacity: 1; }
.project-tag {
  color: var(--accent); font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.project-name { color: var(--white); font-size: 1.875rem; font-weight: 900; margin: .5rem 0 1.5rem; }

.btn-view {
  background: var(--white); color: var(--text-dark);
  padding: .75rem 1.5rem; border-radius: 9999px; font-size: .75rem;
  font-weight: 700; display: inline-flex; align-items: center; gap: .5rem;
  transition: all .3s;
}
.btn-view:hover { background: var(--primary); color: var(--white); }

.btn-more {
  display: inline-block; background: var(--primary); color: var(--white);
  padding: 1rem 2rem; border-radius: 9999px; font-weight: 700;
  transition: background .3s;
}
.btn-more:hover { background: var(--primary-dark); }
.text-center { text-align: center; }
.mt-12 { margin-top: 3rem; }

/* ───── 11. SKILLS ───── */
.skills {
  padding: 8rem 0; background: var(--text-dark); color: var(--white);
  position: relative; overflow: hidden;
}
.skills-dots {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 40px 40px;
}
.skills-inner { position: relative; z-index: 10; text-align: center; }
.skills-intro { max-width: 42rem; margin: 0 auto 5rem; }
.skills-grid { display: grid; gap: 4rem; }
@media(min-width:768px){ .skills-grid{ grid-template-columns: repeat(3,1fr); } }

.skill-group { display: flex; flex-direction: column; gap: 2.5rem; }
.skill-group-head { display: flex; flex-direction: column; align-items: center; }
.skill-group-icon {
  width: 5rem; height: 5rem; border-radius: 2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.skill-group h3 { font-size: 1.5rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.skill-tag {
  padding: .75rem 1.5rem; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: 1rem;
  font-size: .875rem; font-weight: 600; transition: all .3s;
}
.skill-tag:hover { background: var(--white); color: var(--text-dark); }

/* ───── 12. CTA ───── */
.cta-section { padding: 6rem 0; }
.cta-box {
  background: linear-gradient(to bottom right, var(--primary), var(--blue-800));
  border-radius: 4rem; padding: 4rem 1.5rem; text-align: center;
  color: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow-2xl);
}
@media(min-width:1024px){ .cta-box{ padding: 6rem; } }
.cta-glow {
  position: absolute; top: -5rem; right: -5rem; width: 20rem; height: 20rem;
  background: rgba(255,255,255,.1); border-radius: 50%; filter: blur(80px);
}
.cta-title { font-size: 2.25rem; font-weight: 900; margin-bottom: 2rem; line-height: 1.15; }
@media(min-width:1024px){ .cta-title{ font-size: 3.75rem; } }
.cta-desc {
  font-size: 1.25rem; color: rgba(191,219,254,.7); margin-bottom: 3rem;
  max-width: 42rem; margin-left: auto; margin-right: auto;
  font-weight: 500; line-height: 1.625;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.btn-cta-light {
  background: var(--white); color: var(--primary); padding: 1.25rem 2.5rem;
  border-radius: 9999px; font-weight: 900; font-size: 1.125rem;
  transition: transform .3s; box-shadow: var(--shadow-xl);
}
.btn-cta-light:hover { transform: scale(1.05); }
.btn-cta-outline {
  border: 2px solid rgba(255,255,255,.3); color: var(--white);
  padding: 1.25rem 2.5rem; border-radius: 9999px;
  font-weight: 900; font-size: 1.125rem; transition: background .3s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); }

/* ───── 13. CONTACT ───── */
.contact { padding: 8rem 0; background: var(--white); }
.contact-grid { display: grid; gap: 6rem; align-items: start; }
@media(min-width:1024px){ .contact-grid{ grid-template-columns: 1fr 1fr; } }

.contact-sub { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .4em; font-size: .75rem; margin-bottom: 1rem; }
.contact-title { font-size: 3.75rem; font-weight: 900; letter-spacing: -.025em; margin-bottom: 4rem; }
.contact-title span { color: var(--primary); }

.contact-items { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-row { display: flex; gap: 2rem; }
.contact-icon {
  width: 4rem; height: 4rem; flex-shrink: 0; background: var(--bg-light);
  border-radius: 1rem; display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: all .3s; box-shadow: var(--shadow-sm);
}
.contact-row:hover .contact-icon { background: var(--primary); color: var(--white); }
.contact-meta { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin-bottom: .25rem; }
.contact-val { font-size: 1.25rem; font-weight: 700; transition: color .3s; }
.contact-val:hover { color: var(--primary); }

/* form */
.form-card {
  background: var(--bg-light); padding: 3rem; border-radius: 4rem;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-2xl);
}
@media(min-width:1024px){ .form-card{ padding: 4rem; } }
.form-row { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media(min-width:768px){ .form-row{ grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .75rem; }
.form-group:last-child { margin-bottom: 2rem; }
.form-label {
  font-size: .625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray-400); margin-left: .5rem;
}
.form-input, .form-textarea {
  width: 100%; padding: 1.25rem; border-radius: 1.5rem; border: none;
  background: var(--white); outline: none; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s; font-family: inherit; font-size: 1rem;
}
.form-input:focus, .form-textarea:focus {
  box-shadow: 0 0 0 2px var(--primary);
}
.form-textarea { resize: none; }

.btn-submit {
  width: 100%; background: var(--text-dark); color: var(--white);
  padding: 1.5rem; border-radius: 1.5rem; border: none;
  font-weight: 900; font-size: 1.125rem; display: flex;
  align-items: center; justify-content: center; gap: .75rem;
  cursor: pointer; transition: all .3s; box-shadow: var(--shadow-xl);
}
.btn-submit:hover { background: var(--primary); }
.btn-submit:active { transform: scale(.95); }

#form-status { text-align: center; font-size: .875rem; margin-top: .5rem; }

/* ───── 14. FOOTER ───── */
.footer { padding: 5rem 0; border-top: 1px solid var(--gray-100); text-align: center; }
.footer-logo { font-size: 1.875rem; font-weight: 900; letter-spacing: -.05em; margin-bottom: 2.5rem; }
.footer-logo span { color: var(--primary); }
.footer-socials { display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem; }
.footer-socials a {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); transition: all .3s;
}
.footer-socials a:hover { background: var(--text-dark); color: var(--white); }
.footer-copy {
  color: var(--gray-400); font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4em;
}
