/* ============================================
   CV MUHAMAD IRHAM - MANHWA/COMIC STYLE
   ============================================ */

/* === CSS Variables === */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7c548;
    --accent-color: #e63946;
    --dark-bg: #1a1a2e;
    --panel-bg: #16213e;
    --text-light: #ffffff;
    --text-gold: #ffd700;
    --border-color: #ff6b35;
    --shadow-color: rgba(255, 107, 53, 0.5);
    --gradient-1: linear-gradient(135deg, #ff6b35, #f7c548);
    --gradient-2: linear-gradient(135deg, #e63946, #ff6b35);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* === Background Action Lines === */
.action-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        #fff 0deg 10deg,
        transparent 10deg 20deg
    );
}

/* === Container === */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER / COVER PANEL
   ============================================ */
.cv-header {
    background: var(--gradient-dark);
    border: 4px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px var(--shadow-color),
        inset 0 0 30px rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    gap: 40px;
}

.cv-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Profile Avatar === */
.profile-frame {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 5px solid var(--secondary-color);
    box-shadow: 
        0 0 40px var(--shadow-color),
        0 0 80px rgba(247, 197, 72, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
}

.avatar-text {
    font-family: 'Bangers', cursive;
    font-size: 60px;
    color: var(--primary-color);
    text-shadow: 
        3px 3px 0 var(--secondary-color),
        6px 6px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
}

.avatar-burst {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 3px dashed var(--secondary-color);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Header Info === */
.header-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.name-title {
    font-family: 'Bangers', cursive;
    margin-bottom: 20px;
    line-height: 1;
}

.name-main {
    display: block;
    font-size: 60px;
    color: var(--text-light);
    text-shadow: 
        4px 4px 0 var(--primary-color),
        8px 8px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 6px;
    animation: glitch 3s ease-in-out infinite;
}

.name-sub {
    display: block;
    font-size: 50px;
    color: var(--secondary-color);
    text-shadow: 
        3px 3px 0 var(--accent-color),
        6px 6px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 8px;
    margin-top: 5px;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* === Speech Bubble === */
.speech-bubble {
    background: white;
    color: var(--dark-bg);
    padding: 15px 25px;
    border-radius: 25px;
    position: relative;
    max-width: 500px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 14px;
    border: 3px solid var(--primary-color);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid white;
    filter: drop-shadow(-3px 0 0 var(--primary-color));
}

.speech-bubble.left-bubble::before {
    left: -20px;
    right: auto;
    border-right: 20px solid white;
    border-left: none;
    filter: drop-shadow(-3px 0 0 var(--primary-color));
}

.tagline {
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* === Header Badges === */
.header-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: var(--gradient-1);
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   CV PANELS (General)
   ============================================ */
.cv-panel {
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-panel:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px var(--shadow-color);
}

.panel-header {
    background: var(--gradient-1);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 4px solid var(--border-color);
    position: relative;
}

.panel-icon {
    font-size: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.panel-title {
    font-family: 'Bangers', cursive;
    font-size: 32px;
    color: var(--dark-bg);
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
    flex: 1;
}

.panel-number {
    background: var(--dark-bg);
    color: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bangers', cursive;
    font-size: 20px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(247, 197, 72, 0.5);
}

.panel-content {
    padding: 30px;
}

/* ============================================
   ABOUT PANEL
   ============================================ */
.about-panel .panel-header {
    background: var(--gradient-2);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.stat-value {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* ============================================
   EDUCATION PANEL
   ============================================ */
.education-panel .panel-header {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
}

.education-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.edu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 107, 53, 0.4);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.edu-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.edu-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-1);
    color: var(--dark-bg);
    padding: 5px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
}

.edu-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.edu-name {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.edu-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.edu-level {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
}

/* === Power Bar (Manhwa Style) === */
.power-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.5);
    position: relative;
}

.power-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 8px;
    position: relative;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.power-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   SKILLS PANEL
   ============================================ */
.skills-panel .panel-header {
    background: linear-gradient(135deg, #f72585, #b5179e);
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.skill-icon {
    font-size: 30px;
    margin-right: 10px;
}

.skill-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 10px;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.4);
}

.skill-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 4px;
    transition: width 1.5s ease;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
}

/* ============================================
   CONTACT PANEL
   ============================================ */
.contact-panel .panel-header {
    background: linear-gradient(135deg, #06d6a0, #118ab2);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.contact-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.contact-label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-value {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    word-break: break-word;
}

/* ============================================
   FOOTER
   ============================================ */
.cv-footer {
    text-align: center;
    padding: 30px;
    background: var(--gradient-dark);
    border: 4px solid var(--border-color);
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    animation: bounce 1s ease-in-out infinite;
}

.footer-decoration span {
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
}

.footer-decoration span:nth-child(1) { animation-delay: 0s; }
.footer-decoration span:nth-child(2) { animation-delay: 0.1s; }
.footer-decoration span:nth-child(3) { animation-delay: 0.2s; }
.footer-decoration span:nth-child(4) { animation-delay: 0.3s; }
.footer-decoration span:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .cv-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
    }

    .avatar-placeholder {
        width: 120px;
        height: 120px;
    }

    .avatar-text {
        font-size: 45px;
    }

    .name-main {
        font-size: 40px;
    }

    .name-sub {
        font-size: 35px;
    }

    .speech-bubble {
        max-width: 100%;
    }

    .speech-bubble::before {
        display: none;
    }

    .header-badges {
        justify-content: center;
    }

    .panel-title {
        font-size: 24px;
    }

    .panel-content {
        padding: 20px;
    }

    .education-timeline,
    .skills-grid,
    .contact-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .name-main {
        font-size: 32px;
    }

    .name-sub {
        font-size: 28px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .panel-header {
        padding: 15px 20px;
    }

    .panel-title {
        font-size: 20px;
    }

    .panel-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.cv-panel {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.cv-panel:nth-child(1) { animation-delay: 0.1s; }
.cv-panel:nth-child(2) { animation-delay: 0.2s; }
.cv-panel:nth-child(3) { animation-delay: 0.3s; }
.cv-panel:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Selection Style === */
::selection {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}