/* 1. Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-coral: #ff7f50;
    --bg-dark: #020617;
    --card-bg: rgba(15, 23, 42, 0.6);
    --text-slate: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
}

/* 2. Background & Layout */
section {
    min-height: 100vh;
    padding: 8rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.grain-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
}

/* 3. Header Styling */
.header-content {
    text-align: center;
    margin-bottom: 5rem;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 127, 80, 0.1);
    color: var(--primary-coral);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 127, 80, 0.2);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(to right, #ff7f50, #ff6b6b);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. Grid & Cards */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 20px;
}

/* The hover reveal effect */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-coral) 0%, #ff4d4d 100%);
    clip-path: circle(0% at 100% 100%);
    transition: clip-path 0.6s ease-in-out;
    z-index: 0;
}

.card:hover::before {
    clip-path: circle(150% at 100% 100%);
}

.card-content {
    position: relative;
    z-index: 1;
}

.icon {
    width: 40px;
    height: 40px;
    color: var(--primary-coral);
    margin-bottom: 1.5rem;
    transition: color 0.4s;
    stroke: currentColor;
    stroke-width: 1.5;
}

.card:hover .icon, 
.card:hover h2, 
.card:hover p {
    color: white;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.4s;
}

p {
    color: var(--text-slate);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: color 0.4s;
}

/* 5. Button Styling */
.btn {
    padding: 10px 25px;
    border-radius: 12px;
    border: none;
    background: white;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .btn {
    background: var(--bg-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}