/**
* Modern Professional Website Design - Fixed Version
* Custom Design for Ashwin Dinesh Ahir
* Updated: Aug 07 2024 - Responsive & Color Fixes
*/

/*--------------------------------------------------------------
# Improved Color Scheme & Typography
--------------------------------------------------------------*/
:root {
  /* Modern Font Stack */
  --primary-font: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --heading-font: 'Poppins', 'Arial Black', sans-serif;
  --accent-font: 'Fira Code', 'Courier New', monospace;

  /* Improved Color Palette with Better Contrast */
  --primary-color: #1e40af;        /* Darker Blue for better visibility */
  --secondary-color: #6366f1;      /* Indigo */
  --accent-color: #0891b2;         /* Darker Cyan */
  --success-color: #059669;        /* Darker Green */
  --warning-color: #d97706;        /* Orange */
  --danger-color: #dc2626;         /* Red */
  
  /* Neutral Colors with Better Contrast */
  --dark-color: #111827;           /* Gray 900 */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  
  /* Improved Background Gradients */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
  --gradient-accent: linear-gradient(135deg, #0891b2 0%, #059669 100%);
  --gradient-dark: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --gradient-light: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Responsive Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

/*--------------------------------------------------------------
# Base Styles & Reset
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--primary-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Improved Typography with Better Contrast */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--gray-600);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Responsive Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  width: 100%;
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-md); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-lg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

/*--------------------------------------------------------------
# Improved Button Styles
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--primary-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

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

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

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

/* Responsive Button Sizes */
@media (max-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Improved Header Design
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-sm);
  min-height: 70px;
}

.logo {
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--dark-color);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Enhanced Hero Section
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
  padding: 80px 0 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(8, 145, 178, 0.1) 0%, transparent 50%);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--white) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-300);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/*--------------------------------------------------------------
# Responsive Section Styles
--------------------------------------------------------------*/
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Alternating Section Backgrounds */
.section:nth-child(even) {
  background: var(--gray-50);
}

/*--------------------------------------------------------------
# Responsive Grid System
--------------------------------------------------------------*/
.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.grid-2 { 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.grid-3 { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.grid-4 { 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* Responsive Grid Adjustments */
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*--------------------------------------------------------------
# Improved Card Design
--------------------------------------------------------------*/
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--dark-color);
}

.card p {
  color: var(--gray-600);
  line-height: 1.6;
  flex-grow: 1;
}
/*--------------------------------------------------------------
# Responsive About Section
--------------------------------------------------------------*/
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

.about-image {
  position: relative;
  order: -1;
}

@media (min-width: 768px) {
  .about-image {
    order: 0;
  }
}

.about-image img {
  width: 100%;
  height: clamp(300px, 50vw, 400px);
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.8;
}

/* Statistics Section */
.about-stats {
  margin: var(--space-xl) 0;
}

.stat-item {
  padding: var(--space-md);
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--heading-font);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  letter-spacing: 0.5px;
}

/*--------------------------------------------------------------
# Enhanced Services Section
--------------------------------------------------------------*/
.services {
  background: var(--gray-50);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.service-icon {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
  flex-grow: 1;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/*--------------------------------------------------------------
# Responsive Portfolio Section
--------------------------------------------------------------*/
.portfolio {
  background: var(--white);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  flex-wrap: wrap;
  padding: 0 var(--space-sm);
}

.portfolio-filter {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  color: var(--gray-600);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  white-space: nowrap;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 64, 175, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content {
  text-align: center;
  color: var(--white);
  padding: var(--space-sm);
}

.portfolio-overlay h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.portfolio-overlay p {
  color: var(--gray-200);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

/*--------------------------------------------------------------
# Responsive Team Section
--------------------------------------------------------------*/
.team {
  background: var(--gray-50);
}

.team-member {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-avatar {
  width: clamp(100px, 15vw, 120px);
  height: clamp(100px, 15vw, 120px);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  z-index: -1;
}

.team-member h4 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: var(--space-xs);
  color: var(--dark-color);
}

.team-member .role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.team-member p {
  color: var(--gray-600);
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  line-height: 1.6;
  flex-grow: 1;
}

/*--------------------------------------------------------------
# Responsive Contact Section
--------------------------------------------------------------*/
.contact {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  color: var(--white);
  order: 2;
}

@media (min-width: 768px) {
  .contact-info {
    order: 0;
  }
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--white);
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--gray-300);
  margin: 0;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.5;
}

/* Modern Form Styles */
.contact-form {
  background: var(--white);
  order: 1;
}

@media (min-width: 768px) {
  .contact-form {
    order: 0;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: var(--space-xs);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  transition: all 0.3s ease;
  background: var(--white);
  font-family: var(--primary-font);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/*--------------------------------------------------------------
# Enhanced Footer
--------------------------------------------------------------*/
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4rem) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.footer-section p,
.footer-section a {
  color: var(--gray-300);
  line-height: 1.6;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-section a:hover {
  color: #a5b4fc;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.3s ease;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-links a:hover {
  color: #a5b4fc;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--gray-400);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/*--------------------------------------------------------------
# Scroll to Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }
}
/*--------------------------------------------------------------
# Enhanced Mobile Responsiveness
--------------------------------------------------------------*/
@media (max-width: 1024px) {
  .hero h1 { 
    font-size: clamp(2.25rem, 5vw, 3rem); 
  }
  
  .section-title h2 { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    padding: 100px 0 var(--space-xl);
    min-height: 90vh;
  }
  
  .hero h1 { 
    font-size: clamp(2rem, 6vw, 2.5rem); 
  }
  
  .hero .subtitle { 
    font-size: clamp(0.95rem, 2.5vw, 1.125rem); 
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--space-xl) 0;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: var(--space-sm) 0;
  }
  
  .nav-link {
    font-size: 1.125rem;
    padding: var(--space-sm) var(--space-lg);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  
  .section-title {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .section-title h2 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  
  .portfolio-filter {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { 
    font-size: clamp(1.75rem, 7vw, 2rem); 
  }
  
  .section-title h2 { 
    font-size: clamp(1.25rem, 5vw, 1.5rem); 
  }
  
  .card,
  .service-card,
  .team-member {
    padding: var(--space-md);
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: none;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }
  
  .contact-icon {
    align-self: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Image Placeholder Styles (for missing images)
--------------------------------------------------------------*/
.image-placeholder {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 3rem;
  border-radius: var(--radius-xl);
}

.portfolio-item img,
.about-image img,
.team-avatar img {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
}

/* Fallback for broken images */
img {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
}

img::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
}

img::after {
  content: '🖼️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--gray-500);
}

/*--------------------------------------------------------------
# Form Validation and Loading States
--------------------------------------------------------------*/
.form-control.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control.success {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

.success-message {
  color: var(--success-color);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn.loading {
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Accessibility Improvements
--------------------------------------------------------------*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.portfolio-filter:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #800080;
    --accent-color: #008080;
    --gray-600: #000000;
    --gray-700: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
  .header,
  .footer,
  .scroll-top,
  .mobile-menu-toggle,
  .hero-buttons,
  .btn {
    display: none !important;
  }
  
  .section {
    padding: var(--space-lg) 0;
    page-break-inside: avoid;
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
    background: var(--white) !important;
    color: var(--dark-color) !important;
  }
  
  .hero h1,
  .hero .subtitle {
    color: var(--dark-color) !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: var(--dark-color);
  }
  
  h1 { font-size: 24pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }
  
  .card,
  .service-card,
  .team-member {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}

/*--------------------------------------------------------------
# Animation Classes
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Loading animation for elements */
.loading-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.loading-element.loaded {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Utility Classes for Responsive Design
--------------------------------------------------------------*/
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

@media (min-width: 640px) {
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .d-sm-flex { display: flex; }
  .d-sm-grid { display: grid; }
}

@media (min-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
  .d-md-grid { display: grid; }
}

@media (min-width: 1024px) {
  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
  .d-lg-flex { display: flex; }
  .d-lg-grid { display: grid; }
}

/* Responsive text alignment */
.text-sm-center { text-align: left; }
.text-md-center { text-align: left; }
.text-lg-center { text-align: left; }

@media (min-width: 640px) {
  .text-sm-center { text-align: center; }
}

@media (min-width: 768px) {
  .text-md-center { text-align: center; }
}

@media (min-width: 1024px) {
  .text-lg-center { text-align: center; }
}
/**
* Enhanced Responsive Design System
* Comprehensive mobile-first approach
* Updated: Aug 07 2024
*/

/*--------------------------------------------------------------
# Enhanced Responsive Typography
--------------------------------------------------------------*/
:root {
  /* Responsive font scaling */
  --font-scale-mobile: 0.875;
  --font-scale-tablet: 1;
  --font-scale-desktop: 1.125;
  
  /* Responsive spacing scale */
  --space-scale-mobile: 0.75;
  --space-scale-tablet: 1;
  --space-scale-desktop: 1.25;
}

/* Base responsive typography */
html {
  font-size: 14px; /* Mobile base */
}

@media (min-width: 768px) {
  html { font-size: 16px; } /* Tablet base */
}

@media (min-width: 1024px) {
  html { font-size: 18px; } /* Desktop base */
}

/* Enhanced responsive headings */
h1 { 
  font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
  line-height: 1.1;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

h2 { 
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  line-height: 1.2;
  margin-bottom: clamp(0.5rem, 1.5vw, 1.25rem);
}

h3 { 
  font-size: clamp(1.25rem, 2.5vw + 0.25rem, 2rem);
  line-height: 1.3;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

h4 { 
  font-size: clamp(1.125rem, 2vw + 0.125rem, 1.5rem);
  line-height: 1.4;
  margin-bottom: clamp(0.375rem, 0.75vw, 0.875rem);
}

h5 { 
  font-size: clamp(1rem, 1.5vw + 0.125rem, 1.25rem);
  line-height: 1.4;
  margin-bottom: clamp(0.375rem, 0.5vw, 0.75rem);
}

h6 { 
  font-size: clamp(0.875rem, 1.25vw + 0.125rem, 1.125rem);
  line-height: 1.5;
  margin-bottom: clamp(0.25rem, 0.5vw, 0.625rem);
}

/* Responsive paragraph text */
p {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  line-height: clamp(1.5, 0.5vw + 1.4, 1.7);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

/*--------------------------------------------------------------
# Enhanced Container System
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* Container variations for different sections */
.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1400px;
}

.container-fluid {
  max-width: 100%;
  padding-left: clamp(0.5rem, 2vw, 1rem);
  padding-right: clamp(0.5rem, 2vw, 1rem);
}

/*--------------------------------------------------------------
# Enhanced Grid System
--------------------------------------------------------------*/
.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
}

/* Responsive grid columns */
.grid-1 { grid-template-columns: 1fr; }

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

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

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

/* Tablet breakpoint */
@media (min-width: 768px) {
  .grid-2 { 
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 { 
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 { 
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .grid-3 { 
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 { 
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large desktop breakpoint */
@media (min-width: 1200px) {
  .grid-4 { 
    grid-template-columns: repeat(4, 1fr);
  }
}

/*--------------------------------------------------------------
# Enhanced Header Responsiveness
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  min-height: 60px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(0.75rem, 2vw, 1rem);
  padding-bottom: clamp(0.75rem, 2vw, 1rem);
}

.logo {
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  font-weight: 800;
  white-space: nowrap;
}

/* Enhanced mobile navigation */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0.75rem 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: var(--gray-100);
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
  }
  
  .nav-link {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    padding: 0.5rem 0;
  }
}

/*--------------------------------------------------------------
# Enhanced Hero Section Responsiveness
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
  padding: clamp(80px, 15vw, 120px) 0 clamp(2rem, 8vw, 4rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  line-height: 1.1;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-300);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: clamp(300px, 80vw, 600px);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/*--------------------------------------------------------------
# Enhanced Section Responsiveness
--------------------------------------------------------------*/
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.section-title p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--gray-600);
  max-width: clamp(280px, 90vw, 600px);
  margin: 0 auto;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Enhanced Card Responsiveness
--------------------------------------------------------------*/
.card,
.service-card,
.team-member {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover,
.service-card:hover,
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 480px) {
  .card:hover,
  .service-card:hover,
  .team-member:hover {
    transform: translateY(-2px);
  }
}

/*--------------------------------------------------------------
# Enhanced About Section Responsiveness
--------------------------------------------------------------*/
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  position: relative;
  order: -1;
}

@media (min-width: 768px) {
  .about-image {
    order: 0;
  }
}

.about-stats {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.stat-item {
  padding: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*--------------------------------------------------------------
# Enhanced Services Section Responsiveness
--------------------------------------------------------------*/
.service-icon {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  color: var(--dark-color);
  text-align: center;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
  flex-grow: 1;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  text-align: center;
}

/*--------------------------------------------------------------
# Enhanced Portfolio Section Responsiveness
--------------------------------------------------------------*/
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  flex-wrap: wrap;
  padding: 0 1rem;
}

@media (max-width: 767px) {
  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
}

.portfolio-filter {
  padding: clamp(0.625rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  color: var(--gray-600);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  white-space: nowrap;
  flex-shrink: 0;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
}

/*--------------------------------------------------------------
# Enhanced Team Section Responsiveness
--------------------------------------------------------------*/
.team-avatar {
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  border-radius: var(--radius-full);
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.team-member h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
  color: var(--dark-color);
  text-align: center;
}

.team-member .role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  text-align: center;
}

.team-member p {
  color: var(--gray-600);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  line-height: 1.6;
  flex-grow: 1;
  text-align: center;
}

/*--------------------------------------------------------------
# Enhanced Contact Section Responsiveness
--------------------------------------------------------------*/
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  color: var(--white);
  order: 2;
}

@media (min-width: 768px) {
  .contact-info {
    order: 0;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

@media (max-width: 480px) {
  .contact-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
  }
}

.contact-icon {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  font-size: clamp(1rem, 2vw, 1.25rem);
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Enhanced Form Responsiveness
--------------------------------------------------------------*/
.form-group {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.form-control {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 1rem);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  transition: all 0.3s ease;
  background: var(--white);
  font-family: var(--primary-font);
}

textarea.form-control {
  resize: vertical;
  min-height: clamp(100px, 20vw, 120px);
}

/*--------------------------------------------------------------
# Enhanced Button Responsiveness
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.375rem, 1vw, 0.5rem);
  padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 2rem);
  font-family: var(--primary-font);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px; /* Touch-friendly minimum */
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
  }
}

/*--------------------------------------------------------------
# Enhanced Footer Responsiveness
--------------------------------------------------------------*/
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.footer-section p,
.footer-section a {
  color: var(--gray-300);
  line-height: 1.6;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.social-links {
  display: flex;
  gap: clamp(0.5rem, 2vw, 0.75rem);
  margin-top: clamp(0.75rem, 2vw, 1rem);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .social-links {
    justify-content: center;
  }
}

.social-link {
  width: clamp(36px, 8vw, 40px);
  height: clamp(36px, 8vw, 40px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  color: var(--gray-400);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/*--------------------------------------------------------------
# Enhanced Scroll-to-Top Responsiveness
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  bottom: clamp(20px, 4vw, 30px);
  right: clamp(20px, 4vw, 30px);
  width: clamp(45px, 8vw, 50px);
  height: clamp(45px, 8vw, 50px);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 999;
}

/*--------------------------------------------------------------
# Responsive Utility Classes
--------------------------------------------------------------*/
/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 640px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-grid { display: grid !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-grid { display: grid !important; }
}

@media (min-width: 1024px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-grid { display: grid !important; }
}

/* Text alignment utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

@media (max-width: 767px) {
  .text-sm-center { text-align: center !important; }
  .text-sm-left { text-align: left !important; }
}

@media (min-width: 768px) {
  .text-md-center { text-align: center !important; }
  .text-md-left { text-align: left !important; }
}

/* Responsive spacing utilities */
.p-responsive { padding: clamp(1rem, 4vw, 2rem) !important; }
.m-responsive { margin: clamp(1rem, 4vw, 2rem) !important; }
.mb-responsive { margin-bottom: clamp(1rem, 4vw, 2rem) !important; }
.mt-responsive { margin-top: clamp(1rem, 4vw, 2rem) !important; }

/*--------------------------------------------------------------
# Performance Optimizations for Mobile
--------------------------------------------------------------*/
@media (max-width: 767px) {
  /* Reduce animations on mobile for better performance */
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  
  /* Optimize transforms for mobile */
  .card:hover,
  .service-card:hover,
  .team-member:hover,
  .portfolio-item:hover {
    transform: translateY(-2px);
  }
  
  /* Reduce shadow complexity on mobile */
  .card,
  .service-card,
  .team-member {
    box-shadow: var(--shadow-sm);
  }
  
  .card:hover,
  .service-card:hover,
  .team-member:hover {
    box-shadow: var(--shadow-md);
  }
}

/*--------------------------------------------------------------
# Accessibility Improvements
--------------------------------------------------------------*/
/* Focus indicators for better accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.portfolio-filter:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure minimum touch target size */
@media (max-width: 767px) {
  .btn,
  .nav-link,
  .portfolio-filter,
  .social-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #800080;
    --gray-600: #000000;
    --gray-700: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
