/* ============================================
   Yopi Cahya - Personal Landing Page
   Dark Theme | Modern | Professional
   ============================================ */

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

:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-card: #1d2d50;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-muted: #5a6785;
    --accent: #64ffda;
    --accent-hover: #45e6c2;
    --highlight: #64ffda;
    --border: #233554;
    --white: #e6f1ff;
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    padding: 8px 20px !important;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent) !important;
    transition: all 0.3s ease !important;
}

.btn-contact:hover {
    background: rgba(100, 255, 218, 0.1) !important;
}

.btn-contact::after {
    display: none !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.3;
}

.highlight {
    color: var(--accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 20px;
}

.hero-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Code Block Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-block {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }

.code-title {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
}

.code-block .kw { color: #c792ea; }
.code-block .var { color: #82aaff; }
.code-block .key { color: #64ffda; }
.code-block .str { color: #c3e88d; }
.code-block .num { color: #f78c6c; }
.code-block .bool { color: #ff5370; }

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 300px;
}

.number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--white);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Experience Section
   ============================================ */
.experience {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.company {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

.timeline-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-meta i {
    margin-right: 6px;
    color: var(--accent);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-card.featured .project-image {
    height: 100%;
    min-height: 300px;
}

.project-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(29, 45, 80, 0.6);
}

.project-overlay i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.5;
}

.project-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-status.active {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.project-gas { background: linear-gradient(135deg, #1a365d, #2d3748); }
.project-exhibition { background: linear-gradient(135deg, #1a365d, #e53e3e); }
.project-insurance { background: linear-gradient(135deg, #1a365d, #2c5282); }
.project-auto { background: linear-gradient(135deg, #1a365d, #276749); }
.project-crm { background: linear-gradient(135deg, #1a365d, #553c9a); }
.project-erp { background: linear-gradient(135deg, #1a365d, #744210); }

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tech span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-primary);
    border-radius: 4px;
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   Skills Section
   ============================================ */
.skills {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.skill-category h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--accent);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li::before {
    content: '▹';
    color: var(--accent);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 32px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--accent);
}

.contact-card span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.contact-card small {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer i {
    color: #ff6b6b;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .project-card.featured .project-image {
        min-height: 200px;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .timeline-header {
        flex-direction: column;
    }
    
    .timeline-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   SVG Brand Icons
   ============================================ */
.hero-social .brand-icon {
    width: 22px;
    height: 22px;
}

.hero-social a:hover .brand-icon path {
    fill: var(--accent);
}

.contact-card .brand-icon {
    width: 32px;
    height: 32px;
}

.contact-email .brand-icon path { fill: #EA4335; }
.contact-linkedin .brand-icon path { fill: #0A66C2; }
.contact-github .brand-icon path { fill: #E6E6E6; }
.contact-whatsapp .brand-icon path { fill: #25D366; }

.contact-card:hover .brand-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
