@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
  /* Colors - Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent: #d946ef;
  --accent-hover: #c084fc;
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(226, 232, 240, 0.8);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
  --neon-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --max-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Colors - Dark Theme */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-glow: rgba(129, 140, 248, 0.25);
  --accent: #f472b6;
  --accent-hover: #f472b6;
  --border-color: #374151;
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(55, 65, 81, 0.5);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.15);
  --neon-shadow: 0 0 20px rgba(129, 140, 248, 0.35);
}

/* ==========================================
   RESETS & GLOBAL STYLING
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: -webkit-fill-available;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title-wrapper {
  margin-bottom: 40px;
  text-align: center;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Grids & Flex */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism Class */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Text Accent */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px var(--primary-glow), var(--neon-shadow);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}
.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-glass {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}
.btn-glass:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--transition-normal), height var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--card-shadow);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--neon-shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

.theme-toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.theme-toggle .moon-icon {
  opacity: 1;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Mobile Nav Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 80% 20%, var(--primary-glow) 0%, transparent 40%);
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-content {
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow), var(--neon-shadow);
  border: 1px solid var(--glass-border);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Abstract decorations */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-glow);
  top: 10%;
  right: -5%;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(217, 70, 239, 0.1);
  bottom: 10%;
  left: -5%;
}

/* ==========================================
   ABOUT US SECTION (PREVIEW)
   ========================================== */
.about-grid {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.about-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-stat-card {
  padding: 30px 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition-fast);
}

.about-stat-card:hover {
  transform: translateY(-5px);
}

.about-stat-num {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.about-bullets {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

.about-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about-bullet-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* ==========================================
   CARDS (PROJECT & TEAM)
   ========================================== */
/* Project Card */
.project-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), var(--neon-shadow);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), var(--neon-shadow);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: transform var(--transition-normal), background-color var(--transition-fast);
}

.project-overlay-link svg {
  width: 20px;
  height: 20px;
  fill: #0f172a;
}

.project-overlay-link:hover {
  background-color: var(--primary);
}

.project-overlay-link:hover svg {
  fill: #ffffff;
}

.project-card:hover .project-overlay-link {
  transform: translateY(0);
}

.project-info {
  padding: 24px;
}

.project-category {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: inline-block;
}

.project-card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Team Card */
.team-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-img-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0;
  width: 100%;
  border-radius: 0;
  border: none;
}

.team-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Ensure full portrait display */
.team-img-container img {
  object-fit: contain !important;
}

.team-card:hover .team-img-container img {
  transform: scale(1.05);
}

.team-card-info {
  padding: 20px 16px;
}

.team-card-name {
  font-size: 1.3rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.team-card-role {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.team-card-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

  .team-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), fill var(--transition-fast), transform var(--transition-fast);
    fill: var(--text-secondary);
  }

/* Testimonials Carousel */
.testimonial-carousel {
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

.testimonial-row {
  overflow: hidden;
  cursor: grab;
  width: 100%;
  padding: 12px 0; /* Allow space for hover lift (-5px) and shadows without clipping */
  margin-bottom: 12px;
}

.testimonial-row:last-child {
  margin-bottom: 0;
}

.testimonial-row:active {
  cursor: grabbing;
}

.testimonial-track {
  display: block;
  white-space: nowrap;
  font-size: 0;
  will-change: transform;
}

.testimonial-card {
  display: inline-block;
  white-space: normal;
  vertical-align: top;
  width: 360px;
  height: 180px; /* Perfect uniform height */
  margin-right: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 32px 30px 24px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  user-select: none;
  font-size: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(129, 140, 248, 0.5); /* Accent border color on hover */
  box-shadow: 0 20px 40px -15px rgba(129, 140, 248, 0.15), var(--neon-shadow);
}

.testimonial-card::before {
  content: "\201C";
  font-size: 6rem;
  color: var(--primary);
  position: absolute;
  top: -15px;
  left: 12px;
  opacity: 0.08;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  height: 48px; /* Safe space for 2 lines of text */
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.team-social-icon svg {
  width: 16px;
  height: 16px;
}

.team-social-icon:hover {
  background-color: var(--primary);
  fill: #ffffff;
  transform: translateY(-2px);
}

/* Team Card Link - Make entire card clickable */
.team-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.team-card-link:hover {
  transform: none;
}

.team-card-link:hover .team-card {
  transform: translateY(-8px);
}

.team-card-link:hover .team-img-container img {
  transform: scale(1.05);
}

/* ==========================================
   PROJECTS PAGE STYLING (FILTERING)
   ========================================= */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-tab {
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.filter-tab:hover {
  transform: translateY(-1px);
  background-color: var(--bg-tertiary);
}

.filter-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--neon-shadow);
}

.project-grid-container {
  transition: opacity var(--transition-normal);
}

/* Animating project cards hide/show */
.project-card.hide {
  display: none;
}

/* ==========================================
   CONTACT US PAGE
   ========================================== */
.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info-card {
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.contact-details {
  display: grid;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--primary);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-detail-val {
  font-weight: 600;
  font-size: 1rem;
}

.contact-socials-wrapper h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-form-card {
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-grid-full {
  grid-column: span 2;
}

.form-group {
  position: relative;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

.form-label {
  position: absolute;
  left: 20px;
  top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
  transform-origin: left top;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-24px) scale(0.85);
  color: var(--primary);
  padding: 0 6px;
  background-color: var(--bg-secondary);
  left: 14px;
}

[data-theme="dark"] .form-input:focus ~ .form-label,
[data-theme="dark"] .form-input:not(:placeholder-shown) ~ .form-label {
  background-color: var(--bg-secondary);
}

.form-status {
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================
   DYNAMIC DETAIL SUB-PAGES
   ========================================= */
/* Team Member Details Page Layout */
.member-detail-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.member-image-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow), var(--neon-shadow);
  border: 1px solid var(--glass-border);
  aspect-ratio: 1;
}

.member-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.member-info-role {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.member-info-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Skills progress bar */
.skills-container {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.skill-bar-wrapper {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0; /* Animate this via JS */
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Project Details Page Layout */
.project-detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: flex-start;
}

/* Carousel/Slider */
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-normal);
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  fill: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn-prev {
  left: 16px;
}
.slider-btn-next {
  right: 16px;
}
.slider-btn svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color var(--transition-fast), width var(--transition-fast);
}

.slider-dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 4px;
}

/* Project Detail Info Panel */
.project-detail-panel {
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

.project-detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.project-detail-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.project-meta-grid {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  margin-bottom: 32px;
}

.project-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.project-meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.project-meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 60%;
}

.project-detail-actions {
  display: flex;
  gap: 16px;
}

.project-detail-actions .btn {
  flex: 1;
}

/* ==========================================
   PROJECT FEATURE CARDS (Mazra3ti-style detail blocks)
   ========================================== */
.project-feature-card {
  padding: 28px 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.15);
}

.project-feature-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.project-feature-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.project-feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: auto;
  transition: background-color var(--transition-normal);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================
   SCROLL & ENTRY ANIMATIONS
   ========================================== */
.reveal-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Trigger classes added via JS */
.reveal-fade-in.reveal-active {
  opacity: 1;
}

.reveal-slide-up.reveal-active,
.reveal-slide-right.reveal-active,
.reveal-slide-left.reveal-active {
  opacity: 1;
  transform: translate(0);
}

/* Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ==========================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .contact-grid, .member-detail-grid, .project-detail-grid {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-title-wrapper {
    margin-bottom: 40px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Navigation Drawer */
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 40px;
    z-index: 105;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-color);
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }
  
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    order: 2;
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-full {
    grid-column: span 1;
  }
  
  /* Member & Project Detail */
  .member-detail-grid, .project-detail-grid {
    grid-template-columns: 1fr;
  }
  .project-tech-tags {
    max-width: 100%;
  }
  
  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .about-visual {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   TEAM FILTER & BADGE STYLING
   ========================================== */
.team-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  transition: opacity var(--transition-normal);
  margin-top: 40px;
}

@media (min-width: 768px) {
  .team-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .team-card-wrapper {
    grid-column: span 2 !important;
  }
  .team-card-wrapper.center-single {
    grid-column: 2 / span 2 !important;
  }
}

@media (min-width: 992px) {
  .team-grid-container {
    grid-template-columns: repeat(6, 1fr);
  }
  .team-card-wrapper {
    grid-column: auto !important;
  }
  .team-card-wrapper.span-2 {
    grid-column: span 2 !important;
  }
  .team-card-wrapper.span-3 {
    grid-column: span 3 !important;
  }
  .team-card-wrapper.span-6 {
    grid-column: span 6 !important;
  }
  .team-card-wrapper.center-single {
    grid-column: 3 / span 2 !important;
  }
}

/* Wide card for single‑person full‑width view */
.team-card-wrapper.wide-card {
  grid-column: 1 / -1 !important;
}


.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px 20px;
}

.team-card-desc {
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}

.team-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: fit-content;
  align-self: center;
}

.team-badge.frontend {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.team-badge.backend {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.team-badge.mobile {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.team-badge.uiux {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.team-badge.qa {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.team-card-wrapper.hide {
  display: none !important;
}

.team-card-content-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   TEAM MEMBER PROFILE DETAIL STYLING
   ========================================== */
.member-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.member-header {
  margin: 60px 0 40px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  transition: gap var(--transition-fast);
}

.back-link:hover {
  gap: 12px;
}

.member-hero-section {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: start;
}

.member-image {
  width: 350px;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow), var(--neon-shadow);
  border: 1px solid var(--glass-border);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.member-role {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.member-intro {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.member-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.skills-section {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: var(--border-radius-md);
  margin-bottom: 60px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

.skills-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: var(--font-heading);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-item {
  margin-bottom: 28px;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-percent {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  animation: fillBar 1.5s ease forwards;
}

.skill-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.skill-details li {
  margin-bottom: 4px;
  margin-left: 16px;
}

@keyframes fillBar {
  from { width: 0; }
}

.about-section {
  margin-top: 60px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .member-hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .member-image {
    width: 100%;
    height: 320px;
  }
  .member-content h1 {
    font-size: 2rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-section {
    padding: 30px 20px;
  }
}

