/* Dark Theme (Default) */
:root {
    --bg-primary: #1a1d23;
    --bg-secondary: #22262e;
    --bg-tertiary: #2a2e36;
    --text-primary: #e6e8eb;
    --text-secondary: #9ca3af;
    --accent-blue: #6b95c4;
    --accent-green: #6b95c4;
    --accent-purple: #6b95c4;
    --accent-orange: #6b95c4;
    --border-color: #3a3e46;
    --shadow: rgba(0, 0, 0, 0.2);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --accent-blue: #5a7a9a;
    --accent-green: #5a7a9a;
    --accent-purple: #5a7a9a;
    --accent-orange: #5a7a9a;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 40px 20px;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 15px;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Header Section */
header {
    background: transparent;
    padding: 40px 40px 30px 40px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background 0.3s ease;
}

h1 {
    font-size: 2em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent-blue);
    text-decoration: none;
    margin: 0 6px;
    transition: opacity 0.2s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}

.contact-info i {
    margin-right: 4px;
    font-size: 0.9em;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--text-secondary);
}

.theme-toggle-icon {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.theme-label {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Section Styling */
.section {
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.3em;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95em;
}

/* Experience/Project Items */
.item {
    margin-bottom: 24px;
    padding: 16px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: none;
}

.item:hover {
    border-bottom-color: var(--border-color);
}

.item:last-child {
    margin-bottom: 0;
}

h3 {
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.company {
    font-style: normal;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.9em;
}

ul {
    margin-top: 12px;
    padding-left: 24px;
}

li {
    margin-bottom: 12px;
    color: var(--text-primary);
}

li strong {
    color: var(--text-primary);
    font-weight: 500;
}

a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.skills-list span {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 400;
    border: 1px solid var(--border-color);
    transition: none;
    cursor: default;
}

.skills-list span:hover {
    background: transparent;
}

footer {
    text-align: center;
    padding: 30px 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.counter-container {
    display: block;
    text-align: center;
    font-size: 1em;
    color: var(--text-secondary);
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#counter {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.2em;
    margin-left: 8px;
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    header {
        padding: 30px 20px 20px 20px;
    }

    h1 {
        font-size: 1.6em;
    }

    .subtitle {
        font-size: 1em;
    }

    .section {
        padding: 24px 20px;
    }

    .item {
        padding: 12px 0;
    }

    h2 {
        font-size: 0.85em;
    }

    .contact-info {
        font-size: 0.8em;
        line-height: 1.6;
    }

    .contact-info span,
    .contact-info a {
        display: block;
        margin: 4px 0;
    }

    footer {
        padding: 20px;
    }

    /* Theme toggle responsive */
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 5px 8px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#counter:empty::after {
    content: '...';
    animation: pulse 1.5s ease-in-out infinite;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

