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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: invert(1) opacity(0.8);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: invert(1) opacity(1);
}

.visitor-counter {
    display: inline-block;
    background-color: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-top: 20px;
}

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

#visitor-count {
    font-weight: 600;
    color: var(--accent);
    margin-left: 5px;
}

/* Main Content */
main {
    padding: 40px 0;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: #475569;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* Timeline (Experience) */
.timeline-item {
    display: flex;
    margin-bottom: 25px;
}

.timeline-date {
    flex: 0 0 120px;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.0rem;
    padding-top: 3px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h5 {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 10px;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 5px;
}

.timeline-notes {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Certifications */
.cert-item {
    display: flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cert-item+.cert-item {
    margin-top: 20px;
}

.cert-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
    margin-right: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cert-badge-giac {
    background: #876F10;
}

.cert-badge-aws {
    background: rgb(56, 67, 80);
}

.cert-badge-comptia {
    background: rgb(238, 48, 36);
}

.cert-badge-isc2 {
    background: rgb(0, 0, 0);
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cert-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-row p {
    margin: 0;
}

.cert-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cert-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    background-color: rgba(15, 23, 42, 0.5);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        margin-bottom: 10px;
    }
}