@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Lexend:wght@100..900&display=swap');

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

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --link-color: #0066cc;
    --link-hover: #004999;
    --shadow: rgba(0, 0, 0, 0.05);
    --badge-bg: #0066cc;
    --status-live: #28a745;
    --status-dev: #ffc107;
    --status-completed: #6c757d;
}

body.dark-mode {
    --bg-primary: #0A0A0A;
    --bg-secondary: #151515;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #71717a;
    --border-color: #27272a;
    --link-color: #A78BFA;
    --link-hover: #C4B5FD;
    --shadow: rgba(0, 0, 0, 0.5);
    --badge-bg: #A78BFA;
    --status-live: #22c55e;
    --status-dev: #eab308;
    --status-completed: #6b7280;
}

body {
    font-family: 'DM Mono', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    transition: background-color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body:not(.dark-mode) .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body:not(.dark-mode) .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Horizontal Rules */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 60px 0;
    opacity: 0.6;
}

/* Header */
header {
    margin-bottom: 0;
    padding-bottom: 0;
}

h1 {
    font-family: 'Lexend', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

body.dark-mode h1 {
    font-weight: 700;
}

.subtitle {
    font-family: 'DM Mono', sans-serif;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-weight: 500;
}

body.dark-mode .subtitle {
    color: var(--link-color);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

/* Intro Section */
.intro {
    font-family: 'Lexend', sans-serif;
    margin-bottom: 60px;
    font-size: 1.125rem;
    line-height: 1.9;
}

.intro p {
    margin-bottom: 18px;
    color: var(--text-primary);
}

.intro strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Skills Section */
.skills {
    margin-bottom: 60px;
}

h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-category {
    margin-bottom: 28px;
}

.skill-category h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.skill-category p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Projects Section */
.projects {
    margin-bottom: 60px;
}

.project {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

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

.project h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.project-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #fff;
    background-color: var(--badge-bg);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.live {
    background-color: var(--status-live);
}

.project-status.development {
    background-color: var(--status-dev);
    color: #333;
}

.project-status.completed {
    background-color: var(--status-completed);
}

.project > p {
    font-family: 'Lexend', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 1rem;
}

.project p.tech {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: normal;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 400;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 14px;
}

.project-links a {
    font-family: 'DM Mono', monospace;
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    font-weight: 400;
}

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

/* Experience Section */
.experience {
    margin-bottom: 60px;
}

.job {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

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

.job h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.period {
    font-family: 'DM Mono', sans-serif;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Removed duplicate .location - now defined under .job section */

.job > p {
    font-family: 'Lexend', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.job p.tech {
    font-family: 'DM Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: normal;
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: 400;
    opacity: 0.9;
}

.job p.period {
    font-family: 'DM Mono', sans-serif;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job p.location {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: var(--link-color);
    margin-bottom: 16px;
    font-style: normal;
    font-weight: 400;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .intro {
        font-size: 1rem;
    }
}
