/* ============================================================
   Abu Yousuf Siam — Portfolio CSS
   Design: Dark sidebar + vibrant gradient accent system
   Fonts: Syne (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --primary:       #6c63ff;
  --primary-dark:  #4f46e5;
  --primary-light: #a78bfa;
  --accent:        #ff6584;
  --accent2:       #43e97b;
  --bg:            #0d0d1a;
  --bg2:           #13132a;
  --bg-light:      #f4f4fb;
  --sidebar-bg:    #0a0a18;
  --sidebar-w:     280px;
  --card-bg:       #ffffff;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        #e5e7eb;
  --border-dark:   rgba(255,255,255,0.08);
  --shadow-sm:     0 2px 8px rgba(108,99,255,0.08);
  --shadow-md:     0 8px 32px rgba(108,99,255,0.15);
  --shadow-lg:     0 20px 60px rgba(108,99,255,0.2);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:  'Syne', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

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

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

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid var(--border-dark);
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.3); }

.sidebar-inner {
  display: flex; flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.5rem;
}

/* Profile Block */
.profile-block { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-dark); margin-bottom: 1.5rem; }

.profile-avatar {
  position: relative; display: inline-block; margin-bottom: 1rem;
}
.profile-avatar img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(108,99,255,0.15);
}
.status-dot {
  position: absolute; bottom: 6px; right: 6px;
  width: 14px; height: 14px;
  background: var(--accent2);
  border-radius: 50%;
  border: 2px solid var(--sidebar-bg);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(67,233,123,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(67,233,123,0); }
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin-bottom: 0.25rem;
}
.profile-role {
  font-size: 0.8rem; color: var(--primary-light);
  font-weight: 500; letter-spacing: 0.05em;
}

/* Social Links */
.social-links {
  display: flex; justify-content: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.social-links a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Nav */
.sidebar-nav { flex: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.sidebar-nav .nav-link i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(108,99,255,0.15);
  color: #fff;
}
.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  margin-top: 1.5rem;
}
.admin-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  font-size: 0.82rem; font-weight: 500;
  transition: var(--transition);
}
.admin-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Mobile Toggle */
.sidebar-toggle {
  position: fixed; top: 1rem; left: 1rem; z-index: 1100;
  width: 44px; height: 44px;
  background: var(--primary);
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--primary-dark); transform: scale(1.05); }

.sidebar-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.08); border: none;
  color: #fff; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-close:hover { background: var(--accent); }

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
}
.sidebar-overlay.active { display: block; }

/* Mobile: hide sidebar off-screen */
@media (max-width: 1199px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}
@media (max-width: 1199px) {
  .main-content { margin-left: 0; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding { padding: 6rem 0; }
.bg-light-custom { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(108,99,255,0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.section-desc {
  max-width: 600px; margin: 0 auto;
  color: var(--text-muted); font-size: 1rem;
}

/* Buttons */
.btn-primary-custom {
  display: inline-flex; align-items: center;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none;
  border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
  color: #fff;
}

.btn-outline-custom {
  display: inline-flex; align-items: center;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.35);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.shape-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; animation: float1 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; background: var(--accent); bottom: 100px; left: 10%; animation: float2 10s ease-in-out infinite; }
.shape-3 { width: 200px; height: 200px; background: var(--accent2); top: 40%; right: 20%; animation: float1 12s ease-in-out infinite reverse; }
.shape-4 { width: 150px; height: 150px; background: var(--primary-light); bottom: 20%; right: 5%; animation: float2 7s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.05); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,20px) scale(0.95); } }

.hero-section .container { position: relative; z-index: 2; }

.hero-content { max-width: 700px; padding: 2rem 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(67,233,123,0.1);
  border: 1px solid rgba(67,233,123,0.3);
  color: var(--accent2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-typed-wrap {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.typed-text { color: var(--primary-light); font-weight: 700; }
.typed-cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: rgba(255,255,255,0.55);
  font-size: 1rem; max-width: 520px;
  margin-bottom: 2rem; line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  color: #fff;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
  transition: var(--transition);
}
.hero-scroll-hint a:hover { border-color: var(--primary); color: var(--primary); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-wrap {
  position: relative; display: inline-block;
  width: 100%; max-width: 420px;
}
.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), transparent);
  z-index: 1;
}
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.about-exp-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.exp-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.exp-label { font-size: 0.72rem; opacity: 0.85; line-height: 1.3; }

.about-shape-1 {
  position: absolute; top: -1rem; left: -1rem;
  width: 80px; height: 80px;
  border: 3px solid var(--primary);
  border-radius: var(--radius-md);
  opacity: 0.3;
  animation: float1 6s ease-in-out infinite;
}
.about-shape-2 {
  position: absolute; top: 2rem; left: -2rem;
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: float2 8s ease-in-out infinite;
}

.about-subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-text { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

.about-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 1.5rem 0;
}
.info-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.info-item i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.info-label { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-value { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.info-value.available { color: var(--accent2); }

.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--bg), var(--bg2));
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  text-align: center; padding: 2rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-4px); background: rgba(108,99,255,0.08); }

.stat-icon { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.stat-counter {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  color: #fff; line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-label { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skill-item { margin-bottom: 1.5rem; }
.skill-header {
  display: flex; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.skill-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.skill-percent { font-weight: 700; font-size: 0.85rem; color: var(--primary); }

.skill-bar {
  height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-fill::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* Tech Stack */
.tech-stack {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: default;
  min-width: 80px;
}
.tech-item i { font-size: 1.8rem; color: var(--primary); }
.tech-item span { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.tech-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   RESUME SECTION
   ============================================================ */
.resume-column { height: 100%; }
.resume-col-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.resume-col-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  flex-shrink: 0;
}
.resume-col-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text);
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2rem; top: 6px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-light);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}
.timeline-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.timeline-date {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  color: var(--primary);
  background: rgba(108,99,255,0.1);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.35rem;
}
.timeline-org {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.timeline-org i { margin-right: 0.3rem; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.timeline-list { padding-left: 1rem; }
.timeline-list li {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 0.3rem; position: relative;
}
.timeline-list li::before {
  content: '▸'; color: var(--primary);
  position: absolute; left: -1rem;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  background: #fff; border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item { transition: var(--transition); }
.portfolio-item.hidden { display: none; }

.portfolio-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.portfolio-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.portfolio-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,26,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-actions { display: flex; gap: 0.75rem; }
.portfolio-zoom, .portfolio-link {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: var(--transition);
  transform: translateY(10px);
}
.portfolio-card:hover .portfolio-zoom,
.portfolio-card:hover .portfolio-link {
  transform: translateY(0);
}
.portfolio-zoom:hover, .portfolio-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.portfolio-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.portfolio-info { padding: 1.25rem; }
.portfolio-category {
  font-size: 0.72rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.4rem;
  display: block;
}
.portfolio-info h4 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.4rem;
}
.portfolio-info p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.portfolio-tech { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tech-tag {
  font-size: 0.68rem; font-weight: 600;
  background: rgba(108,99,255,0.08);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid rgba(108,99,255,0.15);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  transition: var(--transition);
}
.service-card.item-cyan::before   { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.service-card.item-orange::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.service-card.item-teal::before   { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.service-card.item-red::before    { background: linear-gradient(90deg, #ef4444, #dc2626); }
.service-card.item-indigo::before { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.service-card.item-pink::before   { background: linear-gradient(90deg, #ec4899, #db2777); }

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

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.item-cyan   .service-icon { background: rgba(6,182,212,0.1);   color: #06b6d4; }
.item-orange .service-icon { background: rgba(249,115,22,0.1);  color: #f97316; }
.item-teal   .service-icon { background: rgba(20,184,166,0.1);  color: #14b8a6; }
.item-red    .service-icon { background: rgba(239,68,68,0.1);   color: #ef4444; }
.item-indigo .service-icon { background: rgba(108,99,255,0.1);  color: var(--primary); }
.item-pink   .service-icon { background: rgba(236,72,153,0.1);  color: #ec4899; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.service-arrow {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  width: 32px; height: 32px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem;
  transition: var(--transition);
}
.service-card:hover .service-arrow {
  background: var(--primary);
  color: #fff;
  transform: rotate(-45deg);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-swiper { padding-bottom: 3rem !important; }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }

.testimonial-quote {
  font-size: 3rem; color: var(--primary);
  opacity: 0.15; line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-text {
  font-size: 0.92rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-rating { color: #f59e0b; margin-bottom: 1.25rem; font-size: 0.85rem; }

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary);
}
.testimonial-author h5 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin: 0;
}
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

.swiper-button-prev, .swiper-button-next {
  width: 40px !important; height: 40px !important;
  background: var(--primary);
  border-radius: 50%;
  color: #fff !important;
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 0.85rem !important; font-weight: 700; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.contact-info-item h4 {
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.2rem;
}
.contact-info-item p, .contact-info-item a {
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.contact-info-item a:hover { color: var(--primary); }

.contact-map {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}
.contact-map iframe { display: block; width: 100%; height: 220px; }

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 0; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem;
}
.form-group label span { color: var(--accent); }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem; color: var(--text);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
}
textarea.form-control { resize: vertical; min-height: 140px; }

.form-alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  margin-bottom: 1.25rem;
}
.form-alert.success { background: rgba(67,233,123,0.1); color: #059669; border: 1px solid rgba(67,233,123,0.3); }
.form-alert.error   { background: rgba(239,68,68,0.1);  color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: #fff; margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: #fff; margin-bottom: 1.25rem;
}
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links ul li a { font-size: 0.88rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-contact ul li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.85rem; margin-bottom: 0.6rem;
}
.footer-contact ul li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom strong { color: var(--primary-light); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 992px) {
  .about-info-grid { grid-template-columns: 1fr; }
  .about-exp-badge { right: 0; bottom: -1rem; }
}
@media (max-width: 768px) {
  .section-padding { padding: 4rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .hero-stat-divider { display: none; }
}