/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-card: rgba(255,255,255,0.7);
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(79,70,229,0.12);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.3);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.06);
  --nav-bg: rgba(255,255,255,0.85);
  --gradient-1: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-text: linear-gradient(135deg, #4F46E5, #7C3AED);
  --success: #10B981;
  --error: #EF4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg: #0B1121;
  --bg-alt: #111827;
  --bg-card: rgba(15,23,42,0.7);
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255,255,255,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(79,70,229,0.2);
  --glass-bg: rgba(15,23,42,0.5);
  --glass-border: rgba(255,255,255,0.05);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
  --nav-bg: rgba(11,17,33,0.85);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.loader {
  width: 48px; height: 48px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all var(--transition);
}
.header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 10px 0;
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot {
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
}

.nav-menu { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  position: relative; padding: 4px 0; letter-spacing: 0.3px;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--gradient-1);
  border-radius: 2px; transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 1.1rem;
  transition: all var(--transition);
  background: var(--bg-alt);
}
.theme-toggle:hover { color: var(--primary); background: var(--primary); color: white; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: 100px 0; position: relative;
}
.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
  background: rgba(79,70,229,0.1); padding: 6px 20px; border-radius: 50px;
}
.section-title {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-line {
  width: 60px; height: 4px; margin: 20px auto 0;
  background: var(--gradient-1); border-radius: 4px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--primary); background: rgba(79,70,229,0.1);
  padding: 8px 20px; border-radius: 50px; margin-bottom: 20px;
  border: 1px solid rgba(79,70,229,0.2);
}
.hero-title {
  font-size: 3.5rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -1.5px; margin-bottom: 12px;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 20px;
  font-weight: 500;
}
.hero-subtitle .divider { color: var(--primary); margin: 0 8px; opacity: 0.5; }
.hero-description {
  font-size: 1.05rem; color: var(--text-secondary);
  margin-bottom: 32px; max-width: 540px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 12px; font-weight: 600;
  font-size: 0.95rem; transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gradient-1); color: white;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79,70,229,0.4);
}
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary); color: white; transform: translateY(-3px);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.hero-stats {
  display: flex; gap: 40px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem; font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  margin-left: 2px;
}
.stat-label {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  margin-top: 4px; font-weight: 500;
}

.hero-image { display: flex; justify-content: center; position: relative; }
.hero-img-wrapper {
  position: relative; width: 380px; height: 380px;
}
.hero-img-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--gradient-2); display: flex;
  align-items: center; justify-content: center;
  font-size: 6rem; color: rgba(255,255,255,0.8);
  box-shadow: 0 20px 60px rgba(79,70,229,0.3);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating-badge {
  position: absolute; padding: 10px 18px; border-radius: 12px;
  background: var(--glass-bg); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  color: var(--text); animation: float 5s ease-in-out infinite;
}
.badge-1 { top: 20px; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 60px; left: -30px; animation-delay: 1s; }
.badge-3 { bottom: -10px; right: 20px; animation-delay: 2s; }

.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%; opacity: 0.1;
}
.shape-1 {
  width: 400px; height: 400px; background: var(--primary);
  top: -100px; right: -100px; animation: pulse 8s ease-in-out infinite;
}
.shape-2 {
  width: 250px; height: 250px; background: var(--accent);
  bottom: -50px; left: -50px; animation: pulse 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 150px; height: 150px; background: var(--primary-light);
  top: 50%; left: 50%; animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.2); opacity: 0.15; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg-alt);
}
.about-content {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
  align-items: start;
}
.about-img-wrapper {
  width: 100%; max-width: 400px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-hover);
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 1; background: var(--gradient-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; color: rgba(255,255,255,0.7);
}
.about-text p {
  color: var(--text-secondary); margin-bottom: 16px;
  font-size: 1rem; line-height: 1.8;
}
.about-intro { font-size: 1.15rem !important; font-weight: 500; color: var(--text) !important; }
.about-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 24px 0;
}
.about-detail-item h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text);
}
.about-detail-item ul { padding-left: 20px; }
.about-detail-item li {
  list-style: disc; color: var(--text-secondary);
  margin-bottom: 6px; font-size: 0.9rem;
}
.about-mission {
  background: var(--glass-bg); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 24px; margin-top: 16px;
}
.about-mission h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text);
}
.about-mission p { margin-bottom: 0; }

/* ============================================
   SKILLS
   ============================================ */
.skills-categories { display: flex; flex-direction: column; gap: 48px; }
.skill-category-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.skill-category-title i { color: var(--primary); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card {
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 20px; border: 1px solid var(--border);
  transition: all var(--transition);
}
.skill-card:hover {
  border-color: var(--primary-light); box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.skill-info { display: flex; justify-content: space-between; margin-bottom: 10px; }
.skill-name { font-weight: 600; font-size: 0.9rem; }
.skill-percent { color: var(--primary); font-weight: 700; font-size: 0.85rem; }
.skill-bar {
  height: 6px; background: var(--bg-alt); border-radius: 4px;
  overflow: hidden;
}
.skill-progress {
  height: 100%; border-radius: 4px;
  background: var(--gradient-1); width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card { padding: 32px; border-radius: var(--radius); }
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition);
}
.glass:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-1); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.4rem; color: white; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.service-card p {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filters, .blog-filters {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 500; color: var(--text-secondary); background: var(--bg-alt);
  border: 1px solid var(--border); transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary); box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.portfolio-card {
  border-radius: var(--radius); overflow: hidden;
}
.portfolio-img {
  height: 180px; background: var(--gradient-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(255,255,255,0.5);
}
.portfolio-body { padding: 24px; }
.portfolio-category {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 8px;
}
.portfolio-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.portfolio-client, .portfolio-challenge, .portfolio-strategy, .portfolio-tools {
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px;
  line-height: 1.6;
}
.portfolio-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 16px 0;
}
.result-item { text-align: center; }
.result-label {
  display: block; font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.result-value { font-size: 1.3rem; font-weight: 800; }
.result-value.up { color: var(--success); }
.result-value.down { color: var(--primary); }

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.experience { background: var(--bg-alt); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-left: 64px; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 16px; top: 28px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient-1); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-content {
  padding: 28px; border-radius: var(--radius);
}
.timeline-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.timeline-date {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
}
.timeline-badge {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; background: var(--success); color: white;
  padding: 2px 10px; border-radius: 50px;
}
.timeline-content h3 { font-size: 1.2rem; font-weight: 700; }
.timeline-content h4 { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 12px; }
.timeline-content ul { padding-left: 20px; }
.timeline-content li {
  list-style: disc; color: var(--text-secondary);
  margin-bottom: 6px; font-size: 0.9rem; line-height: 1.6;
}
.timeline-location {
  font-size: 0.85rem; font-weight: 400; color: var(--text-muted);
}
.timeline-tech {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.timeline-tech span {
  font-size: 0.75rem; font-weight: 500; padding: 4px 12px;
  border-radius: 50px; background: rgba(79,70,229,0.1);
  color: var(--primary);
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.cert-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cert-card {
  padding: 32px; border-radius: var(--radius); text-align: center;
}
.cert-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white;
}
.cert-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cert-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.cert-date {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   EDUCATION
   ============================================ */
.education { background: var(--bg); }
.education-content { max-width: 700px; margin: 0 auto; }
.education-card {
  display: flex; gap: 24px; padding: 36px;
  border-radius: var(--radius); align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.education-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 16px; background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white;
}
.education-details h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.education-institute {
  font-size: 1rem; color: var(--text-secondary); margin-bottom: 4px;
}
.education-meta {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px;
}
.edu-divider { color: var(--border); margin: 0 12px; }
.education-project {
  background: var(--bg-alt); padding: 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.education-project h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.education-project p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 600px) {
  .education-card { flex-direction: column; padding: 24px; }
  .education-icon { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* ============================================
   TOOLS
   ============================================ */
.tools { background: var(--bg-alt); }
.tools-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.tool-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 16px; background: var(--bg-card);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: all var(--transition);
}
.tool-item:hover {
  border-color: var(--primary-light); transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.tool-icon {
  width: 48px; height: 48px; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--primary);
}
.tool-icon img { width: 36px; height: 36px; }
.tool-item span { font-size: 0.85rem; font-weight: 600; text-align: center; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.blog-card { border-radius: var(--radius); overflow: hidden; }
.blog-img {
  height: 180px; background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.4);
}
.blog-body { padding: 24px; }
.blog-category {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 8px;
}
.blog-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-body > p {
  color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6;
  margin-bottom: 16px;
}
.blog-meta {
  display: flex; gap: 16px; margin-bottom: 16px;
  font-size: 0.78rem; color: var(--text-muted);
}
.blog-meta i { margin-right: 4px; }

/* ============================================
   FREELANCE
   ============================================ */
.freelance { background: var(--bg-alt); }
.freelance-intro {
  text-align: center; max-width: 700px; margin: 0 auto 48px;
  color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8;
}
.freelance-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.freelance-card {
  padding: 24px; border-radius: var(--radius-sm); text-align: center;
}
.freelance-card i {
  font-size: 2rem; color: var(--primary); margin-bottom: 12px;
}
.freelance-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.freelance-card p {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6;
}
.freelance-cta { text-align: center; margin-top: 48px; }

/* ============================================
   CONTACT
   ============================================ */
.contact-content {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
}
.contact-form-wrapper { padding: 32px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px;
}
.required { color: var(--error); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); transition: all var(--transition);
  font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select option { background: var(--bg); color: var(--text); }
.btn-submit { width: 100%; justify-content: center; padding: 16px; }

.contact-info-card {
  padding: 32px; border-radius: var(--radius);
}
.contact-info-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.contact-info-card > p {
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 24px; line-height: 1.7;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item i {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; background: rgba(79,70,229,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1rem;
}
.contact-item div span { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.contact-item a { font-size: 0.95rem; font-weight: 600; color: var(--text); transition: color var(--transition); }
.contact-item a:hover { color: var(--primary); }

.contact-social {
  display: flex; gap: 12px;
}
.contact-social a {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--text-secondary);
  font-size: 1.1rem; transition: all var(--transition);
  border: 1px solid var(--border);
}
.contact-social a:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-alt); padding: 60px 0 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.footer-brand .logo { font-size: 1.5rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.7; max-width: 300px;
}
.footer h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 20px;
}
.footer-links ul, .footer-services ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-services a {
  font-size: 0.9rem; color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-services a:hover { color: var(--primary); }
.footer-social-icons { display: flex; gap: 12px; }
.footer-social-icons a {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.footer-social-icons a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient-1); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 4px 16px rgba(79,70,229,0.3);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(79,70,229,0.4); }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================
   BLOG POST PAGES
   ============================================ */
.blog-post { padding-top: 140px; }
.blog-post-featured-img { margin-bottom: 40px; }
.blog-post-featured-img svg { display: block; }
.blog-post-header { text-align: center; max-width: 800px; margin: 0 auto 48px; }
.blog-post-header h1 {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -1px;
  line-height: 1.25; margin: 16px 0 20px;
}
.blog-post-meta {
  display: flex; justify-content: center; gap: 24px;
  font-size: 0.85rem; color: var(--text-muted);
}
.blog-post-meta i { margin-right: 6px; }
.blog-post-content {
  max-width: 780px; margin: 0 auto;
}
.blog-post-content h2 {
  font-size: 1.6rem; font-weight: 700; margin: 40px 0 16px;
  letter-spacing: -0.5px;
}
.blog-post-content h3 {
  font-size: 1.2rem; font-weight: 600; margin: 32px 0 12px;
}
.blog-post-content p {
  color: var(--text-secondary); font-size: 1.05rem;
  line-height: 1.85; margin-bottom: 16px;
}
.blog-post-content strong { color: var(--text); }
.blog-post-content a { color: var(--primary); text-decoration: underline; }
.blog-post-content a:hover { color: var(--primary-dark); }

@media (max-width: 600px) {
  .blog-post-header h1 { font-size: 1.6rem; }
  .blog-post-content p { font-size: 0.95rem; }
  .blog-post-meta { flex-direction: column; gap: 8px; align-items: center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .hero-img-wrapper { width: 300px; height: 300px; }
  .hero-img-placeholder { font-size: 4.5rem; }
  .services-grid, .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
  .freelance-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--nav-bg); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; padding: 100px 40px 40px;
    gap: 24px; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  }
  .nav-menu.open { right: 0; }
  .hero-content, .about-content, .contact-content { grid-template-columns: 1fr; }
  .hero-content { gap: 40px; }
  .hero-image { order: -1; }
  .hero-img-wrapper { width: 250px; height: 250px; }
  .hero-img-placeholder { font-size: 3.5rem; }
  .hero-stats { justify-content: center; gap: 24px; }
  .about-image { display: flex; justify-content: center; }
  .about-img-wrapper { max-width: 300px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .blog-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .freelance-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .section-title { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-subtitle .divider { display: none; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-number { font-size: 1.8rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .freelance-grid { grid-template-columns: 1fr; }
  .portfolio-filters, .blog-filters { gap: 6px; }
  .filter-btn { font-size: 0.75rem; padding: 6px 14px; }
  .floating-badge { display: none; }
  .experience { padding: 60px 0; }
}
