:root {
    /* Modern color palette */
    --bg: #ffffff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --chip: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Base styles */
html,
body {
    margin: 0;
    padding: 40px 24px 64px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 48px;  
}

/* Header styles */
header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 24px;
    text-align: center;
    animation: fadeDown 0.5s ease-out;
}

.name {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.2s ease;
}

.name:hover {
    opacity: 0.9;
}

.title {
    color: var(--text);
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Contact section */
.contact {
    display: inline-flex;   
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.contact p {
    margin: 0;
    font-size: 16px;
    color: var(--text);
    transition: color 0.2s ease;
}

.contact a,
.item a {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 550;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact a:hover,
.item a:hover {
    background: var(--chip);
    color: var(--accent-hover);
}

/* Visitor counter styles */
#count {
    color: var(--accent); /* Same color as links */
    font-weight: 700; /* Bold text */
    font-size: 16px; /* Optional: Adjust font size for emphasis */
}

/* Card styles */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.5s ease-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Section titles */
.section-title {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.section-title svg {
    width: 20px;
    height: 20px;
    stroke: #000000;
    stroke-width: 2px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: stroke 0.2s ease;
}

.section-title:hover svg {
    stroke: var(--accent);
}

/* New Certification Style */
.certifications .certification {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 2px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.certifications .certification:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.certifications .certification h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
/* Link/Button Style */
.credential-link {
    display: inline-block;
    padding: 3px 14px;
    font-size: 14px;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
    color: var(--accent); /* Ensure the default color is applied */
}

.credential-link:hover {
    background-color: var(--accent);
    color: white;
}

/* Preparing Badge Style */
.certifications .certification.preparing h3 {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

.cert-badge {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Optional: scale down a bit on mobile */
@media (max-width: 600px) {
    .cert-badge {
        width: 20px;
        height: 20px;
    }
}

/* External link arrow style */
.external-icon {
    font-size: 0.95em;
    margin-left: 2px;
    vertical-align: baseline;
}


/* Chip styles */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    padding: 16px;
    margin-bottom: 2px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.chip:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* List styles */
.list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.meta {
    color: var(--accent);
    font-size: 14px;
    margin-top: 4px;
}

.bullets {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.bullets li {
    margin-bottom: 6px;
}

/* Project specific styles */
.project {
    border-left: 3px solid var(--text);
    padding-left: 12px;
}

.project a {
    padding: 4px 12px;
    border-radius: 6px;
}

.project a:hover {
    text-decoration: none;
    background: var(--chip);
}

/* Footer */
footer {
    color: var(--text);
    font-size: 15px;
    text-align: center;
    margin-top: 20px;
    animation: fadeUp 0.5s ease-out;
}

/* Animations */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid layout */
.grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: 320px 1fr;
        column-gap: 48px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html, body {
        padding: 24px 16px 48px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .card {
        padding: 24px;
    }

    .section-title svg {
        width: 18px;
        height: 18px;
    }
}

/* Print optimization */
@media print {
    .page {
        gap: 32px;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
    }
    
    .card:hover {
        transform: none;
    }

    a {
        color: var(--text) !important;
        text-decoration: none;
    }

    .no-print {
        display: none !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}