/* ==========================================================================
   PORTFOLIO 1: CREATIVE DEVELOPER (ARCHITECTURE 2, SMALL TYPOGRAPHY)
   ========================================================================== */

:root {
    --primary: #0f172a;        /* Deep Slate */
    --brand-primary: #8b5cf6;  /* Electric Violet */
    --brand-secondary: #06b6d4;/* Neon Cyan */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #020617;        /* Ultra Dark Blue/Black */
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY OVERHAUL - Strict small, refined sizes */
h1, h2, h3, h4, .logo { color: var(--primary); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.refined-title { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 15px; } /* Much smaller than previous sites */
.refined-heading { font-size: clamp(1.5rem, 2vw, 2rem); margin-bottom: 15px; }
.refined-subtitle { font-size: 0.95rem; color: var(--text-muted); max-width: 500px; margin-bottom: 25px; line-height: 1.7; }

.font-md { font-size: 1.1rem; }
.font-sm { font-size: 0.85rem; }
.font-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 5%; } /* Tighter container for portfolios */
img { max-width: 100%; display: block; border-radius: 12px; }
a { text-decoration: none; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: white !important; }
.vibrant-text { color: var(--brand-primary); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: white; }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-top-dark { border-top: 1px solid rgba(255,255,255,0.1); }
.opacity-70 { opacity: 0.7; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 1px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.eyebrow { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.mb-4 { margin-bottom: 30px; } .mt-2 { margin-top: 10px; } .mt-4 { margin-top: 20px; } .pt-3 { padding-top: 15px; }

/* Banner */
.josef-preview-banner { background: var(--bg-light); color: var(--text-main); text-align: center; padding: 8px; font-size: 12px; border-bottom: 1px solid var(--border); }

/* =========================================================
   ARCHITECTURE 2 (FLOATING SCULPTED NOTCH) - Refined
   ========================================================= */
.header-2-wrapper { margin-top: 20px; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.05)); z-index: 100; position: relative; }
.logo { font-size: 1.4rem; font-weight: 800; }
.nav-link { transition: color 0.2s; font-weight: 500; color: var(--text-main); }
.nav-link:hover { color: var(--brand-primary); }

.h2-top { width: 90%; background: white; border-radius: 16px 16px 0 0; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; position: relative; border-bottom: 1px solid var(--border); }
.h2-bottom { width: 70%; background: white; border-radius: 0 0 16px 16px; padding: 12px 25px; display: flex; justify-content: center; gap: 30px; position: relative; }
.h2-bottom::before, .h2-bottom::after { content: ''; position: absolute; top: 0; width: 20px; height: 20px; background: transparent; }
.h2-bottom::before { left: -20px; border-top-right-radius: 12px; box-shadow: 10px -10px 0 0 white; }
.h2-bottom::after { right: -20px; border-top-left-radius: 12px; box-shadow: -10px -10px 0 0 white; }

/* 1. Hero Section */
.portfolio-hero { padding: 20px 0 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }

.btn-vibrant { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: white; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; transition: transform 0.2s; display: inline-flex; align-items: center; gap: 8px; border: none; }
.btn-vibrant:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); color: white; }

.social-pills { display: flex; gap: 10px; }
.social-pills a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 50px; font-size: 0.8rem; font-weight: 500; color: var(--text-main); transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.social-pills a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.hero-image { position: relative; }
.hero-image img { height: 400px; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.floating-badge { position: absolute; bottom: -20px; left: -20px; background: white; padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); }
.floating-badge i { font-size: 1.5rem; color: var(--brand-secondary); background: #ecfeff; padding: 8px; border-radius: 8px; }
.floating-badge strong { display: block; color: var(--primary); font-size: 0.95rem; }
.floating-badge span { color: var(--text-muted); font-size: 0.75rem; }

/* 2. Skills Grid (No Images) */
.skills-section { padding: 80px 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.skill-category h3 { margin-bottom: 15px; color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: white; border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: var(--primary); transition: all 0.2s; }
.tag:hover { border-color: var(--brand-secondary); color: var(--brand-secondary); background: #ecfeff; }

/* 3. Selected Work (Projects) */
.work-section { padding: 100px 0; }
.projects-wrapper { display: flex; flex-direction: column; gap: 60px; margin-top: 40px; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.project-card.reverse { direction: rtl; } /* Flips layout without changing HTML structure */
.project-card.reverse > * { direction: ltr; } /* Resets text direction */

.project-img-wrap { height: 350px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img-wrap img { transform: scale(1.03); }

/* CSS Mockup Graphic for Project 2 to save images */
.css-graphic-bg { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); display: flex; justify-content: center; align-items: center; }
.css-mockup { background: white; padding: 30px; border-radius: 12px; width: 60%; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: 1px solid white; text-align: center; }
.css-mockup i { font-size: 3rem; color: var(--brand-primary); margin-bottom: 20px; display: block; }
.mock-line { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 10px; margin-left: auto; margin-right: auto; }
.w-50 { width: 50%; } .w-80 { width: 80%; } .w-60 { width: 60%; }

.project-year { font-size: 0.8rem; font-weight: 800; display: block; margin-bottom: 5px; }
.project-info h3 { margin-bottom: 15px; }
.project-tech { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.project-tech span { font-size: 0.75rem; color: var(--brand-primary); background: #f3e8ff; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
.project-link { font-size: 0.85rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s; }
.project-link:hover { color: var(--brand-secondary); }

/* 4. Experience Timeline */
.experience-section { padding: 80px 0; }
.timeline-container { max-width: 600px; margin: 40px auto 0 auto; position: relative; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -37px; top: 0; width: 12px; height: 12px; background: white; border: 2px solid var(--brand-primary); border-radius: 50%; }
.timeline-content h3 { margin-top: 5px; margin-bottom: 2px; }

/* 5. Testimonials (CSS Cards) */
.testimonial-section { padding: 80px 0; }
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.test-card { padding: 30px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-light); }
.quote-icon { font-size: 2rem; color: var(--brand-secondary); opacity: 0.5; display: block; margin-bottom: 15px; }

/* 6. Footer */
.portfolio-footer { padding: 80px 0 30px 0; }
.footer-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; }
.social-list { display: flex; flex-direction: column; gap: 10px; }
.social-list a { color: white; display: flex; align-items: center; gap: 10px; opacity: 0.7; transition: opacity 0.2s; }
.social-list a:hover { opacity: 1; color: var(--brand-secondary); }

/* Animations */
.fade-in-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Adaptations */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .h2-top { width: 100%; border-radius: 12px; padding: 15px; }
    .hero-grid, .project-card, .test-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-card.reverse { direction: ltr; } /* Reset order on mobile */
    .hero-text h1 { font-size: 2.2rem; }
    .footer-flex { flex-direction: column; align-items: flex-start; }
}