/* ============================================
   COMPREHENSIVE PORTFOLIO CSS
   Mobile Responsive & Dynamic
   ============================================ */

/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #2f2e41;
  --light-color: #f8f9fa;
  --dark-color: #2f2e41;
  --text-color: #4a4a4a;
  --text-light: #6c757d;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--white);
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--dark-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 100px 0;
  margin: 20px 0 20px 0;
  position: relative;
}

.bg-light {
  background-color: var(--light-color);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: capitalize;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--white);
  z-index: -1;
  transition: var(--transition);
}

.btn-primary::before {
  background-color: var(--dark-color);
}

.btn-outline::before {
  background-color: var(--primary-color);
}

.btn:hover::before {
  width: 100%;
}

/* ============================================
   SECTION TITLE STYLES
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title .subtitle {
  display: inline-block;
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title h2 {
  font-size: 42px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2 span {
  color: var(--primary-color);
}

.section-title .section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.loader-square {
  width: 16px;
  height: 16px;
  margin: 2px;
  background-color: var(--primary-color);
  animation: loaderAnimation 1.s infinite ease-in-out;
}

.loader-square:nth-child(1) { animation-delay: 0s; }
.loader-square:nth-child(2) { animation-delay: 0.2s; }
.loader-square:nth-child(3) { animation-delay: 0.4s; }
.loader-square:nth-child(4) { animation-delay: 0.6s; }
.loader-square:nth-child(5) { animation-delay: 0.8s; }
.loader-square:nth-child(6) { animation-delay: 1s; }
.loader-square:nth-child(7) { animation-delay: 1.2s; }

@keyframes loaderAnimation {
  0%, 40%, 100% { transform: scale(0.6); }
  20% { transform: scale(1); }
}

/* ============================================
   CURSOR FOLLOWER
   ============================================ */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: rgba(108, 99, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: transform 0.1s ease;
  mix-blend-mode: multiply;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
  padding: 25px 0;
  transition: var(--transition);
  position: fixed;
  width: 100%;
  z-index: 999;
}

.navbar.scrolled {
  padding: 15px 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: var(--dark-color);
}

.navbar.scrolled .nav-link.active,
.navbar.scrolled .nav-link:hover {
  color: var(--primary-color);
}

.navbar-brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.navbar-brand span {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 10px 15px;
  margin: 0 5px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 100%;
}

.nav-cta {
  margin-left: 15px;
  padding: 8px 25px !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  background-color: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(74, 66, 230, 0.5) 50%, rgba(0, 0, 0, 0) 70%);
  animation: floatOrb 20s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 10%) scale(1.1); }
  100% { transform: translate(-10%, -5%) scale(0.9); }
}

.floating-shape {
  position: absolute;
  opacity: 0.05;
  animation: floatShape 30s infinite linear;
}

.floating-shape.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-shape.square {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-shape.triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

@keyframes floatShape {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-100px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

.hero-content h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 25px;
  min-height: 50px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 550px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-btns {
  margin-bottom: 40px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: var(--white);
}

.social-icon:hover::before {
  width: 100%;
}

.hero-image {
  position: relative;
  padding: 20px;
}

.hero-image .image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-image .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image .image-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image {
  position: relative;
  padding-right: 30px;
}

.about-image .image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-image .image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.about-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.about-content p {
  margin-bottom: 25px;
  color: var(--text-light);
}

/* Modern Tabs */
.modern-tabs {
  border: none !important;
  background: #f8f9fa;
  border-radius: 50px;
  padding: 5px;
  display: flex;
  margin-bottom: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.modern-tabs .nav-item {
  margin: 0 5px;
  flex: 0 0 auto;
}

.modern-tabs .nav-link {
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 600;
  color: var(--text-light);
  background-color: transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.modern-tabs .nav-link i {
  font-size: 18px;
  color: var(--primary-color);
}

.modern-tabs .nav-link.active {
  color: var(--white);
  background-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.modern-tabs .nav-link.active i {
  color: var(--white);
}

.modern-tab-content {
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* Skills Styling */
.skill-item {
  margin-bottom: 25px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.modern-skills-visual {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.modern-skill-tag {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--primary-color);
}

.modern-skill-tag:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.modern-skill-tag .skill-icon {
  width: 50px;
  height: 50px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 22px;
  flex-shrink: 0;
}

.modern-skill-tag .skill-name {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 16px;
}

/* Competency Cards */
.modern-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.modern-competency-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-top: 4px solid var(--primary-color);
}

.modern-competency-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.modern-competency-card .competency-icon {
  width: 50px;
  height: 50px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 22px;
  flex-shrink: 0;
}

.modern-competency-card h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--dark-color);
}

.modern-competency-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 0;
}

/* Education Timeline */
.modern-timeline {
  position: relative;
  padding: 20px 0;
}

.modern-timeline .timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  width: 100%;
}

.modern-timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.modern-timeline .timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
  z-index: 2;
}

.modern-timeline .timeline-content {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.modern-timeline .timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.1);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), #4a42e6);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--white);
  color: var(--primary-color);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--white);
}

/* ============================================
   PREMIUM EXPERIENCE SECTION (DYNAMIC)
   ============================================ */
.premium-experience {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.premium-experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), rgba(108, 99, 255, 0.1));
  transform: translateX(-50%);
  z-index: 0;
}

/* Dynamic Experience Card - works for ANY number of items */
.experience-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  width: calc(50% - 50px);
  z-index: 1;
}

.experience-card:nth-child(odd) {
  margin-right: auto;
  margin-left: 0;
}

.experience-card:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
}

.experience-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(108, 99, 255, 0.15);
}

.experience-card::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 40px;
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(108, 99, 255, 0.2);
}

.experience-card:nth-child(odd)::after {
  right: -62.5px;
}

.experience-card:nth-child(even)::after {
  left: -62.5px;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), #4a42e6);
}

.experience-header {
  padding: 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(108, 99, 255, 0.02);
}

.experience-company-logo {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  border: 5px solid white;
}

.experience-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-meta h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--dark-color);
}

.experience-meta h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.company-name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 18px;
  letter-spacing: 0.5px;
}

.experience-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 15px;
  background: rgba(108, 99, 255, 0.1);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 500;
}

.experience-content {
  padding: 35px;
}

.experience-description p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
  padding-left: 20px;
  border-left: 2px solid rgba(108, 99, 255, 0.2);
}

.key-responsibilities h4 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--dark-color);
  position: relative;
  padding-left: 18px;
}

.key-responsibilities h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 25px;
  background: var(--primary-color);
  border-radius: 5px;
}

/* Dynamic list - automatically adjusts to content */
.key-responsibilities ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.key-responsibilities li {
  display: flex;
  align-items: flex-start;
  background: rgba(108, 99, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary-color);
}

.key-responsibilities li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.08);
  background: white;
}

.responsibility-icon {
  width: 40px;
  height: 40px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 18px;
}

.responsibility-text {
  flex: 1;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
}

/* Role link styling */
.role-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 6px 8px;
  border-radius: 8px;
  transition: 0.2s;
}

.role-link:hover {
  background: #f4f4ff;
}

.role-number {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
  margin-right: 8px;
  border-radius: 6px;
  background: #eef0ff;
}

/* ============================================
   PROJECTS SECTION (DYNAMIC)
   ============================================ */
.project-section-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 10px;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 0;
}

.project-filters .filter {
  padding: 10px 25px;
  margin: 0 8px 15px;
  font-weight: 600;
  color: var(--text-light);
  background-color: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.project-filters .filter:hover,
.project-filters .filter.active {
  color: var(--white);
  background: linear-gradient(to right, var(--primary-color), #4a42e6);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.15);
}

.project-grid {
  transition: all 0.5s ease;
}

.project-item {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-bottom: 40px;
}

/* Dynamic project card - works with any number of projects */
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: white;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(108, 99, 255, 0.2);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  height: 100%;
  background: linear-gradient(to bottom, rgba(46, 41, 78, 0) 0%, rgba(46, 41, 78, 0.8) 75%, rgba(46, 41, 78, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 25px;
  transition: all 0.5s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to bottom, rgba(108, 99, 255, 0) 0%, rgba(108, 99, 255, 0.8) 75%, rgba(108, 99, 255, 0.9) 100%);
}

.project-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-color);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--dark-color);
  font-weight: 700;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--primary-color);
}

.project-description {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 15px;
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tag {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.project-link {
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), #4a42e6);
  transition: width 0.3s ease;
  z-index: -1;
}

.project-link:hover {
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(108, 99, 255, 0.3);
}

.project-link:hover::before {
  width: 100%;
}

/* ============================================
   TESTIMONIALS SECTION (DYNAMIC)
   ============================================ */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonials-section::before,
.testimonials-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.05);
  z-index: 0;
}

.testimonials-section::before {
  top: -150px;
  right: -150px;
}

.testimonials-section::after {
  bottom: -150px;
  left: -150px;
}

.testimonial-wrapper {
  position: relative;
  z-index: 1;
}

/* Dynamic testimonial carousel - auto-adjusts to any number */
.testimonial-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), #4a42e6);
}

.testimonial-quote {
  position: relative;
  margin-bottom: 30px;
}

.testimonial-quote-icon {
  position: absolute;
  top: -10px;
  left: -5px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.testimonial-quote i {
  font-size: 2.5rem;
  color: rgba(108, 99, 255, 0.1);
}

.testimonial-quote p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4a4a;
  position: relative;
  z-index: 1;
  font-style: italic;
  padding-left: 15px;
  border-left: 3px solid rgba(108, 99, 255, 0.2);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.testimonial-meta::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 50px;
  height: 1px;
  background: rgba(108, 99, 255, 0.2);
}

.client-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.client-avatar img,
.client-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-avatar::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(108, 99, 255, 0.3);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.client-rating {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: white;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 2px;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.client-rating i {
  color: #ffc107;
  font-size: 0.8rem;
}

.client-info {
  flex: 1;
}

.client-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #2f2e41;
  font-weight: 700;
}

.client-info .client-position {
  font-size: 0.9rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.client-info .client-company,
.client-info p {
  font-size: 0.85rem;
  color: #6c757d;
  display: block;
  margin-bottom: 10px;
}

.client-logo {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.client-logo img {
  height: 25px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.testimonial-card:hover .client-logo img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contact-text a,
.contact-text span {
  color: var(--text-light);
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary-color);
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form .form-control {
  height: 55px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: none;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
  outline: none;
}

.contact-form textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 100px 0 0;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
}

.footer-content {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social .social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  font-size: 18px;
  transition: var(--transition);
}

.footer-social .social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 10px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-color);
  transform: translateY(-5px);
}

/* ============================================
   WORK ALERT BANNER
   ============================================ */
.work-alert {
  background: #2f2e41;
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  border-top: 3px solid #6c63ff;
  border-bottom: 3px solid #6c63ff;
}

.alert-track {
  display: flex;
  animation: slideFast 15s linear infinite;
  will-change: transform;
}

.alert-message {
  font-size: 1.9rem;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.7);
  margin-right: 50px;
}

@keyframes slideFast {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.work-alert:hover .alert-track {
  animation-play-state: paused;
}

/* ============================================
   SCROLL DOWN INDICATOR
   ============================================ */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.scroll-link:hover {
  color: var(--primary-color);
}

.scroll-wheel {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  position: relative;
  margin-bottom: 10px;
}

.scroll-wheel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199px) {
  .hero-content h1 { font-size: 60px; }
  .hero-content h2 { font-size: 30px; }
}

@media (max-width: 991px) {
  .section-padding { padding: 100px 0; }
  .hero-content h1 { font-size: 48px; }
  .hero-content h2 { font-size: 26px; }
  .section-title h2 { font-size: 36px; }
  
  /* Experience Timeline Mobile */
  .premium-experience::before {
    left: 20px;
  }
  
  .experience-card {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    margin-right: 0 !important;
  }
  
  .experience-card:nth-child(odd)::after,
  .experience-card:nth-child(even)::after {
    left: -37.5px;
    right: auto;
  }
  
  .key-responsibilities ul {
    grid-template-columns: 1fr;
  }
  
  .modern-skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  /* Global Mobile Fixes */
  body {
    overflow-x: hidden;
    width: 100%;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }
  
  p, li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  
  .skill-description,
  .project-description,
  .testimonial-quote p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }
  
  .section-padding { padding: 50px 0; }
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 26px; }
  .section-title .subtitle { font-size: 14px; }
  
  /* Hero Section Mobile */
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  
  .hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .hero-content h2 {
    font-size: 18px;
    min-height: auto;
    margin-bottom: 20px;
  }
  
  .hero-content h4 { font-size: 16px; }
  .hero-content p { font-size: 16px !important; }
  
  .hero-image {
    margin-top: 30px;
    max-width: 100%;
    height: auto;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-btns .btn {
    width: 100%;
    padding: 10px 25px;
    font-size: 14px;
  }
  
  /* Navbar Mobile */
  .navbar-brand { font-size: 24px; }
  
  .navbar-collapse {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .navbar.scrolled .navbar-collapse {
    background-color: var(--white);
  }
  
  /* About Section Mobile */
  .about-image {
    margin-bottom: 20px;
    padding-right: 0;
  }
  
  .about-content h3 { font-size: 22px; }
  
  /* Modern Tabs Mobile */
  .modern-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 15px;
  }
  
  .modern-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .modern-tabs .nav-item {
    flex: 0 0 auto;
    display: inline-block;
    margin: 0 5px;
  }
  
  .modern-tabs .nav-link {
    padding: 8px 12px;
    font-size: 14px;
    justify-content: center;
  }
  
  /* Skills Mobile */
  .modern-skills-visual,
  .modern-skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .modern-skill-tag,
  .modern-competency-card {
    padding: 12px;
  }
  
  .modern-skill-tag .skill-icon,
  .modern-competency-card .competency-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  /* Timeline Mobile */
  .modern-timeline .timeline-item {
    padding-left: 50px;
  }
  
  .modern-timeline .timeline-dot {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .modern-timeline .timeline-content {
    padding: 20px;
  }
  
  /* Experience Section Mobile */
  .premium-experience::before {
    display: none;
  }
  
  .experience-card {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 30px;
  }
  
  .experience-card::after {
    display: none;
  }
  
  .experience-header {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .experience-company {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .experience-content {
    padding: 15px;
  }
  
  .experience-company-logo {
    width: 70px;
    height: 70px;
  }
  
  .key-responsibilities ul {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 0;
  }
  
  .key-responsibilities h4 {
    font-size: 18px;
  }
  
  .responsibility-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .responsibility-text {
    font-size: 14px;
  }
  
  /* Projects Mobile */
  .project-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
    margin-bottom: 20px;
    justify-content: flex-start;
  }
  
  .project-filters::-webkit-scrollbar {
    display: none;
  }
  
  .project-filters .filter {
    padding: 6px 12px;
    font-size: 13px;
    margin: 0 4px;
    flex-shrink: 0;
  }
  
  .project-card {
    margin-bottom: 20px;
  }

  /* Ensure project grid and items are visible and stacked properly on small screens */
  .project-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .project-item {
    display: block;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-content {
    padding: 15px;
  }
  
  .project-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .project-description {
    margin-bottom: 12px;
  }
  
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .project-tags {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .project-link .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Testimonials Mobile */
  .testimonials-section {
    display: block !important;
    padding: 40px 0;
  }
  
  .testimonial-carousel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .testimonial-card {
    display: block !important;
    width: 100%;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .testimonial-quote {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .testimonial-quote p {
    font-size: 14px !important;
  }
  
  .testimonial-meta {
    display: flex !important;
    align-items: center;
    flex-direction: row;
  }
  
  .client-avatar,
  .client-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
  
  .client-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .client-info p,
  .client-info span {
    font-size: 13px;
    color: #666;
  }
  
  /* Contact Mobile */
  .contact-item {
    margin-bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  .contact-form .form-control {
    font-size: 16px;
    padding: 10px 15px;
  }
  
  /* Footer Mobile */
  .footer {
    padding-top: 50px;
    text-align: center;
  }
  
  .footer::before {
    height: 60px;
  }
  
  .footer-logo {
    font-size: 28px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-social .social-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
    margin: 0 5px;
  }
  
  /* Work Alert Mobile */
  .work-alert {
    padding: 12px 0;
  }
  
  .alert-message {
    font-size: 1.2rem;
  }
  
  /* Touch Target Improvements */
  button,
  a,
  .nav-link,
  .social-icon,
  .project-link,
  .filter {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }
  
  .btn + .btn {
    margin-top: 10px;
    margin-left: 0;
  }
  
  /* Hide Desktop Only Elements */
  .desktop-only {
    display: none !important;
  }
  
  /* Service Cards Mobile */
  .service-card {
    padding: 30px 20px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .service-card h3 {
    font-size: 18px;
  }
  
  /* Back to Top Mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  /* Extra Small Devices */
  .hero-content h1 {
    font-size: 24px;
  }
  
  .hero-content h2 {
    font-size: 16px;
  }
  
  .section-title h2 {
    font-size: 22px;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .hero-btns .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .project-image {
    height: 150px;
  }
  
  .contact-icon {
    margin-bottom: 15px;
  }
  
  .footer-links a {
    margin: 5px 0;
  }
  
  .modern-skill-tag {
    padding: 12px 15px;
  }
  
  .modern-skill-tag .skill-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .modern-competency-card {
    padding: 15px;
  }
  
  .modern-competency-card .competency-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  /* Testimonials Extra Small */
  .testimonial-card {
    padding: 15px;
  }
  
  .testimonial-quote {
    font-size: 14px;
  }
  
  .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .client-avatar,
  .client-image {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
  }
  
  .client-info {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Very Small Devices */
  .testimonial-card {
    padding: 15px;
  }
  
  .testimonial-quote {
    font-size: 14px;
  }
  
  .client-image {
    width: 40px;
    height: 40px;
  }
  
  .alert-message {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  /* Ultra Small Devices */
  .hero-content h1 {
    font-size: 22px;
  }
  
  .hero-content h2 {
    font-size: 16px;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .project-content {
    padding: 12px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 767px) {
  /* Optimize animations for mobile */
  .is-scrolling * {
    animation-play-state: paused !important;
    transition: none !important;
  }
  
  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Touch focus for project cards */
  .project-card.touch-focus .project-overlay {
    opacity: 1;
  }
  
  .project-card.touch-focus .project-image img {
    transform: scale(1.1);
  }
  
  .project-card.touch-focus .overlay-content {
    transform: translateY(0);
  }
  
  /* Improve form elements on mobile */
  input,
  textarea,
  select,
  button {
    font-size: 16px !important;
  }
  
  .form-control {
    -webkit-appearance: none;
    border-radius: 10px;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 80px 0 40px;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}

/* ============================================
   HIGH DPI SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .project-image img,
  .hero-image img,
  .about-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .hero-section,
  .work-alert,
  .back-to-top,
  .footer-social,
  .contact-form {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  .section-padding {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .experience-card,
  .project-card,
  .testimonial-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --text-color: #000000;
    --text-light: #333333;
  }
  
  .btn,
  .project-card,
  .testimonial-card,
  .experience-card {
    border: 2px solid #000;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode
  :root {
    --white: #1a1a1a;
    --black: #ffffff;
    --light-color: #2d2d2d;
    --dark-color: #ffffff;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --secondary-color: #1a1a1a;
  }
  
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .navbar.scrolled,
  .project-card,
  .testimonial-card,
  .experience-card,
  .service-card {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }
  */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================
   ANIMATION CLASSES (OPTIONAL)
   ============================================ */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoom-in {
  animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   END OF CSS
   ============================================ */
  