/* ============================================================
   RAREDesign — style.css
   Theme   : Bright White / Light Premium
   Version : 3.0 (Optimized & Refactored)
   Author  : RAREDesign Studio
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ─────────────── */
:root {
  /* Backgrounds */
  --bg          : #FAFAFF;
  --bg2         : #FFFFFF;
  --bg3         : #F5F6FD;
  --card        : #FFFFFF;
  --card-border : rgba(123, 97, 255, 0.09);

  /* Brand Colors */
  --purple      : #7B61FF;
  --purple-dark : #5A42D4;
  --cyan        : #00B4D8;
  --blue        : #3B82F6;
  --black       : #080814;
  --dark        : #1C1C30;
  --body-text   : #3D3D5C;
  --muted       : #8888AA;
  --white       : #FFFFFF;

  /* Gradients */
  --grad        : linear-gradient(135deg, #7B61FF, #3B82F6, #00B4D8);
  --grad2       : linear-gradient(135deg, #7B61FF 0%, #00B4D8 100%);
  --grad-soft   : linear-gradient(135deg, rgba(123,97,255,0.07), rgba(59,130,246,0.05), rgba(0,180,216,0.04));

  /* Shadows */
  --shadow-sm   : 0 2px 12px rgba(123,97,255,0.07);
  --shadow-md   : 0 8px 30px rgba(123,97,255,0.11);
  --shadow-lg   : 0 20px 60px rgba(123,97,255,0.14);

  /* Layout */
  --radius      : 16px;
  --radius-sm   : 10px;
  --transition  : 0.3s ease;
  --max-width   : 1200px;
}

/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  background : var(--bg);
  color      : var(--dark);
  font-family: 'Red Hat Display', sans-serif;
  font-size  : 14px;
  line-height: 1.85;
  overflow-x : hidden;
  word-spacing: 0.02em;
}

img  { max-width: 100%; display: block; object-fit: cover; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── 3. BACKGROUND EFFECTS ─────────────────────────────────── */
body::before {
  content   : '';
  position  : fixed;
  inset     : 0;
  background:
    radial-gradient(circle at 10% 8%,  rgba(123,97,255,0.03) 0%,  transparent 48%),
    radial-gradient(circle at 88% 82%, rgba(0,180,216,0.025) 0%,  transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(59,130,246,0.015) 0%, transparent 65%);
  pointer-events: none;
  z-index   : 0;
}

/* Ambient Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: rgba(123,97,255,0.04);  top: -200px; right: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: rgba(0,180,216,0.03);   bottom: 10%; left: -150px; animation-delay: -6s; }
.orb-3 { width: 400px; height: 400px; background: rgba(59,130,246,0.03);  top: 45%;   right: 5%;    animation-delay: -10s; }

/* ── 4. KEYFRAME ANIMATIONS ────────────────────────────────── */
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(25px, -35px) scale(1.04); }
  66%      { transform: translate(-18px, 18px) scale(0.97); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.6); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes svgRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 40px rgba(123,97,255,0.2); }
  50%      { transform: scale(1.04); box-shadow: 0 0 70px rgba(123,97,255,0.35); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── 5. NAVIGATION ─────────────────────────────────────────── */
nav {
  position        : fixed;
  top: 0; left: 0; right: 0;
  z-index         : 1000;
  padding         : 0 5%;
  height          : 70px;
  display         : flex;
  align-items     : center;
  justify-content : space-between;
  backdrop-filter : blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px);
  background      : rgba(252,252,255,0.92);
  border-bottom   : 1px solid rgba(123,97,255,0.1);
  transition      : background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(123,97,255,0.08);
}

.nav-logo {
  font-weight   : 800;
  font-size     : 1.25rem;
  background    : var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color      : var(--body-text);
  font-size  : 0.88rem;
  font-weight: 500;
  transition : color var(--transition);
  position   : relative;
}
.nav-links a::after {
  content      : '';
  position     : absolute;
  bottom       : -4px; left: 0; right: 100%;
  height       : 2px;
  background   : var(--grad);
  border-radius: 2px;
  transition   : right var(--transition);
}
.nav-links a:hover,
.nav-links a.nav-active       { color: var(--purple); }
.nav-links a:hover::after,
.nav-links a.nav-active::after { right: 0; }

.nav-cta {
  background   : var(--grad) !important;
  color        : var(--white) !important;
  padding      : 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight  : 600 !important;
  box-shadow   : 0 4px 20px rgba(123,97,255,0.3);
  transition   : transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { transform: translateY(-2px) !important; box-shadow: 0 8px 30px rgba(123,97,255,0.45) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── 6. LAYOUT UTILITIES ───────────────────────────────────── */
section { position: relative; z-index: 2; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section-label {
  display       : inline-flex;
  align-items   : center;
  gap           : 10px;
  font-size     : 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color         : var(--purple);
  font-weight   : 700;
  margin-bottom : 1rem;
}
.section-label::before {
  content      : '';
  display      : block;
  width        : 20px;
  height       : 2px;
  background   : var(--grad);
  border-radius: 2px;
}

.section-title {
  font-size     : clamp(1.76rem, 3.52vw, 2.86rem);
  font-weight   : 800;
  line-height   : 1.2;
  letter-spacing: -0.5px;
  color         : var(--black);
  margin-bottom : 1rem;
}

.section-subtitle { color: var(--body-text); font-size: 0.88rem; max-width: 520px; }

/* Gradient text utility */
.grad-text {
  background             : var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip        : text;
}

.text-center           { text-align: center; }
.section-header-center { text-align: center; margin-bottom: 1rem; }
.section-label-center  { justify-content: center; margin: 0 auto 0.8rem; }
.subtitle-right        { text-align: right; max-width: 320px; }
.cursor-default        { cursor: default; }

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(123,97,255,0.15), transparent);
}

/* ── 7. BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background   : var(--grad);
  color        : var(--white);
  padding      : 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight  : 700;
  font-size    : 0.95rem;
  display      : inline-flex;
  align-items  : center;
  gap          : 8px;
  transition   : transform 0.3s, box-shadow 0.3s;
  box-shadow   : 0 6px 30px rgba(123,97,255,0.35);
  position     : relative;
  overflow     : hidden;
  border       : none;
  cursor       : pointer;
  font-family  : 'Red Hat Display', sans-serif;
}
.btn-primary::before {
  content   : '';
  position  : absolute;
  inset     : 0;
  background: rgba(255,255,255,0.15);
  transform : translateX(-100%);
  transition: transform 0.4s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(123,97,255,0.45); }

.btn-secondary {
  background   : var(--white);
  color        : var(--purple);
  padding      : 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight  : 600;
  font-size    : 0.95rem;
  display      : inline-flex;
  align-items  : center;
  gap          : 8px;
  border       : 2px solid rgba(123,97,255,0.25);
  transition   : all 0.3s;
  box-shadow   : var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--purple);
  background  : rgba(123,97,255,0.05);
  transform   : translateY(-2px);
  box-shadow  : var(--shadow-md);
}

/* ── 8. SCROLL REVEAL ──────────────────────────────────────── */
.reveal         { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 9. HERO SECTION ───────────────────────────────────────── */
#hero {
  min-height: 60vh;
  display   : flex;
  align-items: center;
  padding   : 0;
  overflow  : hidden;
  position  : relative;
  background: #0A0A14;
}

/* Background image with blur */
#hero .hero-bg-img {
  position  : absolute;
  inset     : 0;
  background: url('images/hero-bg.jpg') center center / cover no-repeat;
  filter    : blur(3px) brightness(0.45) saturate(1.2);
  transform : scale(1.05);
  z-index   : 0;
}

/* Gradient overlay */
#hero::before {
  content   : '';
  position  : absolute;
  inset     : 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(123,97,255,0.25) 0%, transparent 65%);
  pointer-events: none;
  z-index   : 1;
}

/* Dot grid pattern */
#hero::after {
  content         : '';
  position        : absolute;
  inset           : 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size : 36px 36px;
  pointer-events  : none;
  z-index         : 1;
}

.hero-inner {
  max-width            : var(--max-width);
  margin               : 0 auto;
  width                : 100%;
  padding              : 100px 5% 70px;
  display              : grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap                  : 5rem;
  align-items          : center;
  position             : relative;
  z-index              : 2;
}

/* Hero Badge */
.hero-badge {
  display       : inline-flex;
  align-items   : center;
  gap           : 8px;
  background    : rgba(123,97,255,0.15);
  border        : 1px solid rgba(123,97,255,0.35);
  border-radius : 50px;
  padding       : 0.45rem 1.1rem;
  font-size     : 0.74rem;
  color         : rgba(180,160,255,1);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight   : 600;
  margin-bottom : 1.5rem;
  animation     : fadeSlideUp 0.8s ease both;
}
.hero-badge .pulse-dot {
  width: 7px; height: 7px;
  background: #7B61FF;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Hero Heading */
.hero-h1 {
  font-size     : clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight   : 900;
  line-height   : 1.05;
  letter-spacing: -2px;
  color         : #FFFFFF;
  margin-bottom : 1.4rem;
  animation     : fadeSlideUp 0.8s 0.1s ease both;
  white-space   : nowrap;
}
.hero-h1 .grad-text {
  background             : linear-gradient(135deg, #a78bff, #38bdf8, #7B61FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip        : text;
}

/* Hero Tagline */
.hero-tagline {
  font-size    : 0.95rem;
  color        : rgba(255,255,255,0.55);
  font-weight  : 400;
  max-width    : 480px;
  margin-bottom: 2.5rem;
  animation    : fadeSlideUp 0.8s 0.2s ease both;
  line-height  : 1.95;
}
.hero-tagline strong { color: rgba(255,255,255,0.9); font-weight: 700; }

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}
.hero-btns .btn-primary {
  background: linear-gradient(135deg, #7B61FF, #38bdf8);
  box-shadow: 0 6px 30px rgba(123,97,255,0.4);
}
.hero-btns .btn-secondary {
  background  : rgba(255,255,255,0.06);
  border      : 1.5px solid rgba(255,255,255,0.18);
  color       : rgba(255,255,255,0.85);
}
.hero-btns .btn-secondary:hover {
  background  : rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color       : #fff;
}

/* Hero Stats */
.hero-stats {
  display    : flex;
  gap        : 2.5rem;
  margin-top : 3rem;
  animation  : fadeSlideUp 0.8s 0.4s ease both;
  padding-top: 2rem;
  border-top : 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num {
  font-size  : 1.7rem;
  font-weight: 800;
  background : linear-gradient(135deg, #a78bff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label {
  font-size     : 0.68rem;
  color         : rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  margin-top    : 4px;
  font-weight   : 500;
  text-transform: uppercase;
}

/* Hero Visual (Right Side) */
.hero-visual {
  position       : relative;
  display        : flex;
  align-items    : center;
  justify-content: center;
  animation      : fadeSlideUp 0.9s 0.2s ease both;
}

.hero-art { width: 100%; max-width: 460px; aspect-ratio: 1; position: relative; }
.hero-art svg { width: 100%; height: 100%; animation: svgRotate 28s linear infinite; transform-origin: center; }

/* Center profile image */
.hero-center-img {
  position       : absolute;
  inset          : 14%;
  border-radius  : 50%;
  background     : linear-gradient(135deg, #7B61FF, #38bdf8);
  display        : flex;
  align-items    : center;
  justify-content: center;
  box-shadow     : 0 0 80px rgba(123,97,255,0.35), 0 0 160px rgba(56,189,248,0.15);
  animation      : breathe 4s ease-in-out infinite;
  overflow       : hidden;
  border         : 3px solid rgba(255,255,255,0.12);
}
.hero-center-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-center-icon    { width: 60%; height: 60%; opacity: 0.95; }

/* Floating Skill Chips */
.floating-chip {
  position       : absolute;
  background     : rgba(20,20,35,0.85);
  backdrop-filter: blur(20px);
  border         : 1px solid rgba(123,97,255,0.3);
  border-radius  : var(--radius-sm);
  padding        : 0.7rem 1.2rem;
  font-size      : 0.74rem;
  font-weight    : 600;
  white-space    : nowrap;
  display        : flex;
  align-items    : center;
  gap            : 8px;
  color          : rgba(255,255,255,0.85);
  box-shadow     : 0 4px 24px rgba(0,0,0,0.3);
  animation      : chipFloat 6s ease-in-out infinite;
}
.chip-1 { top: 12%;   left: -8%;   animation-delay: 0s; }
.chip-2 { bottom: 22%; right: -10%; animation-delay: -2s; }
.chip-3 { bottom: 8%; left: 5%;    animation-delay: -4s; }

.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-dot.purple { background: #7B61FF; box-shadow: 0 0 8px #7B61FF; }
.chip-dot.cyan   { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.chip-dot.blue   { background: #3B82F6; box-shadow: 0 0 8px #3B82F6; }

/* ── 10. ABOUT SECTION ─────────────────────────────────────── */
#about { padding: 60px 0; background: var(--bg); }

.about-grid {
  display              : grid;
  grid-template-columns: 1fr 1.4fr;
  gap                  : 5rem;
  align-items          : center;
}

.about-img-wrap { position: relative; }

.about-img-frame {
  width        : 100%;
  aspect-ratio : 3/4;
  border-radius: 24px;
  background   : transparent;
  position     : relative;
  overflow     : hidden;
  box-shadow   : var(--shadow-lg);
}
.about-img-frame::before { display: none; }

.about-img-inner {
  position       : absolute;
  inset          : 0;
  border-radius  : 24px;
  z-index        : 2;
  background     : linear-gradient(145deg, #EEF0FF, #E8F4FF, #EFF9FF);
  display        : flex;
  align-items    : center;
  justify-content: center;
  overflow       : hidden;
}
.about-img-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

.about-corner-badge {
  position      : absolute;
  bottom        : -15px; right: -15px;
  width         : 105px; height: 105px;
  background    : var(--grad);
  border-radius : 50%;
  display       : flex;
  flex-direction: column;
  align-items   : center;
  justify-content: center;
  box-shadow    : 0 10px 40px rgba(123,97,255,0.35);
  z-index       : 3;
}
.about-corner-badge .num { font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--white); }
.about-corner-badge .lbl { font-size: 0.55rem; color: rgba(255,255,255,0.85); letter-spacing: 0.5px; font-weight: 600; }

.about-deco-line { display: none; }

.about-text { color: var(--body-text); font-weight: 400; margin-bottom: 1.8rem; line-height: 2; }

.edu-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.edu-chip {
  padding      : 0.5rem 1.1rem;
  border-radius: 50px;
  border       : 1.5px solid rgba(123,97,255,0.2);
  background   : rgba(123,97,255,0.05);
  font-size    : 0.74rem;
  color        : var(--purple-dark);
  font-weight  : 500;
  display      : flex;
  align-items  : center;
  gap          : 6px;
}

/* Skill Bars */
.skills-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.skill-bar-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--body-text); margin-bottom: 0.4rem; font-weight: 500; }
.skill-bar-bg    { height: 5px; background: rgba(123,97,255,0.1); border-radius: 10px; overflow: hidden; }
.skill-bar-fill  { height: 100%; background: var(--grad); border-radius: 10px; transform-origin: left; animation: barGrow 1.5s 0.5s ease both; }

/* ── 11. SERVICES SECTION ──────────────────────────────────── */
#services { padding: 60px 0; background: var(--bg3); }

.services-header {
  display        : flex;
  justify-content: space-between;
  align-items    : flex-end;
  margin-bottom  : 2rem;
  flex-wrap      : wrap;
  gap            : 1.5rem;
}

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

.service-card {
  background   : var(--card);
  border       : 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding      : 2.2rem 2rem;
  transition   : all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position     : relative;
  overflow     : hidden;
  cursor       : default;
  box-shadow   : var(--shadow-sm);
}
.service-card::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity 0.4s; }
.service-card::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; }
.service-card:hover   { transform: translateY(-10px); border-color: rgba(123,97,255,0.25); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { transform: scaleX(1); }
.service-card > *           { position: relative; z-index: 1; }

.service-icon {
  width        : 60px; height: 60px;
  border-radius: 16px;
  background   : rgba(123,97,255,0.08);
  border       : 1.5px solid rgba(123,97,255,0.15);
  display      : flex;
  align-items  : center;
  justify-content: center;
  font-size    : 1.35rem;
  margin-bottom: 1.2rem;
  transition   : all 0.4s;
}
.service-card:hover .service-icon { background: rgba(123,97,255,0.14); box-shadow: 0 0 25px rgba(123,97,255,0.18); transform: scale(1.1) rotate(-5deg); }
.service-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 0.7rem; letter-spacing: 0.3px; }
.service-card p  { color: var(--body-text); font-size: 0.8rem; font-weight: 400; line-height: 1.9; }

.service-arrow { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--purple); margin-top: 1rem; font-weight: 600; transition: gap 0.3s; }
.service-card:hover .service-arrow { gap: 10px; }

/* ── 12. PORTFOLIO SECTION ─────────────────────────────────── */
#portfolio { padding: 60px 0; background: var(--bg); }

.filter-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.filter-tab {
  padding      : 0.5rem 1.4rem;
  border-radius: 50px;
  border       : 1.5px solid rgba(123,97,255,0.2);
  background   : var(--white);
  color        : var(--body-text);
  font-size    : 0.76rem;
  font-weight  : 500;
  cursor       : pointer;
  transition   : all var(--transition);
  font-family  : 'Red Hat Display', sans-serif;
  box-shadow   : var(--shadow-sm);
}
.filter-tab.active,
.filter-tab:hover { background: var(--grad); border-color: transparent; color: var(--white); box-shadow: 0 4px 20px rgba(123,97,255,0.3); }

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

/* Portfolio Card */
/* ── Portfolio Cards — 3D Pan / Tilt Design ── */
.p-card {
  border-radius   : 20px;
  overflow        : hidden;
  position        : relative;
  cursor          : pointer;
  aspect-ratio    : 1;
  perspective     : 800px;
  transform-style : preserve-3d;
  /* smooth reset */
  transition      : transform 0.6s cubic-bezier(0.23,1,0.32,1),
                    box-shadow 0.6s cubic-bezier(0.23,1,0.32,1);
  will-change     : transform;
}

/* shadow deepens as card tilts */
.p-card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,0.35), 0 8px 20px rgba(123,97,255,0.18);
}

.p-card-inner {
  width          : 100%;
  height         : 100%;
  position       : relative;
  overflow       : hidden;
  border-radius  : 20px;
  transform-style: preserve-3d;
}

/* Thumbnail gradient backgrounds */
.p-thumb-1 { background: linear-gradient(135deg, #b06aff 0%, #7B61FF 40%, #d080ff 100%); }
.p-thumb-2 { background: linear-gradient(135deg, #4D9FFF 0%, #7B61FF 50%, #b06aff 100%); }
.p-thumb-3 { background: linear-gradient(135deg, #9B6DFF 0%, #c060ff 50%, #b06aff 100%); }
.p-thumb-4 { background: linear-gradient(135deg, #f5a623 0%, #e8720c 50%, #f5c542 100%); }
.p-thumb-5 { background: linear-gradient(135deg, #8ec5fc 0%, #a8d8ea 50%, #b8c6e8 100%); }
.p-thumb-6 { background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 50%, #8ec5fc 100%); }

.p-thumb { width: 100%; height: 100%; position: relative; display: flex; align-items: flex-end; }
.p-thumb img {
  position     : absolute;
  inset        : 0;
  width        : 100%;
  height       : 100%;
  object-fit   : cover;
  transition   : transform 0.6s cubic-bezier(0.23,1,0.32,1);
  border-radius: 20px;
  /* image slightly zoomed so pan doesn't reveal edges */
  transform    : scale(1.04);
}
.p-card:hover .p-thumb img { transform: scale(1.10); }

/* Corner bracket — REMOVED */
.p-corner { display: none; }

/* Bottom label — clean solid label, no overlay */
.p-label {
  position     : absolute;
  bottom       : 0; left: 0; right: 0;
  z-index      : 3;
  padding      : 52px 16px 16px;
  background   : linear-gradient(to top, rgba(10,8,24,0.72) 0%, rgba(10,8,24,0.3) 60%, transparent 100%);
  border-radius: 0 0 20px 20px;
  backdrop-filter: blur(0px);
  transition   : padding 0.4s ease;
}
.p-card:hover .p-label { padding-bottom: 20px; }
.p-label h4  { font-size: 0.82rem; font-weight: 700; color: #fff; margin-bottom: 2px; letter-spacing: 0.2px; line-height: 1.2; }
.p-label span { font-size: 0.66rem; color: rgba(255,255,255,0.75); font-weight: 400; letter-spacing: 0.5px; }

/* Decorative SVG overlays — REMOVED */
.p-deco { display: none; }

/* Shine / glare layer that follows tilt */
.p-shine {
  position      : absolute;
  inset         : 0;
  border-radius : 20px;
  pointer-events: none;
  z-index       : 4;
  opacity       : 0;
  transition    : opacity 0.3s ease;
  background    : radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 65%);
  mix-blend-mode: screen;
}
.p-card:hover .p-shine { opacity: 1; }

/* ── 13. PACKAGES / PRICING SECTION ────────────────────────── */
#packages { padding: 3.5rem 0; background: var(--bg); }

.packages-header {
  display        : flex;
  justify-content: space-between;
  align-items    : flex-end;
  gap            : 2rem;
  margin-bottom  : 2.2rem;
  flex-wrap      : wrap;
}

.packages-grid {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 1.8rem;
  align-items          : start;
  margin-bottom        : 2rem;
}

/* Package Card */
.pkg-card {
  background   : var(--card);
  border       : 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding      : 2rem 1.8rem 2.2rem;
  position     : relative;
  overflow     : hidden;
  transition   : transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display      : flex;
  flex-direction: column;
  gap          : 0.6rem;
}
.pkg-card::before {
  content  : '';
  position : absolute;
  top: 0; left: 0; right: 0;
  height   : 3px;
  background: var(--grad);
  opacity  : 0.25;
  transition: opacity var(--transition);
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(123,97,255,0.3); }
.pkg-card:hover::before { opacity: 1; }

/* Featured Card */
.pkg-featured {
  border-color: rgba(123,97,255,0.4);
  box-shadow  : 0 12px 40px rgba(123,97,255,0.12);
  background  : linear-gradient(160deg, #fff 60%, rgba(123,97,255,0.03));
}
.pkg-featured::before { opacity: 1; }

/* Package Badge */
.pkg-badge {
  display      : inline-flex;
  align-items  : center;
  gap          : 0.4rem;
  background   : var(--bg3);
  color        : var(--muted);
  font-size    : 0.72rem;
  font-weight  : 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding      : 0.3rem 0.75rem;
  border-radius: 50px;
  width        : fit-content;
  margin-bottom: 0.4rem;
}
.pkg-badge-featured { background: linear-gradient(135deg, rgba(123,97,255,0.12), rgba(0,180,216,0.1)); color: var(--purple); }
.pkg-badge-premium  { background: linear-gradient(135deg, rgba(240,180,0,0.12), rgba(255,120,50,0.1));  color: #B8860B; }

.pkg-icon { font-size: 2rem; margin-bottom: 0.2rem; }

.pkg-name { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 0; }
.pkg-best { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.5rem; }

.pkg-price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0.6rem 0; }
.pkg-amount {
  font-size  : 1.6rem;
  font-weight: 800;
  background : var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pkg-per { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

.pkg-goal {
  font-size    : 0.72rem;
  color        : var(--body-text);
  background   : var(--bg3);
  border-radius: var(--radius-sm);
  padding      : 0.5rem 0.8rem;
  margin-bottom: 0.5rem;
  line-height  : 1.7;
}
.pkg-goal-label { font-weight: 700; color: var(--purple); margin-right: 0.3rem; }

/* Feature List */
.pkg-features {
  display       : flex;
  flex-direction: column;
  gap           : 0.42rem;
  flex          : 1;
  margin-bottom : 1.4rem;
}
.pkg-features li {
  font-size  : 0.77rem;
  color      : var(--body-text);
  display    : flex;
  align-items: flex-start;
  gap        : 0.5rem;
  line-height: 1.65;
}
.pkg-section-head {
  font-size   : 0.7rem !important;
  font-weight : 700 !important;
  color       : var(--dark) !important;
  margin-top  : 0.8rem !important;
  letter-spacing: 0.08em;
  display     : block !important;
}
.pkg-check { color: var(--purple); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* CTA Buttons */
.pkg-cta {
  display      : block;
  text-align   : center;
  border-radius: var(--radius-sm);
  padding      : 0.75rem 1.2rem;
  font-size    : 0.8rem;
  font-weight  : 700;
  font-family  : 'Red Hat Display', sans-serif;
  letter-spacing: 0.06em;
  transition   : transform var(--transition), box-shadow var(--transition), background var(--transition);
  margin-top   : auto;
}
.pkg-cta-primary { background: var(--grad); color: #fff; border: none; }
.pkg-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,97,255,0.35); }
.pkg-cta-outline  { background: transparent; color: var(--purple); border: 1.5px solid rgba(123,97,255,0.35); }
.pkg-cta-outline:hover { background: rgba(123,97,255,0.06); border-color: var(--purple); transform: translateY(-2px); }

/* Add-Ons */
.addons-wrap {
  background   : var(--card);
  border       : 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding      : 2.2rem 2.4rem;
}
.addons-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1.3rem; color: var(--dark); }
.addons-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.addon-item {
  display       : flex;
  flex-direction: column;
  align-items   : flex-start;
  gap           : 0.6rem;
  background    : var(--card);
  border        : 1.5px solid var(--card-border);
  border-radius : var(--radius-sm);
  padding       : 1.3rem;
  transition    : box-shadow var(--transition), transform var(--transition);
  box-shadow    : var(--shadow-sm);
}
.addon-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(123,97,255,0.25); }
.addon-icon  { font-size: 1.8rem; line-height: 1; }
.addon-info  { display: flex; flex-direction: column; gap: 0.15rem; width: 100%; }
.addon-name  { font-size: 0.78rem; font-weight: 700; color: var(--dark); overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.addon-desc  { font-size: 0.72rem; color: var(--muted); }
.addon-price {
  font-size  : 1rem;
  font-weight: 800;
  background : var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top : 0.2rem;
  display    : block;
}

/* ── 14. CONTACT SECTION ───────────────────────────────────── */
#contact { padding: 60px 0; background: var(--bg3); }

.contact-grid {
  display              : grid;
  grid-template-columns: 1fr 1.3fr;
  gap                  : 5rem;
  align-items          : start;
}

.contact-info h2  { margin-bottom: 1.2rem; }
.contact-info > p { color: var(--body-text); font-weight: 400; margin-bottom: 1.5rem; line-height: 2; }

.contact-ways { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.contact-way {
  display      : flex;
  align-items  : center;
  gap          : 1rem;
  padding      : 1rem 1.3rem;
  border-radius: var(--radius-sm);
  border       : 1.5px solid var(--card-border);
  background   : var(--card);
  transition   : all var(--transition);
  color        : var(--dark);
  box-shadow   : var(--shadow-sm);
}
.contact-way:hover { border-color: rgba(123,97,255,0.35); background: rgba(123,97,255,0.04); transform: translateX(6px); box-shadow: var(--shadow-md); }

.contact-way-icon  { width: 42px; height: 42px; border-radius: 10px; background: rgba(123,97,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.contact-way-label { font-size: 0.65rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.contact-way-val   { font-size: 0.82rem; font-weight: 600; color: var(--black); }

.social-row { display: flex; gap: 0.8rem; }
.social-btn {
  width        : 46px; height: 46px;
  border-radius: 12px;
  border       : 1.5px solid var(--card-border);
  background   : var(--card);
  display      : flex;
  align-items  : center;
  justify-content: center;
  font-size    : 1rem;
  color        : var(--body-text);
  transition   : all var(--transition);
  box-shadow   : var(--shadow-sm);
}
.social-btn:hover { border-color: var(--purple); color: var(--purple); background: rgba(123,97,255,0.06); transform: translateY(-5px); box-shadow: 0 8px 25px rgba(123,97,255,0.2); }

/* Contact Form */
.contact-form { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 24px; padding: 2.8rem; box-shadow: var(--shadow-md); }
.form-title   { font-weight: 800; font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--black); letter-spacing: -0.5px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.68rem; color: var(--body-text); letter-spacing: 1.2px; font-weight: 600; text-transform: uppercase; }

.form-group input,
.form-group textarea,
.form-group select {
  background  : var(--bg);
  border      : 1.5px solid rgba(123,97,255,0.12);
  border-radius: var(--radius-sm);
  padding     : 0.85rem 1.1rem;
  color       : var(--dark);
  font-family : 'Red Hat Display', sans-serif;
  font-size   : 0.82rem;
  transition  : border-color var(--transition), box-shadow var(--transition);
  width       : 100%;
  outline     : none;
  resize      : vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,97,255,0.1); background: var(--white); }
.form-group textarea { min-height: 120px; }
.form-group select option { background: var(--white); color: var(--dark); }

.form-submit {
  width        : 100%;
  background   : var(--grad);
  color        : var(--white);
  border       : none;
  padding      : 1rem 2rem;
  border-radius: 50px;
  font-size    : 0.85rem;
  font-weight  : 700;
  cursor       : pointer;
  font-family  : 'Red Hat Display', sans-serif;
  transition   : all var(--transition);
  display      : flex;
  align-items  : center;
  justify-content: center;
  gap          : 8px;
  box-shadow   : 0 6px 25px rgba(123,97,255,0.3);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(123,97,255,0.45); }

/* WhatsApp Button */
.wa-btn {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 10px;
  width          : 100%;
  background     : rgba(37,211,102,0.07);
  border         : 1.5px solid rgba(37,211,102,0.3);
  color          : #1aa34a;
  padding        : 0.9rem 2rem;
  border-radius  : 50px;
  font-size      : 0.82rem;
  font-weight    : 700;
  margin-top     : 0.9rem;
  transition     : all var(--transition);
  font-family    : 'Red Hat Display', sans-serif;
  cursor         : pointer;
}
.wa-btn:hover { background: rgba(37,211,102,0.13); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.2); }

/* ── 15. FOOTER ────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(123,97,255,0.1);
  padding   : 2.5rem 5%;
  background: var(--white);
  position  : relative;
  z-index   : 1;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo  { font-weight: 800; font-size: 1.1rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-copy  { font-size: 0.72rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.72rem; color: var(--muted); font-weight: 500; transition: color var(--transition); }
.footer-links a:hover { color: var(--purple); }

/* ── 16. RESPONSIVE BREAKPOINTS ─────────────────────────────── */

/* Tablet — Large */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr 1fr; }
  .addons-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet — Standard */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    display      : none;
    position     : absolute;
    top: 70px; left: 0; right: 0;
    background   : rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding      : 1.5rem 5%;
    gap          : 1.2rem;
    border-bottom: 1px solid rgba(123,97,255,0.1);
    box-shadow   : 0 10px 30px rgba(123,97,255,0.07);
  }
  .nav-links.open { display: flex; }

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

/* Mobile — Standard */
@media (max-width: 768px) {
  /* Hero */
  .hero-inner   { grid-template-columns: 1fr; text-align: left; gap: 2rem; padding: 100px 5% 60px; }
  .hero-visual  { order: -1; max-width: 240px; margin: 0 auto; }
  .hero-h1      { font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -1px; white-space: normal; }
  .hero-tagline { margin: 0 0 2rem; font-size: 0.85rem; }
  .hero-btns    { justify-content: flex-start; flex-wrap: wrap; gap: 0.7rem; }
  .hero-stats   { justify-content: flex-start; gap: 1.5rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .chip-1, .chip-2, .chip-3 { display: none; }

  /* About */
  .about-grid        { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-wrap    { max-width: 280px; margin: 0 auto; }
  .about-corner-badge { width: 80px; height: 80px; bottom: -10px; right: -10px; }
  .about-corner-badge .num { font-size: 1.1rem; }

  /* Services */
  .services-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .services-grid   { grid-template-columns: 1fr; }
  .subtitle-right  { text-align: left; max-width: 100%; }

  /* Section Titles */
  .section-title { font-size: clamp(1.5rem, 7vw, 2.2rem); word-break: break-word; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row     { grid-template-columns: 1fr; }
  #contact .section-title { font-size: clamp(1.4rem, 8vw, 2rem); }

  /* Misc */
  .skills-row    { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .p-label h4    { font-size: 0.72rem; }
  .p-label span  { font-size: 0.6rem; }
  .p-label       { padding: 30px 10px 10px; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }

  /* Packages */
  .packages-grid   { grid-template-columns: 1fr; }
  .packages-header { flex-direction: column; }
  .addons-wrap     { padding: 1.4rem; }
  .addon-name      { white-space: normal; }
  .addon-desc      { white-space: normal; }
}

/* Mobile — Small */
@media (max-width: 480px) {
  #hero        { padding: 90px 4% 24px; }
  .hero-h1     { font-size: clamp(1.8rem, 9vw, 2.4rem); white-space: normal; }
  .hero-stats  { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .section-title { font-size: clamp(1.4rem, 6.5vw, 2rem); }

  .addons-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .addon-item  { padding: 0.9rem; }
  .addon-name  { font-size: 0.7rem; }
  .addon-icon  { font-size: 1.2rem; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .contact-form   { padding: 1.5rem; }
  .packages-header { flex-direction: column; align-items: flex-start; }
}
