/* SRE Professional Theme - Styles */

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --code-bg: #edf2f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Navigation === */
.navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--bg-white);
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: var(--bg-white);
    background: rgba(255,255,255,0.15);
}

/* === Main Content === */
.main-content {
    flex: 1;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 4rem 1.5rem;
    text-align: center;
}

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

.hero-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    border: 3px solid rgba(255,255,255,0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === Sections === */
.about-section,
.skills-section {
    padding: 4rem 0;
}

.about-section {
    background: var(--bg-white);
}

.skills-section {
    background: var(--bg-light);
}

.section-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.75rem auto 0;
}

/* === About Cards === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.about-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === Skills === */
.skills-container {
    display: grid;
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--code-bg);
    color: var(--text-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--bg-white);
}

/* === Resume Page === */
.resume-page {
    padding: 2rem 0;
}

.resume-header {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.resume-photo-container {
    margin-bottom: 1.5rem;
}

.resume-photo-placeholder {
    width: 150px;
    height: 200px;
    background: var(--code-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resume-photo-placeholder img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.resume-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.resume-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.resume-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.resume-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.section-heading {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.profile-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Experience */
.experience-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.experience-header h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.experience-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.company-name {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Education */
.education-item h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

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

/* Certificates */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.certificate-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.cert-name {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

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

.skill-group h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.skill-group p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Languages */
.languages-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.language-item {
    color: var(--text-light);
}

/* === Notes Page === */
.notes-page {
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
}

.notes-container {
    display: grid;
    gap: 1.5rem;
}

.note-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.note-card:hover {
    box-shadow: var(--shadow-md);
}

.note-header {
    margin-bottom: 0.75rem;
}

.note-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
}

.note-content {
    color: var(--text-light);
    line-height: 1.7;
}

.note-content code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.85em;
    color: var(--primary-color);
}

.note-content pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.note-content pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.note-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.note-content a:hover {
    text-decoration: underline;
}

.note-content strong {
    color: var(--text-dark);
}

/* Loading & Error States */
.loading,
.error-message,
.no-notes {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.error-message {
    color: #c53030;
}

.error-detail {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* === Footer === */
.footer {
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
    }
    
    .resume-contacts {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .languages-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
}
