/* Simple responsive portfolio style */
:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-soft: #f8f9ff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #4f46e5;
  --accent-soft: #c7d2fe;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--accent);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  width: 100%;
  padding: 80px 24px;
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
  padding: 80px 24px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero-subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 620px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.22);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: min(100%, 420px);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 130px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.stat h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: var(--accent);
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.projects {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.skills {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.contact {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.projects h2,
.skills h2,
.contact h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 24px;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.project-detail {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.project-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 32px; */
  /* align-items: center; */
  /* margin-bottom: 40px; */
  padding: 24px;
}

.project-info {
  max-width: 640px;
}

.project-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.project-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 0.9rem;
}

.project-image-large {
  min-height: 320px;
}

.project-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.project-overview,
.project-features,
.project-tech,
.project-architecture,
.project-results,
.project-screenshots {
  margin-bottom: 36px;
  position: relative;
}

.project-screenshots h2 {
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.project-screenshots h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.stat-box h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: var(--accent);
}

.stat-box p {
  margin: 0;
  color: var(--muted);
}

.features-grid,
.tech-stack,
.architecture-content,
.results-content,
.screenshots-grid,
.links-grid,
.challenges-list {
  display: grid;
  gap: 20px;
}

.features-grid,
.results-content,
.screenshots-grid,
.links-grid,
.challenges-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-item,
.tech-category,
.result-item,
.screenshot,
.link-item,
.challenge-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.feature-item h3,
.tech-category h3,
.result-item h3,
.challenge-item h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.feature-item p,
.result-item p,
.challenge-item p,
.screenshot p,
.tech-item,
.link-item span {
  color: var(--muted);
  line-height: 1.7;
}

.feature-item i,
.result-item i,
.link-item i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.tech-stack {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tech-category {
  padding: 20px;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 0.85rem;
}

.architecture-content {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.arch-diagram img {
  width: 100%;
  border-radius: 24px;
}

.project-links .links-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(79, 70, 229, 0.12);
  background: #f8f9ff;
  color: var(--accent);
}

.link-item:hover,
.link-item:focus {
  background: #eef2ff;
}

.screenshot img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 14px;
}

/* Slider Styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(248, 250, 252, 0.8) 100%);
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.08),
    0 8px 16px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.carousel-slide img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}

.carousel-slide img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-slide img:hover::before {
  opacity: 1;
}

/* Image overlay with title */
.carousel-slide::after {
  content: attr(data-title);
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-slide:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide p {
  margin: 20px 0 0 0;
  padding: 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.carousel-slide p::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 1px;
}

.carousel-slide p {
  margin: 16px 0;
  padding: 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 16px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 15;
}

.carousel-arrow {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(15, 23, 42, 0.15),
    0 2px 8px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

.carousel-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(15, 23, 42, 0.2),
    0 4px 12px rgba(15, 23, 42, 0.15);
}

.carousel-arrow:hover::before {
  opacity: 1;
}

.carousel-arrow:active {
  transform: scale(0.95) translateY(0);
}

.carousel-arrow:hover {
  background: white;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-arrow i {
  font-size: 1.1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  background: linear-gradient(135deg, var(--surface-soft) 0%, rgba(241, 245, 249, 0.8) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent);
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(79, 70, 229, 0.3);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.carousel-dot.active::before {
  width: 100%;
  height: 100%;
}

.carousel-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image Preview Modal */
.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-preview-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 32px 64px rgba(15, 23, 42, 0.15),
    0 16px 32px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 20px;
}

.modal-close:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.05);
}

.zoom-controls {
  display: flex;
  gap: 12px;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  color: var(--accent);
}

.zoom-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 300px;
  max-height: 70vh;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.3);
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: grab;
  transition: transform 0.1s ease;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  user-select: none;
}

.modal-image:active {
  cursor: grabbing;
}

.modal-caption {
  padding: 20px 24px;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.modal-caption::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 1px;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover,
.back-link:focus {
  text-decoration: underline;
}

.project-header h1 a {
  color: inherit;
}

.project-architecture ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-architecture li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.project-architecture li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 992px) {
  .project-header,
  .architecture-content {
    grid-template-columns: 1fr;
  }
}

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

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.project-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-3px);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: white;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(79, 70, 229, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-link:hover,
.project-link:focus {
  transform: translateY(-2px);
  background: #f3efff;
}

.typing-text {
  display: inline-block;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #3b3c57;
  font-size: 0.85rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(79, 70, 229, 0.14);
  transform: translateY(-2px);
}

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

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.skill-category h3 {
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 0.9rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  align-items: center;
}

.contact-item i {
  font-size: 1.6rem;
  color: var(--accent);
  min-width: 34px;
}

.contact-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.form-group {
  margin-bottom: 18px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: white;
  padding: 14px 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.2);
}

footer {
  width: 100%;
  padding: 40px 24px 60px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
}

.social-links a:hover,
.social-links a:focus {
  transform: translateY(-2px);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-container {
    padding: 16px 20px;
  }

  .nav-menu {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  .project-content,
  .skill-category,
  .contact-item,
  .contact-form {
    padding: 20px;
  }

  .hero-subtitle {
    margin-bottom: 24px;
  }

  .carousel-container {
    max-width: 100%;
    border-radius: 16px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-counter {
    font-size: 0.75rem;
    padding: 6px 10px;
    top: 12px;
    right: 12px;
  }

  .carousel-slide img {
    border-radius: 12px;
  }

  .carousel-slide::after {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .carousel-slide p {
    margin-top: 16px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .carousel-slide p::before {
    width: 30px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
    min-height: 200px;
  }

  .modal-caption {
    padding: 16px 20px;
    font-size: 0.9rem;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .zoom-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
