/* CKM Tech - Modern Design System */

/* Root Variables & Tokens */
:root {
    --bg-dark: #080B10;
    --bg-card: rgba(18, 24, 38, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Brand Colors - Cleo */
    --color-cleo: #06B6D4; /* Cyan */
    --color-cleo-glow: rgba(6, 182, 212, 0.15);
    --color-cleo-dark: #0891B2;
    
    /* Brand Colors - Carlos */
    --color-carlos: #8B5CF6; /* Purple */
    --color-carlos-glow: rgba(139, 92, 246, 0.15);
    --color-carlos-dark: #7C3AED;
    
    /* Brand Colors - CKM Tech (Combined) */
    --color-accent: #10B981; /* Emerald */
    --color-accent-glow: rgba(16, 185, 129, 0.15);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Grids & Orbs */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
        radial-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 0);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glow-carlos {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--color-carlos) 0%, transparent 70%);
}

.glow-cleo {
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--color-cleo) 0%, transparent 70%);
}

/* Common Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ckm-grad {
    background-image: linear-gradient(135deg, var(--color-cleo), var(--color-carlos), var(--color-accent));
}

.carlos-grad {
    background-image: linear-gradient(135deg, #A78BFA, var(--color-carlos));
}

.cleo-grad {
    background-image: linear-gradient(135deg, #67E8F9, var(--color-cleo));
}

.purple-grad {
    background-image: linear-gradient(135deg, #C084FC, var(--color-accent));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cleo), var(--color-carlos));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-carlos {
    background: linear-gradient(135deg, var(--color-carlos), #6D28D9);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.btn-cleo {
    background: linear-gradient(135deg, var(--color-cleo), #0891B2);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 11, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.logo .text-accent {
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #fff;
}

.nav-btn {
    display: inline-flex;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: #fff;
    color: var(--bg-dark);
}

/* Language Flags Selector */
.lang-flags {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flag-btn {
    display: block;
    width: 26px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flag-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.flag-btn.active {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(100%);
    box-shadow: none;
    border-color: transparent;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(8, 11, 16, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 99;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-nav-btn {
    display: flex;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-cleo), var(--color-carlos));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 10;
    padding-top: 180px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero layout adjustments for individual views */
body.view-standard .hero-container,
body.view-cleo .hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

body.view-standard .hero-container .hero-text-col,
body.view-cleo .hero-container .hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Hide hero profile images in portal view */
.hero-visual-col {
    display: none;
    justify-content: center;
    align-items: center;
}

body.view-standard .hero-visual-col,
body.view-cleo .hero-visual-col {
    display: flex;
}

.hero-profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 38%;
    border: 4px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

body.view-standard .hero-profile-img {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

body.view-cleo .hero-profile-img {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.hero-profile-img:hover {
    transform: scale(1.02);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.badge-dot.dot-carlos { background-color: var(--color-carlos); }
.badge-dot.dot-cleo { background-color: var(--color-cleo); }

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* Metrics Section */
.metrics-section {
    padding: 40px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.metric-num {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.text-gradient-teal {
    background: linear-gradient(135deg, #67E8F9, var(--color-cleo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #C084FC, var(--color-carlos));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34D399, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Common Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Partners Section (Co-Founder Cards) */
.partners-section {
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 32px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.carlos-card-theme::before { background-color: var(--color-carlos); }
.cleo-card-theme::before { background-color: var(--color-cleo); }

.partner-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.partner-visual {
    flex-shrink: 0;
}

.partner-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 38%;
    border: 2px solid var(--border-color);
}

.partner-info {
    display: flex;
    flex-direction: column;
}

.partner-name {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.partner-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.partner-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.partner-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.carlos-card-theme .partner-link { color: var(--color-carlos); }
.cleo-card-theme .partner-link { color: var(--color-cleo); }

.partner-link:hover {
    opacity: 0.8;
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 48px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: 50%;
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    z-index: 5;
    border: 2px solid var(--bg-dark);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
    right: auto;
}

.dot-purple { background-color: var(--color-carlos); }
.dot-blue { background-color: var(--color-cleo); }
.dot-cyan { background-color: var(--color-accent); }

.timeline-date {
    position: absolute;
    top: 20px;
    left: calc(100% + 24px);
    width: 200px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: calc(100% + 24px);
    text-align: right;
}

.timeline-card {
    width: calc(100% - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: var(--border-hover);
}

.card-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-role {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline-details {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Stack Section (Skills Matrix) */
.stack-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.skills-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.filter-btn.active {
    background: #fff;
    color: var(--bg-dark);
    border-color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.skill-category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.category-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-cyan { color: var(--color-cleo); }
.text-blue { color: #3b82f6; }
.text-purple { color: var(--color-carlos); }
.text-emerald { color: var(--color-accent); }
.text-teal { color: #14b8a6; }

.category-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skill-level {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.lvl-expert { background: rgba(16, 185, 129, 0.1); color: var(--color-accent); }
.lvl-advanced { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.lvl-intermediate { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* Projects Section */
.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 16px;
}

.tag-cleo-color {
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--color-cleo);
}

.tag-carlos-color {
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--color-carlos);
}

.project-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* Education Section */
.education-section {
    padding: 80px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.education-col {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.edu-title {
    font-size: 1.4rem;
    margin-bottom: 28px;
}

.edu-card {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-bottom: 24px;
    position: relative;
}

.edu-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.edu-course {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.edu-inst {
    font-size: 0.85rem;
}

.lang-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.lang-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.lang-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

.contact-info-panel .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-panel-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-person {
    margin-bottom: 32px;
}

.person-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.person-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.person-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.person-contact-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.person-contact-list a:hover {
    color: #fff;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.form-group.invalid .form-control {
    border-color: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.error-message {
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 6px;
    display: none;
}

.form-group.invalid .error-message {
    display: block;
}

.form-success-alert {
    display: none;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

.form-success-alert.show {
    display: flex;
}

.btn-submit-form {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.15);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Scroll Animation classes */
.animate-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation utilities for Hero */
.animate-fade-in {
    animation: fadeIn 1s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   DYNIMIC ROUTING / VIEW FILTERING (CSS)
   ========================================= */

/* Carlos Only View Rules */
body.view-standard .cleo-only,
body.view-standard .ckm-only,
body.view-standard .cleo-only-item,
body.view-standard .cleo-only-edu,
body.view-standard .cleo-only-contact,
body.view-standard .cleo-only-nav {
    display: none !important;
}

body.view-standard {
    --color-accent: var(--color-carlos);
    --color-accent-glow: var(--color-carlos-glow);
}

body.view-standard .timeline-line {
    background: linear-gradient(to bottom, transparent, var(--color-carlos), transparent);
}

/* Cleo Only View Rules */
body.view-cleo .carlos-only,
body.view-cleo .ckm-only,
body.view-cleo .carlos-only-item,
body.view-cleo .carlos-only-edu,
body.view-cleo .carlos-only-contact,
body.view-cleo .carlos-only-nav {
    display: none !important;
}

body.view-cleo {
    --color-accent: var(--color-cleo);
    --color-accent-glow: var(--color-cleo-glow);
}

body.view-cleo .timeline-line {
    background: linear-gradient(to bottom, transparent, var(--color-cleo), transparent);
}

/* CKM Combined Portal View Rules */
body.view-ckm .carlos-only,
body.view-ckm .cleo-only,
body.view-ckm .carlos-only-nav,
body.view-ckm .cleo-only-nav,
body.view-ckm #experience {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .lang-flags {
        margin-left: auto;
        margin-right: 20px;
    }

    body.view-standard .hero-container,
    body.view-cleo .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    body.view-standard .hero-container .hero-text-col,
    body.view-cleo .hero-container .hero-text-col {
        align-items: center;
    }

    .hero-profile-img {
        width: 240px;
        height: 240px;
        order: -1;
    }

    .partners-grid,
    .skills-grid,
    .projects-grid,
    .education-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 45px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
    }
    
    .timeline-dot {
        left: 13px !important;
        right: auto !important;
    }
    
    .timeline-date {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        text-align: left !important;
        display: block;
        margin-bottom: 8px;
    }
    
    .timeline-card {
        width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 576px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Dropdown CV Menu Styles */
.dropdown-cv {
    position: relative;
    display: inline-block;
}

.dropdown-cv .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-cv .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.dropdown-cv .dropdown-chevron {
    transition: transform 0.3s ease;
}

.dropdown-cv.active .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-cv .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown-cv.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-cv .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.dropdown-cv .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* On mobile, adjust dropdown-cv width */
@media (max-width: 968px) {
    .dropdown-cv {
        width: 100%;
    }
    .dropdown-cv .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
    .dropdown-cv .dropdown-menu {
        width: 100%;
        left: 0;
    }
}

/* Smooth fade rotation animation for profile pictures */
.hero-profile-img, .partner-avatar-img {
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
    filter: blur(0px);
    opacity: 1;
}
.hero-profile-img.fade-out, .partner-avatar-img.fade-out {
    filter: blur(12px) brightness(0.8) !important;
    transform: scale(0.96) !important;
    opacity: 0.6 !important;
}


/* ================================================================= */
/* PLAYGROUND LAYOUT (Unicorn & Child-friendly theme)                */
/* ================================================================= */

html.view-playground {
    background: linear-gradient(135deg, #FFF0F5 0%, #E6E6FA 50%, #E0FFFF 100%) !important;
}

html.view-playground body {
    background-color: transparent !important;
    color: #4A4A4A !important;
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif !important;
}

/* Unicorn Background Elements */
.unicorn-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bubble-1 { width: 120px; height: 120px; top: 15%; left: 10%; animation: floatBubble 12s infinite ease-in-out; }
.bubble-2 { width: 80px; height: 80px; top: 60%; left: 80%; animation: floatBubble 8s infinite ease-in-out 2s; }
.bubble-3 { width: 150px; height: 150px; top: 75%; left: 15%; animation: floatBubble 15s infinite ease-in-out 1s; }
.bubble-4 { width: 60px; height: 60px; top: 25%; left: 70%; animation: floatBubble 10s infinite ease-in-out 3s; }

.star-float {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.star-1 { top: 10%; right: 15%; animation: floatStar 6s infinite ease-in-out; }
.star-2 { top: 45%; left: 8%; animation: floatStar 8s infinite ease-in-out 1.5s; }
.star-3 { top: 70%; right: 25%; animation: floatStar 7s infinite ease-in-out 3s; }
.star-4 { top: 30%; left: 45%; animation: floatStar 9s infinite ease-in-out 0.5s; }

/* Unicorn Header */
.unicorn-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px dashed #FFB84C;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.unicorn-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unicorn-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A4A4A;
}

.unicorn-logo-text .sparkle {
    color: #FF6B6B;
}

.unicorn-nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}

.play-nav-link {
    color: #4A4A4A;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.play-nav-link:hover {
    background: #FFD2E4;
    transform: scale(1.05);
}

.play-nav-btn {
    display: inline-flex;
    padding: 8px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #FF6B6B, #FFB84C);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.play-nav-btn:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.5);
}

/* Play Hero Section */
.play-hero {
    padding: 140px 0 80px 0;
}

.play-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.rainbow-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    border: 2px dashed #4D96FF;
    border-radius: 50px;
    font-weight: 700;
    color: #4D96FF;
    margin-bottom: 20px;
}

.play-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #333;
    margin-bottom: 20px;
}

.rainbow-text {
    background: linear-gradient(45deg, #FF6B6B, #FFB84C, #4D96FF, #B1B2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.play-description {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
}

.super-job-card {
    background: #fff;
    border: 3px solid #B1B2FF;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 25px rgba(177, 178, 255, 0.15);
    margin-bottom: 30px;
}

.super-job-card h3 {
    margin-top: 10px;
    color: #6C5B7B;
    font-size: 1.25rem;
}

.crown-icon {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 2.5rem;
    animation: bounceCrown 2s infinite ease-in-out;
}

.role-desc {
    font-size: 1.15rem;
    font-weight: 600;
    color: #FF6B6B;
    margin: 10px 0;
}

.job-status {
    font-size: 0.95rem;
    color: #999;
}

.play-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-magic {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF94B9, #B1B2FF);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 148, 185, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-magic:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 148, 185, 0.6);
}

.btn-play-sec {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 50px;
    background: #fff;
    color: #4A4A4A;
    border: 2px solid #FFD2E4;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-play-sec:hover {
    background: #FFF5F8;
    transform: translateY(-2px);
}

.play-hero-visual {
    display: flex;
    justify-content: center;
}

.play-avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    background: #fff;
    border: 8px solid #FFD2E4;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(255, 210, 228, 0.4);
}

.play-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 38%;
    transition: all 0.4s ease;
    cursor: pointer;
}

.play-avatar-img:hover {
    transform: scale(1.05) rotate(3deg);
}

.avatar-star-decor {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 3rem;
    animation: rotateStar 5s infinite linear;
}

/* Play Timeline Section */
.play-timeline-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.4);
    border-top: 3px dashed #B1B2FF;
    border-bottom: 3px dashed #B1B2FF;
}

.play-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.play-section-header h2 {
    font-size: 2.3rem;
    color: #4A4A4A;
    margin-bottom: 10px;
}

.play-section-header p {
    font-size: 1.1rem;
    color: #7A7A7A;
}

.play-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.play-timeline-card {
    background: #fff;
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 6px solid #ccc;
    position: relative;
}

.play-timeline-card:hover {
    transform: translateY(-8px);
}

.block-pink { border-color: #FF94B9; }
.block-purple { border-color: #B1B2FF; }
.block-cyan { border-color: #97E7E1; }

.play-card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.play-card-date {
    display: inline-block;
    padding: 4px 14px;
    background: #F0F0F0;
    border-radius: 20px;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
}

.play-timeline-card h3 {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 10px;
}

.play-timeline-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.milestone-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
}

/* Playful Super Powers Section */
.play-powers-section {
    padding: 80px 0;
}

.play-powers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.power-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 2px solid #FFF0F5;
}

.power-card:hover {
    transform: scale(1.03);
    border-color: #FFD2E4;
}

.power-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.power-card h3 {
    font-size: 1.15rem;
    color: #4A4A4A;
    margin-bottom: 8px;
}

.power-card p {
    font-size: 0.9rem;
    color: #6B6B6B;
}

/* Playful Contact Section */
.play-contact-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.4);
    border-top: 3px dashed #FFF0F5;
}

.play-contact-box {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    border-radius: 36px;
    padding: 48px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 3px dashed #FFD2E4;
}

.play-form-group {
    margin-bottom: 24px;
}

.play-form-group label {
    display: block;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 8px;
}

.play-form-control {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #DDD;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

.play-form-control:focus {
    outline: none;
    border-color: #B1B2FF;
    box-shadow: 0 0 10px rgba(177, 178, 255, 0.3);
}

.play-error-message {
    display: none;
    color: #FF6B6B;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}

.btn-submit-magic {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 10px;
}

.play-form-success-alert {
    display: none;
    background-color: #EBFEEA;
    color: #2D6A4F;
    border: 2px solid #52B788;
    border-radius: 20px;
    padding: 16px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.unicorn-footer {
    padding: 40px 0;
    text-align: center;
    background: #fff;
    border-top: 3px dashed #FFB84C;
}

.unicorn-footer p {
    font-size: 0.95rem;
    color: #7A7A7A;
}

/* Animations */
@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floatStar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

@keyframes rotateStar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounceCrown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* ================================================================= */
/* ACCESSIBILITY & PREFERS REDUCED MOTION                           */
/* ================================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    .bubble, .star-float, .crown-icon, .avatar-star-decor {
        animation: none !important;
        transform: none !important;
    }
}

/* Responsiveness for Playground */
@media (max-width: 768px) {
    .play-hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .play-hero-visual {
        order: -1;
    }
    .play-avatar-wrapper {
        width: 250px;
        height: 250px;
    }
    .unicorn-nav {
        display: none;
    }
    .play-title {
        font-size: 2.2rem;
    }
    .play-ctas {
        justify-content: center;
    }
}
