/* -------------------------------------------------------------
 * Custom Stylesheet for Robet Atiq Maulana Rifqi Portfolio
 * ------------------------------------------------------------- */

/* Variables */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 27, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(0, 242, 254, 0.15);
    
    --primary-color: #00f2fe;
    --primary-rgb: 0, 242, 254;
    --secondary-color: #9b51e0;
    --secondary-rgb: 155, 81, 224;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Utilities */
.section-padding {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.glow-primary {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
}

.glow-secondary {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.25) 0%, transparent 70%);
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-terminal {
    color: var(--primary-color);
}

.logo-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00c6ff 100%);
    color: #020617;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* Sections Common Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
}

.hero-content {
    flex: 1.2;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.typing-text {
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-icon:hover {
    color: var(--primary-color);
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-visual {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-glow-sphere {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--secondary-rgb), 0.1) 50%, transparent 100%);
    filter: blur(30px);
    animation: pulse 8s ease-in-out infinite;
}

.tech-stack-bubble-container {
    width: 320px;
    height: 320px;
    position: relative;
}

.tech-bubble {
    position: absolute;
    padding: 0.8rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.tech-bubble i {
    font-size: 1.2rem;
}

.tech-bubble.bubble-1 { top: 10%; left: 5%; animation: float-bubble 6s ease-in-out infinite; border-color: rgba(0, 242, 254, 0.3); }
.tech-bubble.bubble-2 { top: 20%; right: 5%; animation: float-bubble 7s ease-in-out infinite 1s; border-color: rgba(155, 81, 224, 0.3); }
.tech-bubble.bubble-3 { bottom: 25%; left: 15%; animation: float-bubble 8s ease-in-out infinite 0.5s; border-color: rgba(0, 242, 254, 0.3); }
.tech-bubble.bubble-4 { bottom: 10%; right: 10%; animation: float-bubble 6s ease-in-out infinite 2s; border-color: rgba(155, 81, 224, 0.3); }
.tech-bubble.bubble-5 { top: 55%; left: 45%; animation: float-bubble 9s ease-in-out infinite 1.5s; border-color: rgba(255, 255, 255, 0.2); }

.tech-bubble:hover {
    transform: scale(1.1);
    background: rgba(22, 27, 42, 0.95);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

/* Terminal Section */
.terminal-container {
    background: #080c14;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.terminal-header {
    background: #0d131f;
    padding: 0.9rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.term-btn.close { background-color: #ef4444; }
.term-btn.minimize { background-color: #f59e0b; }
.term-btn.maximize { background-color: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-status {
    font-size: 0.8rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-body {
    padding: 1.5rem;
    height: 350px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.terminal-line {
    word-break: break-all;
    line-height: 1.5;
}

.system-msg {
    color: var(--text-muted);
}

.cmd-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.prompt-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: var(--secondary-color);
    font-weight: bold;
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex: 1;
}

.terminal-result-item {
    margin-left: 1rem;
    margin-top: 0.2rem;
}

.terminal-shortcuts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.shortcut-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-shortcut {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-shortcut:hover {
    color: var(--primary-color);
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.3);
}

/* Skills Section */
.skills-filter {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary-color);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--card-glow);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-card-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 242, 254, 0.05);
    color: var(--primary-color);
    border-color: rgba(0, 242, 254, 0.2);
}

/* Experience Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-track {
    position: absolute;
    left: 30px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--card-border) 10%, var(--card-border) 90%, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 4rem;
}

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

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--card-border);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.timeline-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition-normal);
}

.timeline-item.active .timeline-dot {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.timeline-item.active .timeline-dot::after {
    background: var(--primary-color);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.timeline-item.active .timeline-content {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 242, 254, 0.05);
}

.timeline-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-company {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-meta {
    width: 100%;
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-desc-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-desc-list li {
    list-style-type: square;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-desc-list li::marker {
    color: var(--primary-color);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(155, 81, 224, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(155, 81, 224, 0.1);
}

.education-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.education-institute {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.education-major {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-duration {
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.education-desc-list {
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-desc-list li {
    list-style-type: circle;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.education-desc-list li::marker {
    color: var(--secondary-color);
}

/* Footer Section */
.main-footer {
    background: #070a10;
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 2rem 2rem;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scroll Animation Reveal Hook */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe Animations */
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

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

@keyframes float-bubble {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
        padding-top: 7rem;
        gap: 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: center;
    }
    
    .timeline-track {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-dot {
        left: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        flex-direction: column;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 73px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 3rem 0;
        gap: 2rem;
        border-top: 1px solid var(--card-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .terminal-body {
        height: 400px;
    }
}
