:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Section */
header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 2rem;
    text-align: center;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 100%;
    margin:auto;
    text-align: center;
}

/* Sections common styling */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Skills Tags */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #334155;
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: monospace;
}

/* Contact Section */
.contact-links {
    display: flex;
    gap: 1.5rem;
}

.contact-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--accent);
}

/* Separate Page - Certificates Custom Layout */
.certs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.cert-card {
    background-color: var(--card-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.2s;
}

@media (min-width: 600px) {
    .cert-card {
        flex-direction: row;
        align-items: center;
    }
}

.cert-card:hover {
    border-color: var(--accent);
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.issuer {
    font-size: 0.9rem;
    color: var(--accent);
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-link a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    background-color: #334155;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s;
}

.cert-link a:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}
