*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {

  --background: #F3F6FA;
  --backsecondary: #0B1F3A;
  --footer-bg: #0B1F3A;

  --surface: #FFFFFF;
  --text: #0F172A;
  --text-light: #5C6B7A;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --border: #D7E0EA;

  --accent: #0B1F3A;
  --accent-light: #123252;
  --accent-lighter: #1E4B75;

  --primary-btn: #0B1F3A;
  --primary-btn-hover: #123252;

  --projects-primary: #0B1F3A;
  --projects-secondary: #123252;

  --footer-text: #FFFFFF;
  --footer-link: #D2DCE8;
  --footer-link-hover: #EEF3F8;

  --header-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 4px 22px rgba(15, 23, 42, 0.07);
  --shadow-medium: 0 10px 28px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 16px 48px rgba(15, 23, 42, 0.16);

  --radius: 8px;
  --border-radius-lg: 10px;
  --border-radius-xl: 12px;

  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --mobile-overlay: rgba(0, 0, 0, 0.5);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", "Outfit", "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--accent-light);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-weight: 650;
  margin: 0 0 0.5em 0;
  color: var(--text);
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.95rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 1em 0;
  color: var(--text-light);
}

ul,
ol {
  padding-left: 1.2em;
  margin: 0 0 1em 0;
}

.container {
  max-width: 1500px;
  margin: 2rem auto 1.75rem auto;
  padding: 0 1.2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--animation-smooth);
  min-height: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0;
  box-shadow: var(--header-shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 66px;
  padding: 0 1.75rem;
  gap: 0;
}

.navbar-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.45em 1em 0.45em 0.85em;
  border-radius: 10px;
  background: none;
  margin-right: 2.2rem;
  border: none;
  display: flex;
  align-items: center;
  height: 48px;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-menu li {
  display: flex;
  align-items: center;
}

.navbar a {
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.45em 0.95em;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  height: 48px;
  box-sizing: border-box;
}

.navbar a.active,
.navbar a:hover,
.navbar a:focus {
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: all 0.3s var(--animation-smooth);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s var(--animation-smooth);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s var(--animation-smooth);
  position: relative;
  z-index: 1002;
  width: 44px;
  height: 44px;
}

.navbar-toggle:hover {
  transform: scale(1.05);
}

.navbar-toggle:active {
  transform: scale(0.95);
}

.navbar-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
  display: block;
}


.navbar-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: var(--accent);
}

.navbar-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.navbar-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.s var(--animation-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  background: var(--primary-btn);
  color: #ffff;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.07);
}

.btn:hover {
  background: var(--surface);
    text-decoration: none;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: white;
    text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: white;
}

.btn-nav-projects {
  background: var(--accent);
  color: white;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  text-decoration: none;
}

.badge {
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-success {
  background: var(--accent);
  color: white;
}

.badge-location {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}


.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23f0f0f0" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>');
  opacity: 0.3;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.projects-hero {
  padding: 4.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.projects-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(11, 31, 58, 0.08), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(30, 75, 117, 0.08), transparent 28%);
}

.projects-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.projects-hero-header {
  text-align: left;
  margin-bottom: 0;
  max-width: 760px;
}

.projects-hero-header .section-title {
  text-align: left;
  margin-bottom: 0.6rem;
}

.projects-hero-header .section-subtitle {
  margin: 0;
  text-align: left;
}

.projects-list {
  padding: 0 0 2rem;
}

.featured-carousel {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 15px;
  padding: 0.55rem;
}

.featured-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.featured-carousel-track {
  display: flex;
  transition: transform 0.45s var(--animation-smooth);
  will-change: transform;
}

.featured-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.98fr);
  align-items: stretch;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.featured-slide-media {
  min-height: 235px;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.08), rgba(18, 50, 82, 0.02));
}

.featured-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-slide-content {
  padding: 1.15rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.featured-slide-title {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  margin: 0;
}

.featured-slide-text {
  margin: 0;
  color: var(--text-light);
  max-width: 46ch;
  font-size: 0.92rem;
}

.featured-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.featured-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.featured-slide-actions .btn {
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.featured-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.85rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 0 1 auto;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.18);
  cursor: pointer;
  transition: all 0.2s var(--animation-smooth);
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: rgba(11, 31, 58, 0.35);
}

.carousel-dot.is-active {
  width: 30px;
  background: var(--accent);
}

.carousel-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--surface);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--animation-smooth), box-shadow 0.2s var(--animation-smooth), background 0.2s var(--animation-smooth);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  background: white;
}

.carousel-button svg {
  flex-shrink: 0;
}

.projects-grid {
  margin-top: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
  font-weight: 800;
  background: var(--projects-primary);
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.highlight-gradient {
  background: var(--accent);
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.projects-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.projects-preview {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10, 35, 66, 0.12);
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-card.card-1 {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 5%;
  transform: rotate(-8deg);
  z-index: 3;
}


.preview-card.card-2 {
  width: 160px;
  height: 160px;
  bottom: 15%;
  right: 8%;
  transform: rotate(12deg);
  z-index: 2;
}


.preview-card.card-3 {
  width: 140px;
  height: 140px;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  z-index: 1;
}


@keyframes float1 {

  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }

  50% {
    transform: rotate(-8deg) translateY(-15px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: rotate(12deg) translateY(0);
  }

  50% {
    transform: rotate(12deg) translateY(-12px);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) rotate(-5deg) translateY(-18px);
  }
}

@keyframes slideInStagger {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 991px) {
  .projects-preview {
    height: 300px;
  }

  .preview-card.card-1 {
    width: 140px;
    height: 140px;
  }

  .preview-card.card-2 {
    width: 120px;
    height: 120px;
  }

  .preview-card.card-3 {
    width: 100px;
    height: 100px;
  }

  .featured-slide {
    grid-template-columns: 1fr;
  }

  .featured-slide-media {
    min-height: 190px;
  }

  .featured-slide-content {
    padding: 1rem 1.1rem 1.1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
}

@media (max-width: 768px) {
  .projects-preview {
    display: none;
  }

  .projects-hero {
    padding: 4rem 0 1.5rem;
  }

  .featured-carousel {
    padding: 0.55rem;
    border-radius: 15px;
  }

  .featured-carousel-controls {
    gap: 0.75rem;
    margin-top: 0.85rem;
  }

  .carousel-dots {
    gap: 0.45rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.expertise-section {
  padding: 88px 0;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.expertise-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.journey-section {
  padding: 88px 0;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.journey-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.5), transparent);
}

.contact-section {
  padding: 88px 0;
  background: var(--background);
  color: white;
  position: relative;
  transition: all 0.3s ease;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.expertise-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.expertise-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.expertise-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-card {
  border-radius: 22px;
  padding: 2.2rem 2rem 2rem 2rem;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-pic-hero {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  position: relative;
  z-index: 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1400px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.2rem;
  }
}

.project-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  height: fit-content;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.project-card:hover {
  transform: translateY(-0.2px);
}

.project-card-image {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  min-height: 100%;
  max-height: none;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.project-card:hover .project-card-image img {
  transform: scale(1.005);
}

.journey-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 2.25rem;
}

.timeline-content {
  position: relative;
}

.timeline-date {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.timeline-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.timeline-desc {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.institution-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8f9fa;
  padding: 8px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  padding: 0.3rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1rem;
}

.tech-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: bold;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}


.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.skill-tag {
  background: var(--background);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-methods {
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact-method:hover,
.contact-method:focus {
  color: inherit;
  text-decoration: none;
}


.method-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.method-content p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.response-time {
  font-size: 0.8rem;
  color: var(--text);
  background: var(--background);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  display: inline-block;
}

.contact-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .contact-form-card h3 {
    font-size: 1.5rem;
  }

  .input-group input,
  .input-group textarea,
  .input-group select {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
}

.contact-form-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.contact-form-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--text);
  text-align: center;
}

.contact-form-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-submit {
  margin-top: 1rem;
  padding: 1.2rem 2.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
}

.contact-submit:hover {
  background: var(--accent-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  align-items: start;
}

.input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 1rem 1.2rem 0.8rem 1.2rem;
  border: 2px solid rgba(30, 41, 59, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  box-sizing: border-box;
  min-height: 52px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: transparent;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--text);
  background: white;
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1), 0 4px 20px rgba(30, 41, 59, 0.12);
  transform: translateY(-2px);
}

.input-group label {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  padding: 0 0.45rem;
  border-radius: 4px;
  transform-origin: left top;
  line-height: 1.1;
}

.input-group textarea {
  min-height: 200px;
  resize: vertical;
  font-family: inherit;
  padding: 1.2rem 1.2rem 1rem 1.2rem;
}

.input-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 3rem;
}

.input-group select:not([value=""]),
.input-group select.has-value {
  color: var(--text);
}

.input-group select[value=""] {
  color: var(--text-light);
}

.input-group input:focus+label,
.input-group textarea:focus+label,
.input-group select:focus+label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
  background: white;
  padding: 0 0.5rem;
  z-index: 1;
}

.input-group input:not(:placeholder-shown)+label,
.input-group textarea:not(:placeholder-shown)+label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
  background: white;
  padding: 0 0.5rem;
  z-index: 1;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1.5rem;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  height: 48px;
  margin-bottom: 0.2em;
  justify-content: center;
  color: #fff;
}

.language-btn {
  color: #fff;
}

footer {
  background: var(--footer-bg);
  border-top: none;
  padding: 2.2rem 0 1.2rem 0;
  margin-top: 3rem;
  font-size: 1em;
  color: var(--footer-text);
  box-shadow: 0 -2px 16px rgba(34, 48, 74, 0.08);
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.footer-modern {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  padding: 1.2rem 0 0.7rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s var(--animation-smooth);
}

.footer-column a:hover {
  color: white;
}

.footer-contact {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3em;
}

.footer-contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0.2em;
  color: var(--footer-link);
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.01em;
  transition: color var(--transition), text-decoration var(--transition);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--footer-link-hover);
  border-bottom: 2px solid var(--footer-link-hover);
  text-decoration: none;
}

.footer-link svg {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  fill: #fff;
  transition: fill var(--transition);
}

.footer-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s var(--animation-smooth);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-content p,
body.modal-open {
  overflow: hidden;
  padding-right: 17px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  background: white;
  margin: 3% auto;
  padding: 0;
  border-radius: var(--border-radius-xl);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  align-items: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  padding: 0.5rem 3rem 0 3rem;
  grid-column: 1 / -1;
  grid-row: 2;
}

.modal-body {
  padding: 2rem 3rem 3rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-30) transparent;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--navy-30);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--navy-40);
}

.modal-body p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.modal .modal-body h4,
.modal .modal-body ul,
.modal .modal-body li {
  color: var(--text-secondary);
}

.modal-body img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius-xl);
  margin: 2rem auto;
  display: block;
}

.modal-body .img-caption,
.modal-body .modal-image-caption {
  width: 100%;
  max-width: 600px;
  margin: -1rem auto 2rem;
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-hr {
  border: none;
  height: 1px;
  background:
    var(--border);
  margin: 3rem 0;
}

.close {
  position: relative;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.close:active {
  transform: scale(1);
  background: var(--navy-05);
}

.close::before,
.close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--text-light);
  transition: background 0.25s ease;
  border-radius: 1px;
}

.close::before {
  transform: rotate(45deg);
}

.close::after {
  transform: rotate(-45deg);
}

.modal-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.modal-body a:hover {
  border-bottom-color: var(--accent);
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-container {
    max-width: 1320px;
  }

  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .expertise-grid {
    grid-template-columns: repeat(4, 1fr);
  }


  .modal-header {
    padding: 1.25rem 2.5rem 1.75rem;
    gap: 1rem;
  }

  .modal-header h2 {
    font-size: 1.85rem;
    padding: 0.5rem 4rem 0 4rem;
  }

  .close {
    width: 40px;
    height: 40px;
    top: 1.25rem;
    right: 2.5rem;
  }

  .close::before,
  .close::after {
    width: 18px;
    height: 2px;
  }

  .language-selector {
    margin-left: 1.5em;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-header {
    padding: 1.15rem 2.25rem 1.65rem;
    gap: 0.9rem;
  }

  .modal-header h2 {
    font-size: 1.75rem;
    padding: 0.5rem 3.5rem 0 3.5rem;
  }

  .close {
    width: 38px;
    height: 38px;
    top: 1.15rem;
    right: 2.25rem;
  }

  .close::before,
  .close::after {
    width: 17px;
    height: 2px;
  }

  .language-selector {
    margin-left: 1.5em;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 0 2rem;
  }

  .hero-container {
    padding: 0 2rem;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .modal-header {
    padding: 1.1rem 2rem 1.55rem;
    gap: 0.85rem;
  }

  .modal-header h2 {
    font-size: 1.6rem;
    padding: 0.5rem 3rem 0 3rem;
  }

  .close {
    width: 36px;
    height: 36px;
    top: 1.1rem;
    right: 2rem;
  }

  .close::before,
  .close::after {
    width: 16px;
    height: 2px;
  }

  .footer-modern {
    padding: 3.5rem 0 1.75rem;
  }

  .footer-content {
    padding: 1rem 2rem;
    max-width: 960px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
    max-width: 500px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
  }

  .footer-column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .social-links {
    gap: 1rem;
  }

  .language-selector {
    margin-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: 1;
    justify-self: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .modal-header {
    padding: 1rem 1.75rem 1.45rem;
    gap: 0.8rem;
  }

  .modal-header h2 {
    font-size: 1.45rem;
    padding: 0.4rem 2.75rem 0 2.75rem;
  }

  .close {
    width: 34px;
    height: 34px;
    top: 1rem;
    right: 1.75rem;
  }

  .close::before,
  .close::after {
    width: 15px;
    height: 2px;
  }

  .footer-modern {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    padding: 0.8rem 1.5rem;
    max-width: 720px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    margin: 0 auto;
    max-width: 450px;
  }

  .footer-brand h3 {
    font-size: 1.4rem;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  .footer-column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column li {
    margin-bottom: 0.4rem;
  }

  .footer-column a {
    font-size: 0.9rem;
  }

  .footer-social {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .language-selector {
    margin-left: 0;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1.5rem;
  }

  .hero-container {
    padding: 0 1.5rem;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: 1;
    justify-self: center;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .journey-timeline {
    padding-left: 0;
    margin: 0;
  }

  .journey-timeline::before {
    display: none;
  }

  .timeline-item {
    margin-bottom: 2rem;
    padding-left: 0;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-modern {
    padding: 2.75rem 0 1.5rem;
  }

  .footer-content {
    padding: 0.8rem 1.5rem;
    max-width: 540px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    margin: 0 auto;
    max-width: 400px;
  }

  .footer-brand h3 {
    font-size: 1.35rem;
  }

  .footer-brand p {
    font-size: 0.93rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column ul,
  .footer-column li {
    display: flex;
    color: var(--footer-text);
    flex-direction: column;
    align-items: center;
  }

  .footer-column li {
    margin-bottom: 0.4rem;
  }

  .footer-social {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.75rem;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .language-selector {
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    text-align: center;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: 1;
    justify-self: center;
  }

  .hero-badges {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    min-height: 280px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .expertise-card {
    padding: 1.5rem;
  }

  .journey-timeline {
    padding-left: 0;
    margin: 0;
  }

  .journey-timeline::before {
    display: none;
  }

  .timeline-item {
    margin-bottom: 1.5rem;
    padding-left: 0;
  }

  .timeline-content {
    margin-left: 0;
  }

  .timeline-card {
    padding: 1.2rem;
  }

  .timeline-date {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-method {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .contact-method .method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }

  .contact-method .method-icon svg {
    width: 28px;
    height: 28px;
    color: white;
  }

  .contact-method .method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .contact-method .method-content h3 {
    margin-bottom: 0.3rem;
  }

  .contact-method .method-content p {
    margin-bottom: 0.5rem;
  }

  .contact-form-card {
    padding: 1.5rem 1rem;
    margin: 0;
  }

  .form-row {
    flex-direction: column;
  }

  .input-group {
    margin-bottom: 1rem;
  }

  .navbar-inner {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-header {
    padding: 0.9rem 1.25rem 1.4rem;
    gap: 0.85rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
    line-height: 1.35;
    padding: 0.3rem 2.5rem 0 1rem;
    margin-top: 0;
  }

  .close {
    width: 32px;
    height: 32px;
    top: 0.9rem;
    right: 1.25rem;
  }

  .close::before,
  .close::after {
    width: 14px;
    height: 2px;
  }

  .modal-body {
    padding: 1.5rem 1rem;
    max-height: calc(100vh - 12rem);
  }

  .footer-modern {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    padding: 0.8rem 1rem 0.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-social {
    flex-direction: column;
    gap: 1.5rem;
  }

  .projects-hero {
    padding: 60px 0 40px;
  }

  .projects-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .projects-preview {
    display: none;
  }

  .projects-hero-header .section-title {
    font-size: 1.8rem;
  }

  .featured-slide-media {
    min-height: 170px;
  }

  .featured-slide-content {
    padding: 0.9rem 0.95rem 0.95rem;
    gap: 0.6rem;
  }

  .featured-slide-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .profile-container {
    width: 180px;
    height: 180px;
  }

  .profile-pic-hero {
    width: 100%;
    height: 100%;
  }

  .projects-preview .preview-card {
    width: 60px;
    height: 60px;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  .method-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .expertise-card,
  .timeline-card,
  .contact-form-card {
    padding: 1rem;
  }

  .navbar-inner {
    padding: 0.8rem;
  }

  .container {
    padding: 0 0.8rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .modal-header {
    padding: 0.8rem 1rem 1.3rem;
    gap: 0.75rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
    padding: 0.25rem 2rem 0 0.65rem;
  }

  .close {
    width: 30px;
    height: 30px;
    top: 0.8rem;
    right: 1rem;
  }

  .close::before,
  .close::after {
    width: 13px;
  }

  .footer-modern {
    padding: 2.5rem 0 1.25rem;
  }

  .footer-content {
    padding: 0.6rem 0.8rem 0.4rem;
  }

  .footer-top {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mobile-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--animation-smooth);
  z-index: 999;
  pointer-events: none;
}

.navbar-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {

  .btn:focus-visible,
  .nav-link:focus-visible,
  .project-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
  }

  .navbar-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .project-card {
    min-height: 0;
  }

  .modal-header {
    padding: 0.85rem 1.15rem 1.35rem;
    gap: 0.8rem;
  }

  .modal-header h2 {
    font-size: 1.15rem;
    padding: 0.25rem 2.25rem 0 0.75rem;
  }

  .close {
    width: 31px;
    height: 31px;
    top: 0.85rem;
    right: 1.15rem;
  }

  .close::before,
  .close::after {
    width: 13.5px;
  }

  .footer-modern {
    padding: 2.75rem 0 1.35rem;
  }

  .footer-content {
    padding: 0.7rem 0.9rem 0.45rem;
  }

  .footer-top {
    gap: 1.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .contact-form-card {
    padding: 2rem 1.25rem;
    margin: 0 1rem;
  }

  .contact-form {
    max-width: 100%;
  }
}

.contact-message {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-message.success {
  background-color: #D1FAE5;
  color: #065F46;
  border-left: 4px solid #10B981;
}

.contact-message.error {
  background-color: #FEE2E2;
  color: #7F1D1D;
  border-left: 4px solid #EF4444;
}

.contact-message::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-message.success::before {
  background-color: #10B981;
  content: '✓';
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.contact-message.error::before {
  background-color: #EF4444;
  content: '✕';
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

@media (max-width: 1000px) {

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(420px, 80vw);
    height: 100vh;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5.5rem 0 2rem;
    margin: 0;
    gap: 0;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: -10px 0 60px rgba(10, 35, 66, 0.25);
    border-left: 1px solid rgba(10, 35, 66, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .navbar-menu.show {
    right: 0;
  }

  .navbar-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    transform: translateX(60px);
  }

  .navbar-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.4rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    transition: all 0.8s var(--animation-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
  }

  .navbar-menu .btn-nav-projects {
    margin: 1.8rem 2rem 1rem 2rem;
    background: var(--accent);
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    padding: 1.2rem 1.8rem;
    transition: all 0.2s var(--animation-smooth);
    border: none;
    box-shadow: 0 4px 16px rgba(10, 35, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
  }

  .navbar-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .navbar-toggle {
    display: flex;
  }
}