:root {
    --bg: #fcfcfc;
    --text: #1a1a1a;
    --text-muted: #555555;
    --accent: #2d3436;
    --border: #e1e1e1;
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 0, 0, 0.01) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 20%);
    color: var(--text);
    line-height: 1.6;
    padding: 6rem 1.5rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 100%;
}

header {
    margin-bottom: 5rem;
    text-align: center;
}

h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    /* Not very bold */
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--accent);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.intro {
    margin-bottom: 5rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    aspect-ratio: 1 / 1;
    justify-content: flex-start;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: #000;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icon,
.brand-logo {
    width: 28px;
    height: 28px;
    color: var(--accent);
    stroke-width: 1.5px;
    object-fit: contain;
}

.card h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--accent);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: auto;
}

.card-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-minimal {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.btn-minimal:hover {
    border-color: var(--text);
    letter-spacing: 0.1em;
}

.upit-card:hover {
    border-color: #6D28D9;
    /* UpIT Purple */
}

.charity-card:hover {
    border-color: #e31e24;
}

.karmena-card:hover {
    border-color: #B8860B;
    /* DarkGoldenRod for a premium feel */
}

.diviem-ai-card:hover {
    border-color: #3B82F6;
    /* AI Blue */
}

.contact-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.social-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

/* Values Section */
.values-section {
    margin-bottom: 8rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.card-content-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.card-content-list p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.card-content-list strong {
    color: var(--accent);
    display: block;
    margin-bottom: 2px;
}

.values-section .card {
    aspect-ratio: auto;
    min-height: 100%;
}

/* Experience Section Styles */
.experience-section {
    margin-bottom: 8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.exp-card {
    background: #fdfdfd;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.exp-card:hover {
    border-color: var(--accent);
    background: #fff;
}

.icon-small {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    stroke-width: 2px;
}

.exp-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.exp-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

.social-btn {
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.social-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: var(--transition);
}

.social-btn:hover::after {
    width: 100%;
}

footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.developer-credit:hover {
    opacity: 1;
}

.developer-logo {
    height: 14px;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.developer-credit:hover .developer-logo {
    filter: grayscale(0);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body {
        padding: 4rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    .card {
        padding: 2rem;
        aspect-ratio: auto;
    }
}