/* Index Page Specific Styles for Jaffar Alromaih's Portfolio */

/* ============================================
   HERO SECTION - MODERN REDESIGN
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px 0;
  background: linear-gradient(135deg, #0a2463 0%, #172554 25%, #1e3a8a 50%, #1e40af 75%, #2563eb 100%);
}

/* Animated Background Shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  bottom: -50px;
  left: -50px;
  animation-delay: 5s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  top: 50%;
  left: 10%;
  animation-delay: 10s;
}

.hero-shape-4 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  bottom: 20%;
  right: 15%;
  animation-delay: 15s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-30px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(20px) rotate(240deg) scale(0.9);
  }
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 2;
}

/* Profile Image Wrapper */
.hero-profile-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-profile-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 20s linear infinite;
}

.hero-profile-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 300% 300%;
  animation: gradient 5s ease infinite;
  filter: blur(8px);
  opacity: 0.5;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-profile-image {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.hero-profile-image:hover {
  transform: scale(1.05);
}

.hero-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-profile-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  z-index: 3;
}

.hero-profile-badge i {
  font-size: 1.5rem;
  color: white;
}

/* Hero Content */
.hero-content {
  padding: 2rem 0;
}

/* Greeting Badge */
.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}

.greeting-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.greeting-text {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

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

/* Name */
.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-first-name {
  display: block;
  color: #f1f5f9;
}

.hero-last-name {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Title */
.hero-title-wrapper {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.title-prefix {
  color: #94a3b8;
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.title-main {
  color: #e2e8f0;
  display: block;
}

.hero-title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 2px;
}

/* Qualifications */
.hero-qualifications {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.qualification-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 1rem;
}

.qualification-item i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  color: #3b82f6;
  font-size: 0.9rem;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.btn-hero-primary,
.btn-hero-secondary,
.btn-hero-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  color: white;
}

.btn-hero-secondary {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

.btn-hero-tertiary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-hero-tertiary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  color: white;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats Section */
.hero-stats-section {
  margin-top: 3rem;
  padding: 1.5rem 0;
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

.hero-stat-card {
  background: rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 140px;
}

.hero-stat-card:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.stat-icon i {
  color: white !important;
  font-size: 1.25rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.stat-value {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero section stat labels only */
.hero-section .stat-label {
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.stat-description {
  color: #f0f9ff !important;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* About Section */
.hero-about {
  margin-top: 2rem;
  padding: 1.5rem 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}

.hero-about-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.hero-about-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.hero-about-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  margin-top: 2rem;
  text-align: center;
  animation: fadeInUp 0.6s ease 0.7s forwards;
  opacity: 0;
}

.scroll-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.scroll-link:hover {
  color: #3b82f6;
}

.scroll-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-icon {
  animation: bounce 2s ease-in-out infinite;
}

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

/* Full-width hero section */
.hero-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

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

@media (max-width: 991px) {
  .hero-section {
    padding: 80px 0 40px 0;
  }

  .hero-name {
    font-size: 2.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-profile-ring {
    width: 300px;
    height: 300px;
  }

  .hero-profile-image {
    width: 240px;
    height: 240px;
  }

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

@media (max-width: 767px) {
  .hero-section {
    padding: 100px 0 40px 0;
    min-height: auto;
  }

  .hero-profile-wrapper {
    order: -1;
    margin-bottom: 2rem;
  }

  .hero-profile-ring {
    width: 260px;
    height: 260px;
  }

  .hero-profile-image {
    width: 210px;
    height: 210px;
  }

  .hero-profile-badge {
    width: 50px;
    height: 50px;
  }

  .hero-profile-badge i {
    font-size: 1.25rem;
  }

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

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

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-qualifications {
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-tertiary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-section {
    margin-top: 2rem;
  }

  .hero-stat-card {
    min-height: 130px;
  }
}

@media (max-width: 576px) {
  .hero-name {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .title-prefix {
    font-size: 0.875rem;
  }

  .hero-qualifications {
    gap: 0.5rem;
  }

  .qualification-item {
    font-size: 0.9rem;
  }

  .hero-about-content {
    padding: 1rem;
  }

  .hero-about-text {
    font-size: 0.875rem;
  }

  .hero-profile-ring {
    width: 220px;
    height: 220px;
  }

  .hero-profile-image {
    width: 180px;
    height: 180px;
  }

  .hero-stat-card {
    min-height: 120px;
    padding: 1rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
  }

  .stat-icon i {
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-description {
    font-size: 0.7rem;
  }
}

/* ============================================
   WORK EXPERIENCE SECTION - INDEX PAGE
   ============================================ */

/* Section Header */
.experience-header {
  position: relative;
  z-index: 1;
}

.experience-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

/* Total Experience Overview Card */
.total-experience-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.95) 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(10, 36, 99, 0.15);
  border: 2px solid rgba(33, 150, 243, 0.2);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.total-experience-card:hover {
  box-shadow: 0 12px 40px rgba(10, 36, 99, 0.2);
  border-color: rgba(33, 150, 243, 0.35);
  transform: translateY(-2px);
}

.experience-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.experience-icon {
  font-size: 2.5rem;
  color: white;
}

.total-experience-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}

.total-experience-duration {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin-bottom: 1.25rem;
}

.highlight-number {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Experience Stats */
.experience-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-blue);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--deep-blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(33, 150, 243, 0.3), transparent);
}

/* Subsection Header */
.subsection-header {
  position: relative;
  z-index: 1;
}

.subsection-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subsection-icon {
  color: var(--blue);
  font-size: 1.5rem;
}

.subsection-description {
  font-size: 1rem;
  color: var(--secondary-text);
  margin-bottom: 0;
}

/* Experience Card Wrapper */
.experience-card-wrapper {
  position: relative;
  z-index: 1;
}

.experience-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(10, 36, 99, 0.12);
  border: 1px solid rgba(33, 150, 243, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
  box-shadow: 0 12px 40px rgba(10, 36, 99, 0.2);
  border-color: rgba(33, 150, 243, 0.3);
  transform: translateY(-4px);
}

/* Company Logo Wrapper */
.company-logo-wrapper {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(3, 169, 244, 0.05) 100%);
}

.company-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
  padding: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Company Info */
.company-info {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.position-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.company-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1rem;
}

.employment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.employment-type {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
}

.employment-type.intern {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.location-badge {
  background: rgba(33, 150, 243, 0.1);
  color: var(--blue);
  border: 1px solid rgba(33, 150, 243, 0.2);
}

/* Experience Details */
.experience-details {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.details-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.details-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0;
}

.responsibilities-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.responsibilities-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--secondary-text);
  line-height: 1.5;
}

.responsibilities-list li i {
  color: var(--blue);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.duration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(33, 150, 243, 0.1);
}

.duration-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary-text);
  font-weight: 500;
}

.duration-info i {
  color: var(--blue);
}

.duration-badge {
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Certificate Preview */
.certificate-preview-wrapper {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-preview-wrapper a {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.certificate-thumbnail {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 36, 99, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  padding: 1rem;
  text-align: center;
}

.certificate-overlay i {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.certificate-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
}

.certificate-preview-wrapper a:hover .certificate-overlay {
  opacity: 1;
}

.certificate-preview-wrapper a:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Freelance Section */
.freelance-section-wrapper {
  position: relative;
  z-index: 1;
}

.freelance-placeholder-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 247, 250, 0.95) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 184, 148, 0.15);
  border: 2px solid rgba(0, 184, 148, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.freelance-placeholder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
}

.freelance-placeholder-card:hover {
  box-shadow: 0 12px 40px rgba(0, 184, 148, 0.25);
  border-color: rgba(0, 184, 148, 0.4);
}

.freelance-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.freelance-icon {
  font-size: 2.75rem;
  color: white;
}

.freelance-placeholder-title {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.freelance-placeholder-description {
  font-size: 1rem;
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.freelance-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 184, 148, 0.1);
  border: 1px solid rgba(0, 184, 148, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00b894;
}

.feature-tag i {
  color: #00b894;
}

/* Freelance CTA Button - Large, prominent button outside card */
.btn-freelance-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
  transition: all 0.3s ease;
  min-width: 280px;
}

.btn-freelance-cta:hover {
  background: linear-gradient(135deg, #00a383 0%, #00b8ba 100%);
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.5);
  transform: translateY(-3px);
  color: white;
}

.btn-freelance-cta.disabled {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.8;
}

.btn-freelance-cta.disabled:hover {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  box-shadow: none;
  transform: none;
}

.coming-soon-text {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-text);
  font-weight: 500;
}

.coming-soon-text i {
  margin-right: 0.3rem;
}

/* ============================================
   NEW FREELANCING CARD STYLES
   ============================================ */

.freelance-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.freelance-cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.cert-icon-small {
  color: #3b82f6;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.freelance-cert-item strong {
  font-size: 0.875rem;
  color: var(--deep-blue);
  display: block;
}

.freelance-cert-item small {
  font-size: 0.7rem;
  color: #64748b;
  font-family: 'Courier New', monospace;
}

.freelance-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--primary-text);
}

.cert-count {
  font-size: 0.85rem;
  color: var(--secondary-text);
  margin-top: 0.75rem;
}

.cert-count i {
  margin-right: 0.35rem;
}

/* ============================================
   FREELANCING CARD SPECIFIC STYLES
   ============================================ */

.freelancing-card {
  overflow: hidden;
}

/* Add padding to the columns inside freelancing card */
.freelancing-card .col-lg-2,
.freelancing-card .col-md-3 {
  padding: 1.25rem;
}

.freelancing-card .col-lg-7,
.freelancing-card .col-md-6 {
  padding: 1.25rem 1rem;
}

.freelancing-card .col-lg-3,
.freelancing-card .col-md-3:last-child {
  padding: 1.25rem;
}

/* Smaller logo wrapper for freelancing card */
.freelancing-card .company-logo-wrapper {
  padding: 0.75rem !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

/* Larger logo image for freelancing card */
.freelancing-card .company-logo {
  width: 90px !important;
  height: 90px !important;
  border-radius: 16px;
}

/* ============================================
   RESPONSIVE DESIGN - WORK EXPERIENCE
   ============================================ */

@media (max-width: 991px) {
  .experience-title {
    font-size: 2rem;
  }

  .experience-subtitle {
    font-size: 1rem;
  }

  .total-experience-card {
    padding: 1.5rem;
  }

  .experience-icon-wrapper {
    width: 65px;
    height: 65px;
    margin-bottom: 1rem;
  }

  .experience-icon {
    font-size: 2rem;
  }

  .total-experience-title {
    font-size: 1.5rem;
  }

  .total-experience-duration {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .subsection-title {
    font-size: 1.5rem;
  }

  .experience-card {
    margin-bottom: 1rem;
  }

  /* Make experience card columns stack vertically on tablet */
  .experience-card .row {
    flex-direction: column;
  }

  .experience-card .row > div {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .company-logo-wrapper {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .company-logo {
    width: 70px;
    height: 70px;
  }

  .company-info {
    padding: 1rem;
    text-align: center;
  }

  .position-title {
    font-size: 1.15rem;
  }

  .company-name {
    font-size: 0.95rem;
  }

  .employment-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .experience-details {
    padding: 1rem;
  }

  .certificate-preview-wrapper {
    padding: 1rem;
  }

  .freelance-placeholder-card {
    padding: 1.75rem 1.5rem;
  }

  .freelance-icon-wrapper {
    width: 75px;
    height: 75px;
  }

  .freelance-icon {
    font-size: 2.25rem;
  }

  .freelance-placeholder-title {
    font-size: 1.5rem;
  }

  .btn-freelance-cta {
    font-size: 1.05rem;
    padding: 1.1rem 2rem;
    min-width: 240px;
  }
}

@media (max-width: 767px) {
  .experience-title {
    font-size: 1.75rem;
  }

  .experience-subtitle {
    font-size: 0.9rem;
  }

  .total-experience-card {
    padding: 1.25rem;
  }

  .btn-freelance-cta {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-freelance-cta {
    font-size: 0.95rem;
    padding: 0.875rem 1.25rem;
  }

  .experience-icon-wrapper {
    width: 55px;
    height: 55px;
  }

  .experience-icon {
    font-size: 1.5rem;
  }

  .total-experience-title {
    font-size: 1.25rem;
  }

  .total-experience-duration {
    font-size: 0.9rem;
  }

  .experience-stats {
    gap: 1rem;
  }

  .stat-item {
    width: calc(50% - 0.5rem);
  }

  .stat-divider {
    display: none;
  }

  .subsection-title {
    font-size: 1.3rem;
  }

  .subsection-icon {
    font-size: 1.25rem;
  }

  .subsection-description {
    font-size: 0.9rem;
  }

  .experience-card {
    border-radius: 12px;
  }

  .company-logo-wrapper {
    padding: 0.75rem;
    background: transparent;
  }

  .company-logo {
    width: 50px;
    height: 50px;
  }

  .company-info {
    padding: 0.75rem;
    text-align: left;
  }

  .position-title {
    font-size: 1.05rem;
  }

  .company-name {
    font-size: 0.9rem;
  }

  .employment-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .meta-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    align-self: flex-start;
  }

  .experience-details {
    padding: 0.75rem;
  }

  .details-header {
    margin-bottom: 0.75rem;
  }

  .details-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .details-title {
    font-size: 0.9rem;
  }

  .responsibilities-list li {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  .duration-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  .duration-badge {
    align-self: flex-start;
  }

  .certificate-preview-wrapper {
    padding: 0.75rem;
  }

  .certificate-thumbnail {
    max-width: 100%;
  }

  .freelance-placeholder-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .freelance-icon-wrapper {
    width: 65px;
    height: 65px;
    margin-bottom: 1rem;
  }

  .freelance-icon {
    font-size: 2rem;
  }

  .freelance-placeholder-title {
    font-size: 1.3rem;
  }

  .freelance-placeholder-description {
    font-size: 0.9rem;
  }

  .freelance-features {
    justify-content: center;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }

  .btn-freelance-cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .coming-soon-text {
    font-size: 0.75rem;
  }
}

/* ============================================
   PROJECTS SECTION - MODERN CARD DESIGN
   ============================================ */

/* Projects Section Background */
#projects {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 50%, #81d4fa 100%);
  transition: background 0.8s ease;
  position: relative;
  overflow: hidden;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(3, 169, 244, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Section Header */
.projects-header {
  position: relative;
  z-index: 1;
}

.projects-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

/* Projects Grid - 3 Column Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* Project Card Base Styles */
.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(10, 36, 99, 0.18);
  border-color: rgba(33, 150, 243, 0.35);
}

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

/* Featured Project Special Styling */
.featured-project {
  border: 2px solid rgba(232, 140, 87, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.95) 100%);
}

.featured-project::before {
  background: linear-gradient(90deg, #e88c57 0%, #dd9b63 100%);
}

.featured-project:hover {
  border-color: rgba(232, 140, 87, 0.5);
  box-shadow: 0 12px 40px rgba(232, 140, 87, 0.2);
}

/* Coming Soon Project Styling */
.coming-soon-project {
  opacity: 0.85;
}

.coming-soon-project:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.featured-badge {
  background: linear-gradient(135deg, #e88c57 0%, #dd9b63 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(232, 140, 87, 0.4);
}

.coming-soon-badge {
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

/* Project Icon */
.project-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(3, 169, 244, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(33, 150, 243, 0.15);
}

.featured-project .project-icon {
  background: linear-gradient(135deg, rgba(232, 140, 87, 0.15) 0%, rgba(221, 149, 99, 0.15) 100%);
  border-color: rgba(232, 140, 87, 0.2);
}

.project-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Project Title */
.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.25rem;
}

.featured-project .project-title {
  background: linear-gradient(135deg, #e88c57 0%, #dd9b63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-subtitle {
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Project Description */
.project-description {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Project Features */
.project-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--secondary-text);
  font-weight: 500;
}

.feature-item i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.65rem;
  color: white;
  flex-shrink: 0;
}

.featured-project .feature-item i {
  background: linear-gradient(135deg, #e88c57 0%, #dd9b63 100%);
}

.project-card:not(.featured-project) .feature-item i {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
}

/* Project Tech Stack */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tech Badge Colors */
.tech-badge.flutter { background: linear-gradient(135deg, #02569B 0%, #02457d 100%); color: white; }
.tech-badge.firebase { background: linear-gradient(135deg, #FFCA28 0%, #ffb300 100%); color: #000; }
.tech-badge.dart { background: linear-gradient(135deg, #00A2E5 0%, #0087bd 100%); color: white; }
.tech-badge.maps { background: linear-gradient(135deg, #4285F4 0%, #3367d6 100%); color: white; }
.tech-badge.html { background: linear-gradient(135deg, #e34c26 0%, #c23316 100%); color: white; }
.tech-badge.css { background: linear-gradient(135deg, #1572b6 0%, #0d5a8f 100%); color: white; }
.tech-badge.bootstrap { background: linear-gradient(135deg, #7952b3 0%, #633a99 100%); color: white; }
.tech-badge.js { background: linear-gradient(135deg, #f7df1e 0%, #d4be0a 100%); color: #000; }
.tech-badge.java { background: linear-gradient(135deg, #f89820 0%, #d67c00 100%); color: white; }
.tech-badge.xml { background: linear-gradient(135deg, #005da6 0%, #00457a 100%); color: white; }
.tech-badge.android { background: linear-gradient(135deg, #3DDC84 0%, #2dbf6b 100%); color: #000; }

/* Project Button */
.project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.project-btn span {
  flex: 1;
}

.project-btn i {
  transition: transform 0.3s ease;
}

.project-btn:hover i {
  transform: translateX(4px);
}

.fieldz-btn {
  background: linear-gradient(135deg, #e88c57 0%, #dd9b63 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 140, 87, 0.3);
}

.fieldz-btn:hover {
  background: linear-gradient(135deg, #d67f42 0%, #d18a51 100%);
  box-shadow: 0 6px 20px rgba(232, 140, 87, 0.4);
  transform: translateY(-2px);
}

.website-btn {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.website-btn:hover {
  background: linear-gradient(135deg, #0069d9 0%, #0097e6 100%);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
  transform: translateY(-2px);
}

.disabled-btn {
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
  color: white;
  cursor: not-allowed;
  box-shadow: 0 4px 15px rgba(158, 158, 158, 0.2);
}

.disabled-btn:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(158, 158, 158, 0.2);
}

/* ============================================
   PROJECTS SECTION - RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 2 Column Layout */
@media (max-width: 1199px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .featured-project {
    grid-column: span 2;
  }
}

/* Mobile: Single Column Layout */
@media (max-width: 767px) {
  .projects-title {
    font-size: 2rem;
  }

  .projects-subtitle {
    font-size: 1rem;
  }

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

  .featured-project {
    grid-column: span 1;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-icon {
    width: 60px;
    height: 60px;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-subtitle {
    font-size: 0.8rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .project-features {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .feature-item {
    font-size: 0.75rem;
  }

  .tech-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }

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

/* Small Mobile */
@media (max-width: 480px) {
  .project-card {
    padding: 1.25rem;
  }

  .project-icon {
    width: 50px;
    height: 50px;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .project-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ============================================
   FADE-IN ANIMATION FOR PROJECT CARDS
   ============================================ */

.projects-grid .project-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.project-tags .badge {
  background-color: var(--cyan);
  color: var(--light-text);
  font-weight: 500;
  font-size: 0.75rem;
}

/* Override project tags badge colors for specific technologies */
.project-tags .tech-badge-flutter {
  background-color: #02569B !important;
  color: white !important;
}

.project-tags .tech-badge-firebase {
  background-color: #FFCA28 !important;
  color: #000 !important;
}

.project-tags .tech-badge-dart {
  background-color: #00A2E5 !important;
  color: white !important;
}

.project-tags .tech-badge-maps {
  background-color: #4285F4 !important;
  color: white !important;
}

.project-tags .tech-badge-mobile {
  background-color: #3DDC84 !important;
  color: #000 !important;
}

.project-tags .tech-badge-crossplatform {
  background-color: #7952B3 !important;
  color: white !important;
}

.project-tags .tech-badge-payment {
  background-color: #FF6B35 !important;
  color: white !important;
}

.project-tags .tech-badge-pattern {
  background-color: #6B46C1 !important;
  color: white !important;
}

/* ============================================
   CONTACT SECTION - MODERN CARD DESIGN
   ============================================ */

/* Contact Section Background */
#contact {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  transition: background 0.8s ease;
  position: relative;
  overflow: visible;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(10, 36, 99, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Section Header */
.contact-header {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

/* Contact Grid - 2x2 Layout (deprecated, using stacked layout) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Stacked Layout - Vertical stacking with minimal spacing */
.contact-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* Contact Card Base Styles */
.contact-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(10, 36, 99, 0.15);
  border-color: rgba(33, 150, 243, 0.3);
}

/* Stacked Card Styles - Full width with minimal padding */
.contact-card.stacked-card {
  padding: 1.25rem;
  margin-bottom: 0;
}

/* Card Icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  flex-shrink: 0;
}

/* Card Header - icon and title side by side */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-header .card-icon {
  margin-bottom: 0;
}

.card-header .card-title {
  margin-bottom: 0;
}

/* Card Title */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 1.25rem;
}

/* Contact Detail Items */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.contact-detail:last-child {
  border-bottom: none;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.phone-icon {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.email-icon {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
}

.location-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.status-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.response-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--primary-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-value:hover {
  color: var(--blue);
}

.available-badge {
  color: #28a745;
  font-weight: 600;
}

/* Connect Links */
.connect-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  width: 100%;
}

.connect-link-linkedin {
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.1) 0%, rgba(0, 119, 181, 0.1) 100%);
  border-color: rgba(10, 102, 194, 0.2);
}

.connect-link-linkedin:hover {
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.15) 0%, rgba(0, 119, 181, 0.15) 100%);
  border-color: rgba(10, 102, 194, 0.4);
  transform: translateX(4px);
}

.github-link {
  background: linear-gradient(135deg, rgba(36, 41, 46, 0.1) 0%, rgba(24, 23, 23, 0.1) 100%);
  border-color: rgba(36, 41, 46, 0.2);
}

.github-link:hover {
  background: linear-gradient(135deg, rgba(36, 41, 46, 0.15) 0%, rgba(24, 23, 23, 0.15) 100%);
  border-color: rgba(36, 41, 46, 0.4);
  transform: translateX(4px);
}

/* Upwork link - green theme */
.upwork-link {
  background: linear-gradient(135deg, rgba(24, 178, 91, 0.1) 0%, rgba(14, 142, 71, 0.1) 100%);
  border-color: rgba(24, 178, 91, 0.2);
}

.upwork-link:hover {
  background: linear-gradient(135deg, rgba(24, 178, 91, 0.15) 0%, rgba(14, 142, 71, 0.15) 100%);
  border-color: rgba(24, 178, 91, 0.4);
  transform: translateX(4px);
}

.upwork-link .connect-icon {
  background: linear-gradient(135deg, #18b26b 0%, #0e8e47 100%);
  color: white;
}

/* Baaeed link - indigo theme */
.baaeed-link {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.baaeed-link:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.baaeed-link .connect-icon {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
}

/* Bahr.sa link - sky blue theme */
.bahr-link {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
  border-color: rgba(14, 165, 233, 0.2);
}

.bahr-link:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.15) 100%);
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateX(4px);
}

.bahr-link .connect-icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

/* Mostaqel link - orange theme (coming soon) */
.mostaqel-link {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  cursor: not-allowed;
  opacity: 0.8;
}

.mostaqel-link:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  transform: none;
}

.mostaqel-link .connect-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* Coming soon link state */
.coming-soon-link {
  cursor: not-allowed;
  opacity: 0.7;
}

.coming-soon-link:hover {
  transform: none;
  background: inherit;
  border-color: inherit;
}

.coming-soon-link .connect-arrow {
  opacity: 0.6;
}

/* Connect Links Grid - 2x2 on large, column on small */
.connect-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.connect-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.connect-link-linkedin .connect-icon {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  color: white;
}

.github-link .connect-icon {
  background: linear-gradient(135deg, #24292e 0%, #424549 100%);
  color: white;
}

.connect-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.connect-platform {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-text);
}

.connect-handle {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.connect-arrow {
  color: var(--muted-text);
  transition: all 0.3s ease;
}

.connect-link:hover .connect-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* Section Navigation Links (not navbar) */
.section-navigation .nav-link,
.nav-buttons-grid .nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(33, 150, 243, 0.15);
  background: rgba(33, 150, 243, 0.05);
}

.section-navigation .nav-link:last-child,
.nav-buttons-grid .nav-link:last-child {
  margin-bottom: 0;
}

.section-navigation .nav-link:hover,
.nav-buttons-grid .nav-link:hover {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
  transform: translateX(4px);
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--blue);
  background: rgba(33, 150, 243, 0.15);
}

.nav-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-text);
  flex: 1;
}

.nav-text-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.coming-soon-badge {
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coming-soon-link {
  opacity: 0.7;
  cursor: not-allowed;
}

.coming-soon-link:hover {
  transform: none;
  background: rgba(33, 150, 243, 0.05);
  border-color: rgba(33, 150, 243, 0.15);
}

.nav-arrow {
  color: var(--blue);
  transition: all 0.3s ease;
}

.section-navigation .nav-link:hover .nav-arrow,
.nav-buttons-grid .nav-link:hover .nav-arrow {
  transform: translateX(4px);
}

/* Specific nav link colors */
.fieldz-link .nav-icon {
  color: #e88c57;
  background: rgba(232, 140, 87, 0.15);
}

.website-link .nav-icon {
  color: var(--cyan);
  background: rgba(23, 162, 184, 0.15);
}

.education-link .nav-icon {
  color: #28a745;
  background: rgba(40, 167, 69, 0.15);
}

/* ============================================
   NAVIGATION BUTTONS GRID - NEW 2x4 LAYOUT
   ============================================ */

/* Full width card spanning 2 columns */
.contact-card.full-width {
  grid-column: 1 / -1;
}

/* Navigation buttons grid - 2x4 layout on desktop */
.nav-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual navigation button */
.nav-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  position: relative;
  text-align: left;
  justify-content: flex-start;
  min-height: auto;
}

/* Active navigation buttons */
.nav-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation button icon */
.nav-button-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

/* Navigation button text */
.nav-button-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Navigation button content wrapper (for coming soon buttons) */
.nav-button-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

/* Navigation button lock icon */
.nav-button-lock {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-left: auto;
}

/* Icon-only buttons - centered */
.nav-button.icon-only {
  justify-content: center;
}

.nav-button.icon-only .nav-button-lock {
  margin-left: 0.5rem;
}

/* Fieldz button - orange theme */
.fieldz-button {
  background: linear-gradient(135deg, rgba(232, 140, 87, 0.1) 0%, rgba(221, 149, 99, 0.1) 100%);
  border-color: rgba(232, 140, 87, 0.3);
  color: #e88c57;
}

.fieldz-button .nav-button-icon {
  background: linear-gradient(135deg, #e88c57 0%, #dd9b63 100%);
  box-shadow: 0 4px 15px rgba(232, 140, 87, 0.3);
}

.fieldz-button:hover {
  background: linear-gradient(135deg, rgba(232, 140, 87, 0.2) 0%, rgba(221, 149, 99, 0.2) 100%);
  border-color: rgba(232, 140, 87, 0.5);
  box-shadow: 0 8px 25px rgba(232, 140, 87, 0.3);
}

/* Website button - cyan theme */
.website-button {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(20, 147, 167, 0.1) 100%);
  border-color: rgba(23, 162, 184, 0.3);
  color: #17a2b8;
}

.website-button .nav-button-icon {
  background: linear-gradient(135deg, var(--cyan) 0%, #148ea7 100%);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.website-button:hover {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.2) 0%, rgba(20, 147, 167, 0.2) 100%);
  border-color: rgba(23, 162, 184, 0.5);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

/* Education button - green theme */
.education-button {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(34, 147, 60, 0.1) 100%);
  border-color: rgba(40, 167, 69, 0.3);
  color: #28a745;
}

.education-button .nav-button-icon {
  background: linear-gradient(135deg, #28a745 0%, #22933c 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.education-button:hover {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(34, 147, 60, 0.2) 100%);
  border-color: rgba(40, 167, 69, 0.5);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Freelancing button - purple/indigo theme */
.freelance-button {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}

.freelance-button .nav-button-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.freelance-button:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* Coming soon button - gray theme */
.coming-soon-button {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.08) 0%, rgba(107, 114, 128, 0.08) 100%);
  border-color: rgba(156, 163, 175, 0.2);
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.8;
}

.coming-soon-button .nav-button-icon {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.2);
}

.coming-soon-button:hover {
  transform: none;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.08) 0%, rgba(107, 114, 128, 0.08) 100%);
  border-color: rgba(156, 163, 175, 0.2);
  box-shadow: none;
}

/* ============================================
   CONTACT SECTION - RESPONSIVE DESIGN
   ============================================ */

/* Tablet: Single column centered layout */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  /* Stacked layout responsive on tablet */
  .contact-stacked {
    max-width: 100%;
    gap: 0.625rem;
  }

  .contact-card.stacked-card {
    padding: 1rem;
  }

  .contact-card {
    align-items: center;
    text-align: center;
  }

  .card-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Card header centered on tablet */
  .card-header {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .card-header .card-icon {
    margin: 0 auto;
  }

  .card-header .card-title {
    text-align: center;
  }

  .contact-detail {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .connect-link,
  .section-navigation .nav-link,
  .nav-buttons-grid .nav-link {
    justify-content: center;
  }

  /* Connect links grid - 2 columns on tablet for consistency with nav grid */
  .connect-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .nav-text-container {
    align-items: center;
  }

  /* Navigation buttons grid - 2x4 on tablet */
  .nav-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .nav-button {
    padding: 0.75rem 0.875rem;
  }

  .nav-button-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .nav-button-text {
    font-size: 0.85rem;
  }

  .coming-soon-badge {
    font-size: 0.65rem;
  }

  .nav-button-lock {
    font-size: 0.7rem;
  }
}

/* Mobile: Further optimized centering */
@media (max-width: 767px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-grid {
    gap: 1.25rem;
  }

  /* Stacked layout responsive on mobile */
  .contact-stacked {
    gap: 0.5rem;
  }

  .contact-card.stacked-card {
    padding: 0.875rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .detail-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .detail-label {
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .connect-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .connect-platform {
    font-size: 0.9rem;
  }

  .connect-handle {
    font-size: 0.8rem;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
  }

  .nav-text {
    font-size: 0.9rem;
  }

  .nav-arrow {
    display: none;
  }

  /* Connect links grid - 1 column on mobile for consistency with nav grid */
  .connect-links-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Navigation buttons grid - 1x8 on mobile (single column, horizontal rectangles) */
  .nav-buttons-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .nav-button {
    width: 100%;
    padding: 0.875rem 1rem;
    min-height: 56px;
  }

  .nav-button-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .nav-button-text {
    font-size: 0.875rem;
  }

  .nav-button-lock {
    font-size: 0.75rem;
  }

  .coming-soon-badge {
    font-size: 0.6rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .contact-card {
    padding: 1.25rem;
  }

  /* Stacked layout responsive on small mobile */
  .contact-card.stacked-card {
    padding: 0.75rem;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .connect-link,
  .section-navigation .nav-link,
  .nav-buttons-grid .nav-link {
    padding: 0.75rem;
  }

  .detail-value {
    word-break: break-word;
  }

  /* Navigation buttons - small mobile optimization */
  .nav-button {
    min-height: 54px;
    padding: 0.75rem 0.875rem;
  }

  .nav-button-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .nav-button-text {
    font-size: 0.825rem;
  }

  .nav-button-lock {
    font-size: 0.7rem;
  }

  .coming-soon-badge {
    font-size: 0.575rem;
  }
}

/* ============================================
   RESUME PREVIEW
   ============================================ */

/* Resume Preview */
.resume-preview-container {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(10, 36, 99, 0.12);
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(10, 36, 99, 0.08);
}

.resume-preview {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1rem;
}

.resume-image-link {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.resume-image-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(10, 36, 99, 0.2);
}

.resume-image-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.resume-image-link:hover::before {
  opacity: 1;
}

.resume-preview-img {
  max-width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  transition: all 0.3s ease;
  border: 3px solid rgba(33, 150, 243, 0.1);
}

.resume-image-link:hover .resume-preview-img,
.resume-image-link:hover .loading-placeholder .resume-preview-img {
  border-color: rgba(33, 150, 243, 0.3);
}

.resume-click-hint {
  font-size: 0.9rem;
  color: var(--muted-text) !important;
  font-style: italic;
  margin-top: 1rem !important;
  transition: color 0.3s ease;
}

.resume-image-link:hover ~ .resume-click-hint {
  color: var(--blue) !important;
}

.resume-controls {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  margin-top: 1rem;
}

.resume-controls .btn {
  margin: 0.5rem;
  min-width: 200px;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resume-controls .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 36, 99, 0.2);
}

/* Responsive Resume Preview */
@media (max-width: 768px) {
  .resume-preview-container {
    padding: 1rem;
  }

  .resume-preview {
    padding: 1rem;
  }

  .resume-preview-img {
    max-height: 500px;
  }

  .resume-controls .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    min-width: auto;
  }

  .resume-click-hint {
    font-size: 0.8rem;
  }
}

/* ============================================
   HORIZONTAL CARD LAYOUT
   ============================================ */

/* Horizontal card container - full width row */
.card-horizontal-container {
  width: 100%;
  margin-bottom: 1.5rem;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 80px minmax(200px, 1fr) minmax(250px, 2fr) minmax(150px, 200px);
  gap: 1.5rem;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
}

.card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 36, 99, 0.15);
  border-color: rgba(33, 150, 243, 0.3);
}

/* Column 1: Logo/Icon */
.ch-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 8px;
  background-color: white;
}

/* Column 2: Title & Organization */
.ch-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ch-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text);
  line-height: 1.3;
}

.ch-organization {
  font-size: 0.95rem;
  color: var(--blue);
  font-weight: 500;
}

/* Column 3: Details & GPA */
.ch-details-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.ch-description {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-meta {
  font-size: 0.95rem;
  color: var(--secondary-text);
}

/* GPA Display in horizontal card */
.ch-gpa {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: rgba(10, 36, 99, 0.05);
  border-radius: 6px;
  border-left: 2px solid var(--blue);
}

.ch-gpa-row {
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--secondary-text);
}

/* Column 4: Image Thumbnail */
.ch-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.ch-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 2px solid rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.ch-image-section:hover .ch-thumbnail {
  border-color: rgba(33, 150, 243, 0.3);
}

.ch-click-hint {
  font-size: 0.7rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* GPA value highlighting */
.gpa-value {
  color: var(--blue);
  font-weight: 600;
}

/* Duration value highlighting */
.duration-value {
  color: var(--blue);
  font-weight: 600;
}

/* Responsive: Tablet & Smaller Screens */
@media (max-width: 991px) {
  .card-horizontal {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .ch-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
  }

  .ch-title-section {
    text-align: center;
  }

  .ch-thumbnail {
    max-height: 200px;
    width: auto;
    max-width: 100%;
  }

  /* Center details section content */
  .ch-details-section {
    text-align: center;
    align-items: center;
  }

  /* Center GPA box */
  .ch-gpa {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* Center image section */
  .ch-image-section {
    align-items: center;
  }

  /* Center thumbnail image */
  .ch-thumbnail {
    margin: 0 auto;
  }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
  .card-horizontal {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .ch-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem;
  }

  .ch-title-section {
    text-align: center;
  }

  .ch-thumbnail {
    max-height: 180px;
    width: 100%;
  }

  /* Center details section content */
  .ch-details-section {
    text-align: center;
    align-items: center;
  }

  /* Center GPA box */
  .ch-gpa {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* Center image section */
  .ch-image-section {
    align-items: center;
  }

  /* Center thumbnail image */
  .ch-thumbnail {
    margin: 0 auto;
  }
}

/* ============================================
   HORIZONTAL CERTIFICATE CARDS
   ============================================ */

/* Section Header Modern */
.section-header-modern {
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-header-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--deep-blue) 0%, var(--blue) 100%);
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Horizontal Certificates Grid Container */
.certificates-grid-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Certificate Card Wrapper */
.cert-card-wrapper {
  width: 100%;
  transition: transform 0.3s ease;
}

.cert-card-wrapper:hover {
  transform: translateY(-2px);
}

/* Horizontal Certificate Card Layout */
.cert-card-horizontal {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
}

.cert-card-horizontal:hover {
  box-shadow: 0 8px 25px rgba(10, 36, 99, 0.12);
  border-color: rgba(33, 150, 243, 0.2);
}

/* Logo Column */
.cert-logo-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  padding: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.cert-card-horizontal:hover .cert-logo-img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Info Column */
.cert-info-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.cert-badge-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.25rem;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-text);
  margin: 0;
  line-height: 1.3;
}

.cert-organization {
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0;
}

.cert-description {
  font-size: 0.875rem;
  color: var(--secondary-text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Certificate Image Column */
.cert-image-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Certificate Preview Link */
.cert-image-column > a {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cert-image-column > a:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

/* Certificate Thumbnail - matches experience section style */
.cert-image-column .certificate-thumbnail {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 2px solid rgba(33, 150, 243, 0.1);
  transition: border-color 0.3s ease;
}

.cert-image-column > a:hover .certificate-thumbnail {
  border-color: rgba(33, 150, 243, 0.3);
}

/* Certificate Overlay */
.cert-image-column .certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 36, 99, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.cert-image-column > a:hover .certificate-overlay {
  opacity: 1;
}

.cert-image-column .certificate-overlay i {
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.cert-image-column > a:hover .certificate-overlay i {
  transform: scale(1);
}

.cert-image-column .certificate-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive: Tablet */
@media (max-width: 991px) {
  .cert-card-horizontal {
    grid-template-columns: 70px 1fr 160px;
    gap: 1rem;
    padding: 1.25rem;
  }

  .cert-logo-img {
    width: 70px;
    height: 70px;
  }

  .cert-image-column .certificate-thumbnail {
    max-width: 160px;
    max-height: 120px;
  }

  .cert-title {
    font-size: 1rem;
  }

  .cert-description {
    font-size: 0.8rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
  .cert-card-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  .cert-logo-column {
    order: 1;
  }

  .cert-info-column {
    order: 2;
    text-align: center;
    align-items: center;
  }

  .cert-badge-header {
    margin: 0 auto 0.5rem;
  }

  .cert-image-column {
    order: 3;
  }

  .cert-image-column .certificate-thumbnail {
    max-width: 200px;
    max-height: 140px;
  }

  .section-header-modern::after {
    width: 60px;
  }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .cert-card-horizontal {
    padding: 0.875rem;
  }

  .cert-logo-img {
    width: 60px;
    height: 60px;
  }

  .cert-badge-header {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .cert-title {
    font-size: 0.95rem;
  }

  .cert-organization {
    font-size: 0.85rem;
  }

  .cert-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .cert-image-column .certificate-thumbnail {
    max-width: 180px;
    max-height: 120px;
  }
}

/* ============================================
   EDUCATION-SPECIFIC STYLES
   ============================================ */

/* Honor Badge */
.cert-honor {
  font-size: 0.9rem;
  color: var(--blue);
  margin: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cert-honor i {
  color: #ffc107;
}

/* GPA Info */
.cert-gpa-info {
  font-size: 0.8rem;
  color: var(--secondary-text);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.cert-gpa-info .gpa-value {
  color: var(--blue);
  font-weight: 700;
}

/* Education CTA Button */
.education-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #006c35 0%, #008c47 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.education-cta-btn:hover::before {
  left: 100%;
}

.education-cta-btn:hover {
  background: linear-gradient(135deg, #008c47 0%, #00a355 100%);
  box-shadow: 0 6px 20px rgba(0, 108, 53, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* CTA Icon Wrapper */
.cta-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.cta-icon {
  width: 28px;
  height: auto;
}

/* CTA Text */
.cta-text {
  font-size: 1.1rem;
  font-weight: 600;
}

/* CTA Arrow */
.cta-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.education-cta-btn:hover .cta-arrow {
  transform: translateX(5px);
}

/* Responsive Education CTA */
@media (max-width: 767px) {
  .education-cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 350px;
  }

  .cta-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .cta-icon {
    width: 24px;
  }

  .cta-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .education-cta-btn {
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
  }

  .cta-icon-wrapper {
    width: 35px;
    height: 35px;
  }

  .cta-icon {
    width: 20px;
  }

  .cta-text {
    font-size: 0.95rem;
  }

  .cert-honor {
    font-size: 0.85rem;
  }

  .cert-gpa-info {
    font-size: 0.75rem;
  }
}

/* ============================================
   CERTIFICATE MODAL POPUP
   ============================================ */

/* Certificate Modal Popup */
.certificate-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.certificate-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.certificate-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.certificate-modal-close:hover {
  color: var(--blue);
}

.certificate-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.certificate-modal-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.certificate-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive modal */
@media (max-width: 768px) {
  .certificate-modal-content {
    max-width: 95%;
    padding: 1.5rem;
  }

  .certificate-modal-image {
    max-height: 60vh;
  }

  .certificate-modal-close {
    font-size: 1.5rem;
  }
}

/* ============================================
   FREELANCE SECTION STYLES (Index Page)
   ============================================ */

/* Freelance Section */
.freelance-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.freelance-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}

.freelance-section .section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
}

/* Platform Buttons Grid */
.freelance-platforms-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid;
}

.platform-btn i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.platform-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.platform-btn-content span {
  font-size: 1rem;
}

.platform-btn-content small {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.3;
  max-width: 220px;
}

/* Upwork button */
.upwork-btn {
  background: linear-gradient(135deg, #18b26b 0%, #0e8e47 100%);
  border-color: #18b26b;
  color: white;
  box-shadow: 0 4px 15px rgba(24, 178, 91, 0.3);
}

.upwork-btn:hover {
  background: linear-gradient(135deg, #0e8e47 0%, #0a6b36 100%);
  border-color: #0e8e47;
  box-shadow: 0 6px 20px rgba(24, 178, 91, 0.4);
  transform: translateY(-2px);
  color: white;
}

.upwork-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Baaeed button */
.baaeed-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: #6366f1;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.baaeed-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border-color: #4f46e5;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  color: white;
}

.baaeed-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Bahr.sa button */
.bahr-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: #0ea5e9;
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.bahr-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
  color: white;
}

.bahr-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Mostaqel button (coming soon) */
.mostaqel-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.mostaqel-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #d97706;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  color: white;
}

.mostaqel-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
}

/* Coming soon buttons */
.coming-soon-btn {
  cursor: not-allowed;
  opacity: 0.8;
}

.coming-soon-btn:hover {
  transform: none !important;
}

.mostaqel-btn.coming-soon-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

.mostaqel-btn.coming-soon-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  transform: none;
}

.mostaqel-btn.coming-soon-btn .platform-btn-content small {
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
  letter-spacing: normal;
}

/* Responsive Design */
@media (max-width: 767px) {
  .freelance-section .section-title {
    font-size: 2rem;
  }

  .freelance-platforms-index {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .platform-btn {
    padding: 0.875rem 1rem;
  }

  .platform-btn i {
    font-size: 1.1rem;
  }

  .platform-btn-content span {
    font-size: 0.95rem;
  }

  .platform-btn-content small {
    max-width: 100%;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .freelance-section .section-title {
    font-size: 1.75rem;
  }

  .platform-btn {
    padding: 0.75rem 0.875rem;
  }
}
