/* ============================================
   EASBLINK TECH - PREMIUM PORTFOLIO PAGE
   USING YOUR EXACT BRAND COLORS
   ============================================ */

/* === ROOT VARIABLES - YOUR BRAND COLORS === */
:root {
  /* YOUR EXACT BRAND COLORS - DO NOT CHANGE */
  --primary: #1e40af;
  --secondary: #f97316;
  --accent: #10b981;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;

  /* Additional Shades */
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;

  /* Spacing */
  --section-padding: 6rem;
  --container-max: 1400px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 3rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.btn ion-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-normal);
}

.btn:hover ion-icon {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
}

.logo img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-normal);
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.get-started-btn {
  color: white !important;
  background-color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--dark);
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  padding: 160px 3rem 80px;
  background: var(--light-gray);
  position: relative;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 64, 175, 0.08);
  border: 1px solid rgba(30, 64, 175, 0.2);
  color: var(--primary);
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge ion-icon {
  font-size: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 4rem auto 0;
}

.stat-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform var(--transition-normal);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-box ion-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* === FILTER SECTION === */
.filter-section {
  padding: 4rem 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.filter-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 50px;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn ion-icon {
  font-size: 1.1rem;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* === PROJECTS SECTION === */
.projects-section {
  padding: var(--section-padding) 3rem;
  background: var(--white);
}

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

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary);
}

.project-thumbnail {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--gray-100);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
}

.thumbnail-placeholder ion-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.3);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 64, 175, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-case-study {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.view-case-study:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.view-case-study ion-icon {
  font-size: 1.5rem;
}

.project-info {
  padding: 2rem;
}

.project-category-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(249, 115, 22, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-description {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--light-gray);
  border-radius: 8px;
}

.metric-mini {
  display: flex;
  flex-direction: column;
}

.metric-mini-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-mini-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}

.empty-state ion-icon {
  font-size: 6rem;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--gray);
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
  margin: auto;
  z-index: 2001;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--light-gray);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: sticky;
  top: 2rem;
}

.modal-close:hover {
  background: var(--gray-200);
  transform: scale(1.1);
}

.modal-close ion-icon {
  font-size: 1.75rem;
  color: var(--dark);
}

.modal-body {
  padding: 0 1rem 1rem;
}

/* === CASE STUDY CONTENT === */
.case-study-header {
  margin-bottom: 3rem;
  text-align: center;
}

.case-study-category {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(249, 115, 22, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.case-study-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-study-intro {
  font-size: 1.125rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.case-study-image {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.case-study-image img {
  width: 100%;
  height: auto;
}

.case-study-section {
  margin-bottom: 3rem;
}

.case-study-section h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.case-study-section p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
}

.case-study-results {
  margin-bottom: 3rem;
}

.case-study-results h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

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

.result-card {
  background: var(--light-gray);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.result-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.result-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light-gray);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--gray);
}

.feature-item ion-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.case-study-tech h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  padding: 0.625rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.tech-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.case-study-meta {
  display: flex;
  gap: 3rem;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-item ion-icon {
  font-size: 2rem;
  color: var(--secondary);
}

.meta-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.meta-value {
  display: block;
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 700;
}

.case-study-cta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

/* === CTA SECTION === */
.cta-section {
  padding: var(--section-padding) 3rem;
  background: var(--primary);
  color: var(--white);
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.cta-section h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: var(--light-gray);
}

.cta-section .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-section .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 3rem 2rem;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand span {
  color: var(--secondary);
}

.footer-tagline {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item ion-icon {
  font-size: 1.1rem;
  color: var(--secondary);
}

.contact-item a {
  color: var(--light-gray);
  transition: color var(--transition-normal);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--white);
}

.footer-title {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.footer-links a {
  color: var(--light-gray);
  transition: color var(--transition-normal);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--light-gray);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.social-links ion-icon {
  font-size: 1.25rem;
  color: var(--white);
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 1200px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .filter-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    gap: 1.5rem;
    border-top: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 120px 2rem 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .filter-section {
    padding: 3rem 2rem;
  }

  .filter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .projects-section {
    padding: 4rem 2rem;
  }

  .project-thumbnail {
    height: 240px;
  }

  .modal-content {
    margin: 1rem;
  }

  .modal-body {
    padding: 0 2rem 2rem;
  }

  .case-study-title {
    font-size: 2rem;
  }

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

  .case-study-meta {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-content {
    padding: 3rem 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
