/* =============================================
   FARSHAD SHARIFI PORTFOLIO - style.css
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --primary:       #6c63ff;
  --primary-dark:  #574fd6;
  --primary-light: #a89cff;
  --secondary:     #ff6584;
  --accent:        #43e97b;
  --dark:          #0d0d1a;
  --dark-2:        #13132b;
  --dark-3:        #1a1a35;
  --dark-4:        #22224a;
  --text:          #e2e2f0;
  --text-muted:    #9090b8;
  --border:        rgba(108, 99, 255, 0.2);
  --card-bg:       rgba(26, 26, 53, 0.8);
  --glass:         rgba(255, 255, 255, 0.04);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow:   0 0 40px rgba(108, 99, 255, 0.25);
  --radius:        16px;
  --radius-sm:     8px;
  --radius-lg:     24px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Vazirmatn', sans-serif;
  --nav-h:         72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--dark);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- Selection ---- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Background Blobs ---- */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px; height: 500px;
  background: var(--secondary);
  bottom: 10%; left: -150px;
  animation-delay: -4s;
}

.blob-3 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Sections ---- */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

section:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-title span {
  color: var(--primary-light);
  position: relative;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 24px;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* =============================================
   NAVBAR
   ============================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  height: var(--nav-h);
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 13, 26, 0.97);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-logo:hover { color: var(--primary-light); }

.nav-logo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(108, 99, 255, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: 100%;
  background: rgba(13, 13, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition);
}

.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text);
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--border);
}

.nav-mobile .nav-cta {
  margin-top: 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  border-radius: 50px !important;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
}

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

.hero-content { order: 1; }
.hero-visual  { order: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-title .name {
  display: block;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 2em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar-ring {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-avatar-ring::before,
.hero-avatar-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: ringRotate 6s linear infinite;
}

.hero-avatar-ring::before {
  border-top-color: var(--primary);
  border-right-color: var(--primary);
}

.hero-avatar-ring::after {
  border-bottom-color: var(--secondary);
  border-left-color: var(--secondary);
  animation-direction: reverse;
  animation-duration: 4s;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--dark-3);
  box-shadow: var(--shadow-glow);
}

.hero-float-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card:nth-child(2) { top: 10%; left: -20px; animation-delay: 0s; }
.hero-float-card:nth-child(3) { bottom: 15%; right: -20px; animation-delay: -2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.float-icon {
  font-size: 1.4rem;
}

/* جلوگیری از لرزش هنگام تایپ: رزرو عرض ثابت برای متن */
#typewriter {
  display: inline-block;
  white-space: nowrap;
  min-width: 28ch;   /* قابل تنظیم */
}

html, body {
  overflow-x: clip; /* بهتر از hidden در مرورگرهای جدید */
}

/* اگر clip پشتیبانی نشد */
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* =============================================
   ABOUT
   ============================================= */
#about { padding: 100px 0; }

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

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

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.about-img-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-img-frame:hover img {
  transform: scale(1.04);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.7) 0%, transparent 60%);
}

.about-exp-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.about-exp-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-exp-badge span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-content h2 span { color: var(--primary-light); }

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.about-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* =============================================
   SKILLS (FINAL)
   ============================================= */

/* ضروری برای جلوگیری از بیرون‌زدگی‌های عجیب در موبایل */
*, *::before, *::after { box-sizing: border-box; }

#skills { padding: 100px 0; }

/* گرید اصلی باید روی والدِ کارت‌ها باشد */
.skills-categories{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

/* هر کارت = یک ستون (نه گرید با min width بزرگ) */
.skill-category{
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);

  display: block;      /* مهم: گرید داخلی حذف شد */
  min-width: 0;        /* مهم: جلوگیری از overflow در grid/flex */
  width: 100%;
}

.skill-category:hover{
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.skill-cat-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;

  min-width: 0;
}

.skill-cat-icon{
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.skill-cat-header h3{
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  min-width: 0;
}

.skill-items{
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.skill-item{ min-width: 0; }

.skill-info{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  min-width: 0;
}

.skill-name{
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);

  min-width: 0;
  overflow-wrap: anywhere; /* متن‌های طولانی باعث بیرون‌زدگی نشوند */
}

.skill-pct{
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 700;
  flex: 0 0 auto;
}

.skill-bar{
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill{
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated{
  width: var(--pct);
}

/* موبایل: تک ستونه + پدینگ کمتر */
@media (max-width: 576px){
  #skills{ padding: 70px 0; }

  .skills-categories{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-category{
    padding: 18px 16px;
  }
}


/* =============================================
   SERVICES
   ============================================= */
#services { padding: 100px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(108, 99, 255, 0.2);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags span {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* =============================================
   RESUME / TIMELINE
   ============================================= */
#resume { padding: 100px 0; }

.resume-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.resume-tab {
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.resume-tab:hover {
  color: var(--text);
  border-color: var(--primary);
}

.resume-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.timeline-panel {
  display: none;
}

.timeline-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
  position: relative;
  padding-right: 60px;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  right: 12px;
  top: 20px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--dark);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
  z-index: 1;
}

.timeline-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all var(--transition);
}

.timeline-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateX(-4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-badge {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-company {
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* Certificates Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cert-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.cert-year {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* =============================================
   CONTACT
   ============================================= */
#contact { padding: 100px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.contact-info > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.contact-item:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.08);
  transform: translateX(-4px);
}

.contact-item-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-item-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  border: 1px solid var(--border);
  background: var(--glass);
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.15);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label span {
  color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all var(--transition);
  outline: none;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--dark-3);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--secondary);
}

.form-error {
  font-size: 0.78rem;
  color: var(--secondary);
  min-height: 1em;
}

.btn-submit {
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

.form-success {
  grid-column: 1 / -1;
  background: rgba(67, 233, 123, 0.1);
  border: 1px solid rgba(67, 233, 123, 0.3);
  color: var(--accent);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand .footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  border: 1px solid var(--border);
  background: var(--glass);
  transition: all var(--transition);
  text-decoration: none;
}

.footer-socials a:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.15);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links ul li a::before {
  content: '←';
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(6px);
  transition: all var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-light);
  padding-right: 6px;
}

.footer-links ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact p span:first-child {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom p a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.6);
}

/* =============================================
   SECTION HEADER (shared)
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-header h2 span {
  color: var(--primary-light);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* =============================================
   BUTTONS (shared)
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-3px);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { order: 2; }
  .hero-visual  { order: 1; }

  .hero-desc { margin: 0 auto 36px; }

  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-avatar-ring {
    width: 240px;
    height: 240px;
  }

  .hero-float-card:nth-child(2) { left: -10px; }
  .hero-float-card:nth-child(3) { right: -10px; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: 1;
  }

  .btn-submit {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .timeline::before { right: 16px; }
  .timeline-item { padding-right: 48px; }
  .timeline-dot { right: 8px; }

  .about-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-stats { gap: 20px; }

  .hero-float-card { display: none; }

  .resume-tabs { gap: 8px; }
  .resume-tab { padding: 10px 18px; font-size: 0.82rem; }

  .contact-form-wrap { padding: 24px 16px; }

  .scroll-top { bottom: 20px; left: 20px; }
}

/* =============================================
   ANIMATIONS & UTILITIES
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor glow (optional) */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}

/* ---- Android Apps Section ---- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(12px);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(108, 99, 255, 0.45);
}

.app-card-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(255, 101, 132, 0.12));
  min-height: 220px;
}

.app-card-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-image img {
  transform: scale(1.05);
}

.app-card-content {
  padding: 24px;
}

.app-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.14);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 700;
}

.app-badge-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.app-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
  min-height: 90px;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.app-features li {
  position: relative;
  color: var(--text);
  padding-right: 20px;
  font-size: 0.95rem;
}

.app-features li::before {
  content: "✔";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card-content {
    padding: 20px;
  }

  .app-desc {
    min-height: auto;
  }

  .app-actions {
    flex-direction: column;
  }

  .app-actions .btn {
    width: 100%;
    justify-content: center;
  }
}