/* File: style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #6a11cb;
    --primary-grad: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --primary-soft: rgba(106, 17, 203, 0.08);
    --bg: #f8fafc;
    --card: #ffffff;
    --text-main: #0f172a;
    --text-sub: #64748b;
    --border: #e2e8f0;
    --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(106, 17, 203, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 117, 252, 0.03) 0px, transparent 50%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh; /* Modern mobile viewport height */
    padding: 1.5rem;
}

.main-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: slideUpFade 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Header Section --- */
.header {
    margin-bottom: 3.5rem;
    width: 100%;
}

.header h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem); /* Responsive font scaling */
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: #4f46e5; 
    background: none;
    -webkit-text-fill-color: initial;
}

.header p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-sub);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Card Container --- */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--card);
    width: 320px;
    max-width: 100%; /* Prevents overflow on very small screens */
    padding: 3rem 2rem;
    border-radius: 36px;
    box-shadow: var(--shadow-premium);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(106, 17, 203, 0.12);
}

/* --- REFINED AESTHETIC ICONS --- */
.card-icon {
    width: 84px;
    height: 84px;
    background: #ffffff;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-grad);
    opacity: 0.04;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.card:hover .card-icon {
    transform: rotate(-6deg) scale(1.1);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(106, 17, 203, 0.25);
}

.card:hover .card-icon::before {
    opacity: 0.1;
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    font-weight: 500;
}

/* --- Trademark Footer --- */
.main-footer {
    margin-top: 4rem;
    padding: 1rem;
    width: 100%;
}

.copyright-tag {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 500;
    line-height: 1.6;
}

.copyright-tag a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    transition: opacity 0.2s;
}

.copyright-tag a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        align-items: flex-start; /* Better scrolling experience on mobile */
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .header {
        margin-bottom: 2.5rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
        border-radius: 28px;
    }

    .card-container {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        letter-spacing: -0.02em;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.35rem;
    }
}