/* ============================================
   ThomasHendriks.com - Stylesheet
   Modern, clean, responsive
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius-sm);
}

.logo-full {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}

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

.hero h1 {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.page-header {
    background: var(--bg-alt);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.project-icon-large {
    font-size: 3rem;
}

.project-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-card h2 {
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.project-card-large {
    grid-column: 1 / -1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-actions {
    margin-top: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Skills */
.skills-section {
    background: var(--bg-alt);
}

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

.skill-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.skill-item h3 {
    margin-bottom: 0.75rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-grid-full {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2,
.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h2:first-child,
.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-text ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Tech Stack */
.tech-stack {
    margin-top: 4rem;
    text-align: center;
}

.tech-stack h3 {
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-tag {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2,
.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    margin: 1.5rem 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-icon {
    font-size: 1.25rem;
}

/* Form */
.contact-form {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 99;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card-large {
        grid-column: auto;
    }

    .section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

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


/* ============================================
   SOCIALE MEDIA LINKS
   ============================================ */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Force icon size - critical fix for oversized SVGs */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
}

.social-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

.social-label {
    white-space: nowrap;
}

/* Platform-specifieke hover kleuren */
.social-link[title*="LinkedIn"]:hover { color: #0077b5; border-color: #0077b5; background: rgba(0,119,181,0.15); }
.social-link[title*="Instagram"]:hover { color: #e4405f; border-color: #e4405f; background: rgba(228,64,95,0.15); }
.social-link[title*="Facebook"]:hover { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,0.15); }
.social-link[title*="GitHub"]:hover { color: #f0f6fc; border-color: #f0f6fc; background: rgba(240,246,252,0.15); }
.social-link[title*="Twitter"]:hover { color: #1da1f2; border-color: #1da1f2; background: rgba(29,161,242,0.15); }
.social-link[title*="YouTube"]:hover { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,0.15); }
.social-link[title*="TikTok"]:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.15); }

/* Mobiel */
@media (max-width: 600px) {
    .social-links {
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .social-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .social-icon,
    .social-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* ============================================
   HEADER SOCIALE MEDIA ICONEN
   ============================================ */

.header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.header-social-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.header-social-link svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

/* Platform-specifieke kleuren */
.header-social-link[title*="LinkedIn"]:hover { color: #0077b5; border-color: #0077b5; background: rgba(0,119,181,0.1); }
.header-social-link[title*="Instagram"]:hover { color: #e4405f; border-color: #e4405f; background: rgba(228,64,95,0.1); }
.header-social-link[title*="Facebook"]:hover { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,0.1); }
.header-social-link[title*="GitHub"]:hover { color: #333; border-color: #333; background: rgba(51,51,51,0.1); }
.header-social-link[title*="Twitter"]:hover { color: #1da1f2; border-color: #1da1f2; background: rgba(29,161,242,0.1); }
.header-social-link[title*="YouTube"]:hover { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,0.1); }
.header-social-link[title*="TikTok"]:hover { color: #000; border-color: #000; background: rgba(0,0,0,0.1); }

/* Mobiel: verbergen in menu, tonen onder logo */
@media (max-width: 768px) {
    .header-social {
        display: none;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .header-social-mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
        margin: 0;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (min-width: 769px) {
    .header-social-mobile {
        display: none;
    }
}


/* ============================================
   CONTACTPAGINA SOCIALE MEDIA
   ============================================ */

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-social-link:hover {
    transform: translateX(4px);
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.contact-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-social-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.contact-social-label {
    white-space: nowrap;
}

/* Platform-specifieke kleuren */
.contact-social-link[title*="LinkedIn"]:hover { color: #0077b5; border-color: #0077b5; background: rgba(0,119,181,0.08); }
.contact-social-link[title*="Instagram"]:hover { color: #e4405f; border-color: #e4405f; background: rgba(228,64,95,0.08); }
.contact-social-link[title*="Facebook"]:hover { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,0.08); }
.contact-social-link[title*="GitHub"]:hover { color: #333; border-color: #333; background: rgba(51,51,51,0.08); }
.contact-social-link[title*="Twitter"]:hover { color: #1da1f2; border-color: #1da1f2; background: rgba(29,161,242,0.08); }
.contact-social-link[title*="YouTube"]:hover { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,0.08); }
.contact-social-link[title*="TikTok"]:hover { color: #000; border-color: #000; background: rgba(0,0,0,0.08); }

/* Mobiel */
@media (max-width: 768px) {
    .contact-social {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-social-link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}


/* ============================================
   HEADER SOCIALE MEDIA ICONEN — GEFIXT
   ============================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.header-social-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.header-social-link svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

/* Platform-specifieke kleuren */
.header-social-link[title*="LinkedIn"]:hover { color: #0077b5; border-color: #0077b5; background: rgba(0,119,181,0.1); }
.header-social-link[title*="Instagram"]:hover { color: #e4405f; border-color: #e4405f; background: rgba(228,64,95,0.1); }
.header-social-link[title*="Facebook"]:hover { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,0.1); }
.header-social-link[title*="GitHub"]:hover { color: #333; border-color: #333; background: rgba(51,51,51,0.1); }
.header-social-link[title*="Twitter"]:hover { color: #1da1f2; border-color: #1da1f2; background: rgba(29,161,242,0.1); }
.header-social-link[title*="YouTube"]:hover { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,0.1); }
.header-social-link[title*="TikTok"]:hover { color: #000; border-color: #000; background: rgba(0,0,0,0.1); }

/* Mobiel: social iconen verbergen in header */
@media (max-width: 768px) {
    .header-social {
        display: none;
    }

    .header-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}


/* Admin link in navigation */
.admin-nav-link {
    color: var(--primary) !important;
    font-weight: 600;
}

.admin-nav-link:hover {
    color: var(--primary-dark) !important;
}

/* Favicon fallback styles */
