

/* ===== HERO ===== */
.hero {
  min-height: 55vh;
  background: url("../img/UIUX\ &\ Web\ Experience\ Design\ -\ 007\ \(1\).png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.hero h1 {
 font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  max-width: 720px;
}

.hero p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: #e5e7eb;
  max-width: 600px;
}

.hero .line {
  width: 90px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 26px;
}


/* ================= AI SECTION ================= */
.ai-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  /* background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 40%,
    #eef2f7 100%
  ); */
}

.ai-bg-glow {
  position: absolute;
  inset: 0;
  /* background:
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1), transparent 40%); */
  pointer-events: none;
}

/* ================= HEADER ================= */
.ai-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.ai-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.ai-header h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.ai-header .highlight {
  background: linear-gradient(135deg, #ef4444, #ff6b6b);
  -webkit-background-clip: text;
  color: transparent;
}

.ai-header p {
  font-size: 1.1rem;
  color: #475569;
}

/* ================= GRID ================= */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* ================= CARDS ================= */
.ai-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.ai-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.18);
}

/* ================= ICON ================= */
.ai-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aiFloat 4s ease-in-out infinite;
}

.ai-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.ai-card p {
  color: #475569;
  line-height: 1.6;
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ================= KEYFRAMES ================= */
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aiFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .ai-header h2 {
    font-size: 2rem;
  }
}
 

/* ================= BLOCK LAYOUT ================= */
.block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 100px 0;
}

/* Reverse spacing handled by markup order */

/* ================= TEXT ================= */
.block .text h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #0f172a;
}

.block .text p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.7;
}

/* ================= FEATURES GRID ================= */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 35px;
}

/* ================= FEATURE CARD ================= */
.features .card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
  transition: all 0.35s ease;
}

.features .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.18);
}

.features .card strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.features .card p {
  font-size: 0.95rem;
  color: #475569;
}

/* ================= VISUAL ================= */
.block .visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.block .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

/* ================= SUBTLE GLOW ================= */
.block .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(239, 68, 68, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.block .visual:hover::after {
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .block {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 80px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .block .text h2 {
    font-size: 1.8rem;
  }

  .features .card {
    padding: 20px;
  }
}


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

.block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}

.block .visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
}

@media (max-width: 1024px) {
  .block {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .block .visual { order: 2; }
  .block .text { order: 1; }
}
