/* =========================
   MODERN DESIGN SYSTEM
========================= */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  --text-primary: #1a1a2e;
  --text-secondary: #6c757d;
  --text-light: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #0f0f23;
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.brand__logo img {
  cursor: pointer;
  height: 40px;
  width: auto;
  transition: var(--transition);
}

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

/* =========================
   HEADER
========================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  padding: 140px 0 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 80px;
  position: relative;
  z-index: 5;
}

.project-hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  position: relative;
  z-index: 5;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300;
  margin: 0 0 16px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
  line-height: 1.6;
}

/* =========================
   PROJECT HERO SECTION
========================= */
.project-hero-section {
  padding: 140px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 1001;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb-link {
  color: #000000;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.breadcrumb-link:hover {
  color: #667eea;
}

.breadcrumb-separator {
  color: #ff0000;
  font-weight: 600;
}

.breadcrumb-current {
  color: #ff0000;
  font-weight: 700;
}

.project-hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 300;
  margin: 0 0 20px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.project-hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-image {
  position: absolute;
  bottom: 20px;
  right: 40px;
  width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
}

/* =========================
   FEATURED PROJECTS
========================= */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.featured-project {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.featured-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.featured-project:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--hover-shadow);
}

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

.project-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

.featured-project:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--text-light);
}

.project-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.project-category {
  font-size: 14px;
  opacity: 0.8;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.project-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  opacity: 0.9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  backdrop-filter: blur(10px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* =========================
   ALL PROJECTS SECTION
========================= */
.all-projects-section {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  margin: 0 0 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  opacity: 0;
  transition: var(--transition);
}

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

.card-overlay h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.card-overlay p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.card-content {
  padding: 30px;
}

.card-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 20px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tags span {
  background: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}




/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
  pointer-events: none;
}

.contact-section .section-title {
  color: var(--text-light);
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.contact-info {
  color: var(--text-light);
}

.contact-info h3 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 20px;
}

.contact-info > p {
  font-size: 18px;
  opacity: 0.9;
  margin: 0 0 40px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.method-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.method-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.method-details a,
.method-details span {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.method-details a:hover {
  color: var(--text-light);
}

.modern-contact-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group label {
  position: absolute;
  top: -12px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

.submit-btn {
  background: var(--primary-gradient);
  color: var(--text-light);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-icon {
  font-size: 18px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon .material-icons {
  font-size: 18px;
  line-height: 1;
}

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

#formResponse {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

#formResponse.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

#formResponse.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}


/* =========================
   SKILLS SECTION
========================= */
.skills-section {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skill-category {
  margin-bottom: 60px;
}

.skill-category h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 30px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.skill-item {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

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

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.skill-level {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.level-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 1s ease;
  position: relative;
}

.level-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}



/* =========================
   ABOUT SECTION
========================= */
.about-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain3" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain3)"/></svg>');
  pointer-events: none;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  color: var(--text-light);
}

.about-text .section-title {
  color: var(--text-light);
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
}

.about-intro,
.about-description,
.about-approach {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 24px;
  opacity: 0.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--hover-shadow);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--accent-gradient);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(40px);
}

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 0;
  padding: 60px 20px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav,
.footer-social {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-light);
  transform: translateY(-2px);
}

/* =========================
   PRELOADER
========================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preloader-logo img {
  width: 80px;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInLogo 1.2s forwards, scaleUp 1.2s forwards;
  filter: brightness(0) invert(1);
}

@keyframes fadeInLogo { to { opacity: 1; } }
@keyframes scaleUp { to { transform: scale(1); } }

/* =========================
   ANIMATIONS & EFFECTS
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-animation > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stagger-animation.active > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-animation.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.active > *:nth-child(6) { transition-delay: 0.6s; }

/* Floating animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Pulse animation for buttons */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .featured-projects {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }
  
  .hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .hero-description {
    font-size: clamp(14px, 3.5vw, 18px);
  }
  
  .featured-projects {
    gap: 30px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modern-contact-form {
    padding: 30px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skill-category {
    margin-bottom: 40px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .all-projects-section,
  .contact-section,
  .skills-section,
  .about-section {
    padding: 80px 0;
  }
  
  .contact-info h3 {
    font-size: 24px;
  }
  
  .contact-info > p {
    font-size: 16px;
  }
  
  .contact-methods {
    gap: 16px;
  }
  
  .contact-method {
    padding: 16px;
  }
  
  .modern-contact-form {
    padding: 24px;
  }
  
  .about-intro,
  .about-description,
  .about-approach {
    font-size: 16px;
  }
  
  .stat-item {
    padding: 20px;
  }
  
  .stat-item h3 {
    font-size: 28px;
  }
}

/* =========================
   PROJECT PAGES MOBILE RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .project-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-sidebar {
    position: static;
    order: -1;
  }
  
  .hero-image {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .project-hero-section {
    min-height: 50vh;
    padding: 120px 0 60px;
  }
  
  .project-hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }
  
  .project-hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .project-content-section {
    padding: 80px 0;
  }
  
  .content-block {
    padding: 30px 24px;
  }
  
  .content-title {
    font-size: 24px;
  }
  
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .sidebar-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .project-hero-section {
    min-height: 40vh;
    padding: 100px 0 40px;
  }
  
  .project-hero-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  
  .project-hero-subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
  }
  
  .project-hero-tags {
    gap: 8px;
  }
  
  .hero-tag {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .hero-image {
    bottom: -30px;
    width: 95%;
  }
  
  .project-content-section {
    padding: 60px 0;
  }
  
  .content-block {
    padding: 24px 20px;
  }
  
  .content-title {
    font-size: 20px;
    gap: 12px;
  }
  
  .title-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .content-text {
    font-size: 15px;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .process-item {
    padding: 20px 16px;
  }
  
  .process-icon {
    font-size: 28px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  .feature-icon {
    font-size: 32px;
  }
  
  .sidebar-card {
    padding: 20px;
  }
  
  .tech-stack {
    gap: 6px;
  }
  
  .tech-badge {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* =========================
   SCROLL BEHAVIOR
========================= */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Selection styles */
::selection {
  background: var(--accent-gradient);
  color: var(--text-light);
}

::-moz-selection {
  background: var(--accent-gradient);
  color: var(--text-light);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* =========================
   PROJECT PAGES
========================= */
.project-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Project Hero Section */
.project-hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain4" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain4)"/></svg>');
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  padding: 0 20px;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb-link {
  color: rgba(255, 0, 0, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

/* .breadcrumb-link:hover {
  color: var(--text-light);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
} */

/* .breadcrumb-current {
  color: var(--text-light);
  font-weight: 500;
} */

.project-hero-title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -2px;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
}

.project-hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300;
  margin: 0 0 32px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.project-hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0;
  z-index: 3;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

/* Project Content Section */
.project-content-section {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
}

.project-main-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.content-block {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.content-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.content-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.process-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 16px;
  transition: var(--transition);
}

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

.process-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.process-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.process-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-secondary);
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Project Sidebar */
.project-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-secondary);
}

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

.detail-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background: var(--bg-secondary);
  margin: 24px 0;
}

.sidebar-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-badge {
  background: var(--accent-gradient);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.project-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary-gradient);
  color: var(--text-light);
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 16px;
}

.project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-arrow {
  font-size: 18px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-arrow .material-icons {
  font-size: 18px;
  line-height: 1;
}

.project-back-btn .material-icons {
  font-size: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

.project-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.project-back-btn {
  width: 100%;
  background: transparent;
  border: 2px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

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

/* Mobile First - Base Styles */
@media (max-width: 767px) {
  /* Header & Navigation */
  .topbar {
    padding: 15px 0;
  }
  
  .brand__logo img {
    height: 35px;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 100px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  /* Featured Projects Grid */
  .featured-projects {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-card {
    min-height: 400px;
  }
  
  .project-overlay {
    padding: 30px;
  }
  
  .project-content h3 {
    font-size: 1.5rem;
  }
  
  .project-description {
    font-size: 0.95rem;
  }
  
  /* Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skill-category {
    margin-bottom: 20px;
  }
  
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .skill-icon img {
    width: 40px;
    height: 40px;
  }
  
  /* Contact Section */
  .contact-form {
    padding: 30px 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Project Pages - Fixed Mobile Layout */
  .project-page {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
  }
  
  .project-hero-section {
    padding: 30px 20px 20px;
    min-height: auto;
    width: 100%;
  }
  
  .project-hero-content {
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .project-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .project-hero-tags {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    width: 100%;
  }
  
  .hero-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .project-hero-image {
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
  }
  
  .project-hero-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .project-content-section {
    padding: 20px;
    width: 100%;
    overflow-x: hidden;
  }
  
  .project-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
  
  .project-main-content {
    width: 100%;
    max-width: 100%;
  }
  
  .project-sidebar {
    width: 100%;
    max-width: 100%;
    order: -1; /* Move sidebar above content on mobile */
  }
  
  .sidebar-card {
    margin-bottom: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .sidebar-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .sidebar-subtitle {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 8px;
    width: 100%;
  }
  
  .detail-label {
    font-size: 0.75rem;
  }
  
  .detail-value {
    font-size: 0.85rem;
    word-wrap: break-word;
    line-height: 1.4;
  }
  
  .tech-stack {
    flex-wrap: wrap;
    gap: 3px;
    width: 100%;
  }
  
  .tech-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  
  .content-block {
    margin-bottom: 20px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .content-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .content-text {
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  
  .feature-card {
    padding: 12px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .feature-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  
  .feature-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .feature-card p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  
  .gallery-image {
    height: 150px;
    width: 100%;
  }
  
  .project-breadcrumb {
    justify-content: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .breadcrumb-link {
    font-size: 0.8rem;
  }
  
  /* Project Cards */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-showcase {
    padding: 60px 15px;
  }
  
  /* Buttons */
  .submit-btn,
  .project-cta,
  .project-back-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
  }
  
  /* Section Headers */
  .section-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  /* Footer */
  footer {
    padding: 25px 15px;
    text-align: center;
  }
  
  /* General Mobile Fixes */
  .grid-container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
  }
  
  .cell {
    padding: 0 10px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Hero Section */
  .hero-section {
    padding: 120px 0 100px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  /* Featured Projects */
  .featured-projects {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .project-card {
    min-height: 450px;
  }
  
  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 40px 30px;
  }
  
  /* Project Pages */
  .project-hero-section {
    padding: 80px 0 60px;
  }
  
  .project-hero-content {
    text-align: left;
    padding: 0;
  }
  
  .project-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }
  
  .project-hero-tags {
    justify-content: flex-start;
  }
  
  .hero-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
  }
  
  .project-hero-image {
    margin-top: 40px;
  }
  
  .project-hero-image img {
    max-height: 400px;
  }
  
  .project-content-section {
    padding: 60px 0;
  }
  
  .project-container {
    gap: 40px;
  }
  
  .project-main-content {
    width: 65%;
  }
  
  .project-sidebar {
    width: 35%;
    order: 0; /* Normal order on tablet */
  }
  
  .sidebar-card {
    margin-bottom: 25px;
    padding: 25px;
  }
  
  .sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .sidebar-subtitle {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .detail-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .detail-label {
    font-size: 0.9rem;
  }
  
  .detail-value {
    font-size: 1rem;
  }
  
  .tech-stack {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .tech-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  .content-block {
    margin-bottom: 40px;
    padding: 25px;
  }
  
  .content-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .content-text {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .feature-card {
    padding: 20px;
    text-align: left;
  }
  
  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .project-breadcrumb {
    justify-content: flex-start;
    margin-bottom: 25px;
    font-size: 0.95rem;
  }
  
  .breadcrumb-link {
    font-size: 0.95rem;
  }
  
  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Large Desktop Styles */
@media (min-width: 1025px) and (max-width: 1440px) {
  .featured-projects {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Project Pages Desktop */
  .project-hero-section {
    padding: 100px 0 80px;
  }
  
  .project-hero-content {
    text-align: left;
    padding: 0;
  }
  
  .project-hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
  
  .project-hero-tags {
    justify-content: flex-start;
  }
  
  .hero-tag {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  .project-hero-image {
    margin-top: 50px;
  }
  
  .project-hero-image img {
    max-height: 500px;
  }
  
  .project-content-section {
    padding: 80px 0;
  }
  
  .project-container {
    gap: 50px;
  }
  
  .project-main-content {
    width: 70%;
  }
  
  .project-sidebar {
    width: 30%;
    order: 0;
  }
  
  .sidebar-card {
    margin-bottom: 30px;
    padding: 30px;
  }
  
  .sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }
  
  .sidebar-subtitle {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
  
  .detail-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
  }
  
  .detail-label {
    font-size: 0.95rem;
  }
  
  .detail-value {
    font-size: 1.1rem;
  }
  
  .tech-stack {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .tech-badge {
    font-size: 0.85rem;
    padding: 6px 14px;
  }
  
  .content-block {
    margin-bottom: 50px;
    padding: 30px;
  }
  
  .content-title {
    font-size: 1.7rem;
    margin-bottom: 25px;
  }
  
  .content-text {
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .feature-card {
    padding: 25px;
    text-align: left;
  }
  
  .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
  }
  
  .feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .feature-card p {
    font-size: 0.95rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .gallery-image {
    height: 300px;
  }
  
  .project-breadcrumb {
    justify-content: flex-start;
    margin-bottom: 30px;
    font-size: 1rem;
  }
  
  .breadcrumb-link {
    font-size: 1rem;
  }
}

/* Extra Large Desktop */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }
  
  .featured-projects {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape Orientation Fixes */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    padding: 60px 0 40px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .project-card {
    min-height: 300px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand__logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion */
/* =========================
   PROJECT IMAGE SLIDER
========================= */
.project-slider-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.slider-header {
  text-align: center;
  margin-bottom: 60px;
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slider-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.image-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: scale(0.95);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--border-radius);
  background: #f8f9fa;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
  padding: 40px 30px 30px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.slide-caption h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.slide-caption p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}

.indicator:hover {
  opacity: 1;
}

.indicator.active {
  background: white;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-slider-section {
    padding: 60px 0;
  }
  
  .slider-title {
    font-size: 2rem;
  }
  
  .slider-wrapper {
    height: 350px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  .slide-caption {
    padding: 30px 20px 20px;
  }
  
  .slide-caption h4 {
    font-size: 1.2rem;
  }
  
  .slide-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .slider-wrapper {
    height: 250px;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .slider-indicators {
    bottom: 15px;
    gap: 8px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

@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;
  }
}
