

/* ===== 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;
}



:root {
    --dark: #0f172a;
    --light: #f8fafc;
    --muted: #64748b;
    --accent: #ef4444;
    --accent-light: #f87171;
    --accent-dark: #dc2626;
    --surface: #ffffff;
    --border: rgba(239, 68, 68, 0.2);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    --gradient-primary: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-accent: linear-gradient(135deg, #f87171, #ef4444);
}


/* ================= SECTION TITLES ================= */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark);
}

.section-title h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    display: block;
    margin: 1rem auto;
    border-radius: 2px;
}

/* ================= INTRODUCTION ================= */
.intro {
    padding: 6rem 0;
    /* background: var(--surface); */
}

.intro-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ===== CMS CORE VISUAL ===== */
.animated-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* background: var(--gradient-accent); */
    position: relative;
    animation: pulse 3s infinite ease-in-out;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.35);
}

.animated-circle::before {
    content: "";
    position: absolute;
    inset: 15%;
    /* background: white; */
    border-radius: 50%;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.1);
}

.circle-item {
    position: absolute;
    width: 70px;
    height: 70px;
    /* background: white; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    animation: float 6s infinite ease-in-out;
}

.circle-item:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.circle-item:nth-child(2) { right: -20px; top: 50%; transform: translateY(-50%); animation-delay: .5s; }
.circle-item:nth-child(3) { bottom: -20px; left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.circle-item:nth-child(4) { left: -20px; top: 50%; transform: translateY(-50%); animation-delay: 1.5s; }

/* ================= WHY CHOOSE ================= */
.why-choose {
    padding: 6rem 0;
    /* background: var(--light); */
    position: relative;
}

.why-choose::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: radial-gradient(circle at top, rgba(239,68,68,.08), transparent 60%); */
}

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

.feature-card {
    /* background: var(--surface); */
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* background: var(--gradient-primary); */
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(0,0,0,.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    /* background: var(--gradient-accent); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: .8rem;
}

.feature-card p {
    color: var(--muted);
}

/* ================= FUTURE OF CMS ================= */
.key-features {
    padding: 3rem 0;
    /* background: var(--surface); */
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 2rem;
}

.key-feature {
    /* background: var(--light); */
    padding: 1.5rem;
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    transition: all .3s ease;
}

.key-feature:hover {
    transform: translateX(10px);
    /* background: #fff; */
    box-shadow: var(--shadow);
}

.key-feature h4 {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .8rem;
}

.key-feature i {
    color: var(--accent);
}

/* ================= SCROLL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= ANIMATIONS ================= */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .animated-circle { width: 240px; height: 240px; }
    .circle-item { width: 60px; height: 60px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero { min-height: 45vh; }
    .hero p { font-size: 1rem; }
}


/* ===== CONTENT VISIBILITY FIX ===== */
.hero,
.intro,
.why-choose,
.key-features {
    position: relative;
    z-index: 1;
}

.hero-content,
.intro .container,
.why-choose .container,
.key-features .container {
    position: relative;
    z-index: 2;
}

.hero::before,
.why-choose::before {
    z-index: 0;
}

/* Temporary reveal fallback */
.reveal {
    opacity: 1;
    transform: none;
}