/* =====================================================
   HOMEPAGE STYLES
   ===================================================== */

/* ----- Hero Section ----- */
.hero {
  padding: calc(70px + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(12, 206, 173, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-block;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-content h1 span {
  font-weight: 300;
  color: var(--blue-accent);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ----- Profile Section ----- */
.profile-section {
  padding: var(--space-3xl) 0;
  background: var(--blue-accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,133.3C960,160,1056,192,1152,186.7C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  position: relative;
  z-index: 2;
}

.profile-content h2,
.education-timeline h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

.profile-content h3 {
  color: var(--teal-light);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

.profile-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ----- Education Timeline ----- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  gap: var(--space-md);
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--teal);
  transition: var(--transition);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.timeline-item .year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-light);
}

.timeline-item .details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-item .details p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.timeline-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.education-timeline .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.education-timeline .btn-outline:hover {
  background: var(--white);
  color: var(--blue-accent);
}

/* ----- Worked With Section ----- */
.worked-with {
  padding: var(--space-3xl) 0;
  background: var(--dark);
}

.worked-with .section-title h2 {
  color: var(--white);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  height: 100px;
  transition: var(--transition);
}

.logo-item img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
  transition: var(--transition);
}

.logo-item:hover img {
  transform: scale(1.05);
}

/* ----- Responsive Design ----- */

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .hero-image img {
    max-width: 350px;
  }

  .hero-image::before {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border-width: 2px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .profile-section {
    padding: var(--space-2xl) 0;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .profile-content h2,
  .education-timeline h2 {
    font-size: 1.75rem;
  }

  .profile-content h3 {
    font-size: 1.25rem;
  }

  .profile-content p {
    font-size: 0.9rem;
  }

  .timeline-item {
    grid-template-columns: 80px 1fr 60px;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .timeline-item .year {
    font-size: 0.9rem;
  }

  .timeline-item .details h4 {
    font-size: 0.9rem;
  }

  .timeline-item .details p {
    font-size: 0.8rem;
  }

  .timeline-item img {
    width: 60px;
    height: 60px;
  }

  .worked-with {
    padding: var(--space-2xl) 0;
  }

  .logos-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
  }

  .logo-item {
    height: 80px;
    padding: var(--space-sm);
  }

  .logo-item img {
    max-width: 100px;
    max-height: 50px;
  }
}

/* Below 1024px - Stack hero */
@media (max-width: 1024px) {
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet Portrait and below (768px) */
@media (max-width: 768px) {
  .hero {
    padding: calc(70px + var(--space-xl)) 0 var(--space-xl);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .hero-image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image::before {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .timeline-item .year {
    font-size: 1.1rem;
  }

  .timeline-item img {
    margin: 0 auto;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .logo-item {
    height: 80px;
    padding: var(--space-sm);
  }

  .logo-item img {
    max-width: 100px;
    max-height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .profile-content h3 {
    font-size: 1.25rem;
  }

  .timeline-item {
    padding: var(--space-sm);
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

