:root {
    --bg-primary: #f7f7f7;
    --bg-secondary: #eeeeee;
    --bg-hero: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
    --text-primary: #263238;
    --text-secondary: #546e7a;
    --text-light: #78909c;
    --nav-bg: #607d8b;
    --nav-text: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.12);
    --border-color: #cfd8dc;
    --accent-color: #cddc39;
    --accent-hover: #afb42b;
    --footer-bg: #607d8b;
}

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-hero: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-light: #a0aec0;
    --nav-bg: #0f172a;
    --nav-text: #e2e8f0;
    --card-bg: #1e293b;
    --card-shadow: rgba(0,0,0,0.3);
    --border-color: #334155;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --footer-bg: #0f172a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
nav {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--card-shadow);
    transition: background-color 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--nav-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--nav-text);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

/* Hero Section */
.hero {
    background: var(--bg-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
    transition: background 0.3s ease;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: white;
}

.contact-info {
    margin-top: 2rem;
    font-size: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: white;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* About Section */
.about {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.blog-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Blog Posts */
.blog-posts {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.blog-post {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-post h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.blog-post h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: #3498db;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #2980b9;
}

/* Experience Section */
.experience {
    padding: 3rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.experience h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

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

.job h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.job-period {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.job ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.job li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.skills h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: center;
}

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

.skill-category {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px var(--card-shadow);
}

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

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Education Section */
.education {
    padding: 3rem 0;
    background-color: white;
}

.education h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.degree {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.degree h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.degree-period {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.degree p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -2px 10px var(--card-shadow);
    z-index: 1000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-content strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cookie-btn.accept {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.cookie-btn.accept:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.cookie-btn.decline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .job ul,
    .degree {
        margin-left: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.25rem;
    }

    .cookie-content {
        flex-direction: column;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
