/* ============================================================
   Template: Creative — Full-width hero, alternating sections
   Clean, modern, whitespace-rich design
   ============================================================ */

/* Hero: full viewport */
.tpl-creative .tpl-hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff; text-align: center; padding: 2rem;
}
.tpl-hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
    background-size: 50px 50px;
}
.tpl-hero-content { position: relative; z-index: 1; max-width: 800px; }
.tpl-hero-label {
    display: inline-block; padding: 0.4rem 1.25rem; border-radius: 9999px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.tpl-hero-name { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.tpl-hero-title { font-size: 1.25rem; opacity: 0.85; font-weight: 400; margin-bottom: 0.5rem; }
.tpl-hero-bio { font-size: 1rem; opacity: 0.7; max-width: 550px; margin: 0 auto 2rem; line-height: 1.7; }
.tpl-hero-avatar {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 5px solid rgba(255,255,255,0.3); margin: 0 auto 2rem; display: block;
}
.tpl-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tpl-hero-btn {
    padding: 0.85rem 2rem; border-radius: 9999px; font-weight: 700; font-size: 0.9rem;
    text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.tpl-hero-btn-primary { background: #fff; color: var(--color-primary); }
.tpl-hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: var(--color-primary); }
.tpl-hero-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.tpl-hero-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

.tpl-hero-social { display: flex; gap: 0.75rem; justify-content: center; }
.tpl-hero-social a {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem; font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.tpl-hero-social a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* Scroll indicator */
.tpl-hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    animation: bounce-scroll 2s infinite; opacity: 0.5;
}
@keyframes bounce-scroll { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Sections: alternating backgrounds */
.tpl-creative .tpl-section { padding: 5rem 2rem; }
.tpl-creative .tpl-section:nth-child(even) { background: var(--color-bg); }
.tpl-creative .tpl-section:nth-child(odd) { background: color-mix(in srgb, var(--color-bg) 95%, var(--color-primary)); }
.tpl-section-inner { max-width: 1100px; margin: 0 auto; }

/* Section headers: left-aligned with accent bar */
.tpl-creative .tpl-section-header { margin-bottom: 3rem; }
.tpl-creative .tpl-section-header h2 {
    font-family: var(--font-heading); font-size: 2.25rem; font-weight: 800;
    color: var(--color-text); margin-bottom: 0.5rem; position: relative; display: inline-block;
}
.tpl-creative .tpl-section-header h2::after {
    content: ''; position: absolute; bottom: -8px; left: 0; width: 60px; height: 4px;
    background: var(--color-primary); border-radius: 2px;
}
.tpl-creative .tpl-section-header p { font-size: 1rem; opacity: 0.5; margin-top: 1rem; }

/* About: split layout */
.tpl-about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.tpl-about-text { font-size: 1rem; line-height: 1.8; opacity: 0.8; }
.tpl-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tpl-about-stat {
    background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 16px;
    padding: 1.5rem; text-align: center;
}
.tpl-about-stat-value { font-size: 2.5rem; font-weight: 900; color: var(--color-primary); font-family: var(--font-heading); }
.tpl-about-stat-label { font-size: 0.8rem; opacity: 0.6; margin-top: 0.25rem; }

/* Experience: modern timeline */
.tpl-timeline-modern { position: relative; }
.tpl-timeline-modern::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}
.tpl-timeline-item { position: relative; padding-left: 56px; margin-bottom: 2.5rem; }
.tpl-timeline-dot {
    position: absolute; left: 10px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--color-primary); border: 4px solid var(--color-bg); z-index: 1;
}
.tpl-timeline-dot.current { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,0.2); }
.tpl-timeline-card {
    background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 16px;
    padding: 1.5rem 1.75rem; transition: transform 0.2s, box-shadow 0.2s;
}
.tpl-timeline-card:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

/* Skills: category cards */
.tpl-skills-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.tpl-skill-cat-card {
    background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 16px; padding: 2rem;
}
.tpl-skill-cat-title { font-weight: 800; font-size: 1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }

/* Projects: masonry-like */
.tpl-projects-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.tpl-project-card-creative {
    border-radius: 16px; overflow: hidden; background: var(--color-card-bg);
    border: 1px solid var(--color-border); transition: all 0.3s;
}
.tpl-project-card-creative:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Contact: modern split */
.tpl-contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.tpl-contact-info-card {
    display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 12px;
    background: var(--color-card-bg); border: 1px solid var(--color-border); margin-bottom: 1rem;
}
.tpl-contact-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--color-primary);
    display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}

/* Footer */
.tpl-creative-footer {
    background: var(--color-text); color: var(--color-bg); padding: 4rem 2rem; text-align: center;
}
.tpl-creative-footer-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .tpl-hero-name { font-size: 2.25rem; }
    .tpl-hero-avatar { width: 110px; height: 110px; }
    .tpl-about-split { grid-template-columns: 1fr; gap: 2rem; }
    .tpl-contact-split { grid-template-columns: 1fr; }
    .tpl-creative .tpl-section { padding: 3rem 1.25rem; }
    .tpl-about-stats { grid-template-columns: 1fr 1fr; }
    .tpl-projects-masonry { grid-template-columns: 1fr; }
}
