* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* UPDATED: Set Lato as the default body font */
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* UPDATED: Apply Josefin Sans to all major headings */
.hero-title, 
.section-title,
.category-title,
.contact-title,
.card-title,
.project-title {
  font-family: 'Josefin Sans', sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
}

/* ADJUSTED LETTER SPACING */
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem); 
  font-weight: 800;
  letter-spacing: -0.03em; /* TIGHTENED SPACE */
  margin-bottom: 1rem; 
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ADJUSTED SIZE */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1rem); /* MADE SMALLER (1rem max) */
  font-weight: 400;
  color: #ccc;
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
}

.glass-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(78, 205, 196, 0.1);
}

.glass-card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.card-description {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.link-btn {
  background: rgba(78, 205, 196, 0.1);
  color: #4ecdc4;
  border: 1px solid rgba(78, 205, 196, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.link-btn:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2rem); 
  font-weight: 700;
  text-align: center;
  margin: 3rem 0 2rem; 
  letter-spacing: 0.02em; 
  color: #fff;
}

.projects-scroll-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.scroll-arrow.left {
  left: 0;
}

.scroll-arrow.right {
  right: 0;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.scroll-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.projects-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.projects-grid::-webkit-scrollbar {
  height: 8px;
}

.projects-grid::-webkit-scrollbar-track {
  background: transparent;
}

.projects-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.project-card {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(78, 205, 196, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.project-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  line-height: 1.4;
}

.project-description {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  flex: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
}

.project-link-btn {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  color: #4ecdc4;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}

.project-link-btn:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.category-section {
  margin: 4rem 0;
}

/* ADJUSTED COLOR */
.category-title {
  font-size: clamp(1.5rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #ccc; /* LIGHTER COLOR */
  margin-bottom: 1.5rem; 
  padding: 0 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}

.contact-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
  padding: 6rem 2rem;
  margin-top: 4rem;
}

.contact-container {
  max-width: 500px; 
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem; 
  color: #fff;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4ecdc4;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  background: rgba(78, 205, 196, 0.1);
  color: #4ecdc4;
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

@media (max-width: 768px) {
  .glass-cards {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .projects-scroll-wrapper {
    padding: 0 3rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

/* --- CSS FIXES FOR MOBILE SCROLL ARROWS --- */
@media (max-width: 600px) {
  .projects-scroll-wrapper {
    padding: 0 1.5rem; 
  }

  .scroll-arrow {
    width: 40px;
    height: 40px;
  }

  .scroll-arrow.left {
    left: 0;
  }

  .scroll-arrow.right {
    right: 0;
  }
}