:root {
    --primary-color: #12181b; 
    --secondary-color: #38bdf8; 
    --bg-color: #0f172a; 
    --text-color: #e2e8f0; 
    --card-bg: #1e293b; 
    --code-bg: #0d1117; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png');
    color: white;
    text-align: center;
    padding: 120px 20px;
    border-bottom: 1px solid #334155;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 80px 5%;
}

.bg-light {
    background-color: #0b1120; 
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #f8fafc;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Cards & Accordions */
.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 25px;
    border: 1px solid #334155;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

details {
    background: #0f172a;
    padding: 15px;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

details:hover {
    background: #1e293b;
}

summary {
    font-weight: bold;
    font-size: 1.1rem;
    color: #e2e8f0;
    outline: none;
}

.details-content {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
    color: #cbd5e1;
}

.clean-list {
    list-style-position: inside;
    margin-top: 10px;
    color: #cbd5e1;
}

/* Certifications Layout */
.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #0d1117;
    border: 2px solid #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.cert-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid for Projects */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #334155;
}

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

.highlight-card {
    border: 2px solid var(--secondary-color);
}

.project-image {
    background-color: #0d1117;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #334155;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box properly */
}

.project-card h3 {
    padding: 20px 20px 10px;
    color: #f8fafc;
}

.project-card p {
    padding: 0 20px 20px;
    flex-grow: 1;
    color: #94a3b8;
}

.btn {
    display: block;
    margin: 0 20px 20px;
    padding: 12px;
    background: var(--secondary-color);
    color: #0f172a;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #0ea5e9; 
}

/* Experience Blocks */
.experience-block {
    background: var(--card-bg);
    padding: 25px;
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 0 8px 8px 0;
}

.experience-block h3 {
    color: #f8fafc;
}

.experience-block .date {
    color: #38bdf8;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.experience-block p {
    margin-bottom: 10px;
}

/* Code Snippets Formatting */
.code-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.code-card {
    background: var(--card-bg);
}

pre {
    background-color: var(--code-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    border: 1px solid #334155;
    line-height: 1.5;
}

code {
    color: #e2e8f0;
}

/* Syntax Highlighting Colors */
.keyword { color: #ff7b72; font-weight: bold; } 
.function { color: #d2a8ff; } 
.type { color: #79c0ff; } 
.string { color: #a5d6ff; } 
.comment { color: #8b949e; font-style: italic; } 
.number { color: #79c0ff; } 
.literal { color: #79c0ff; } 

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: var(--primary-color);
    color: #94a3b8;
    border-top: 1px solid #334155;
}