/* =====================================================
   PORTOFOLIO MUKHLIS NASUTION - MAIN STYLESHEET
   Version: 3.0
   Author: Mukhlis Nasution
   ===================================================== */

/* =====================================================
   ROOT VARIABLES & RESET
   ===================================================== */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #4de3ff;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --text-muted: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 10px 30px rgba(0, 212, 255, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-gray);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* =====================================================
   SCROLLBAR CUSTOM
   ===================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =====================================================
   NAVBAR STYLES
   ===================================================== */
.navbar {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(5, 5, 5, 0.98);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.navbar-nav .nav-link {
    color: var(--text-white);
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
    position: relative;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}

.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-toggler {
    border-color: var(--primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 212, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #001a1a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
section {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.text-center.section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-dark {
    background-color: var(--bg-darker) !important;
}

/* =====================================================
   TIMELINE / EXPERIENCE SECTION
   ===================================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 30px;
    }
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 3rem;
}

.timeline-badge {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.timeline-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: transform var(--transition-normal);
}

.timeline-card:hover {
    transform: translateX(10px);
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.timeline-card h5 {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* =====================================================
   CARD STYLES (Solution, Lab, Skill, Education)
   ===================================================== */
.solution-card,
.lab-card,
.skill-category,
.edu-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.solution-card::before,
.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.solution-card:hover::before,
.lab-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover,
.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: rgba(0, 212, 255, 0.3);
}

.solution-card i,
.lab-card i {
    margin-bottom: 1rem;
    transition: transform var(--transition-normal);
}

.solution-card:hover i,
.lab-card:hover i {
    transform: scale(1.1);
}

.solution-card h3,
.lab-card h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.lab-card h4 {
    font-size: 1.2rem;
}

.solution-card p,
.lab-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =====================================================
   STATISTICS CARDS
   ===================================================== */
.stat-card {
    background: rgba(0, 212, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform var(--transition-normal);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(0, 212, 255, 0.12);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: 700;
}

.stat-card p {
    margin-top: 0.5rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */
.skill-category {
    padding: 1.5rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    padding: 0.6rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    transition: padding-left var(--transition-fast);
}

.skill-category li:hover {
    padding-left: 10px;
    color: var(--primary);
}

.skill-category li:before {
    content: '▹';
    color: var(--primary);
    margin-right: 10px;
    transition: margin-right var(--transition-fast);
}

.skill-category li:hover:before {
    margin-right: 15px;
}

/* =====================================================
   EDUCATION CARDS
   ===================================================== */
.edu-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.edu-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.edu-card .text-primary {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-card p {
    margin-bottom: 0;
    color: var(--text-gray);
}

/* =====================================================
   BUTTON STYLES
   ===================================================== */
.btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--bg-dark);
}

.btn-outline-light {
    border: 2px solid var(--text-white);
    background: transparent;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* =====================================================
   BADGE STYLES
   ===================================================== */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
    color: var(--bg-dark);
}

.badge.bg-danger {
    background: var(--danger) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-gray);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* =====================================================
   FORM STYLES (Login, Register, Dashboard)
   ===================================================== */
.form-control,
.form-select {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-input {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: var(--text-gray);
}

/* =====================================================
   TABLE STYLES
   ===================================================== */
.table {
    color: var(--text-white);
}

.table-dark {
    background-color: var(--bg-light);
}

.table-dark th {
    background-color: var(--bg-darker);
    color: var(--primary);
    border-bottom-width: 1px;
    font-weight: 600;
}

.table-dark td {
    color: var(--text-gray);
    border-color: var(--border-color);
}

.table-dark.striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* =====================================================
   MODAL STYLES
   ===================================================== */
.modal-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.modal-title {
    color: var(--primary);
}

.btn-close-white {
    filter: invert(1);
}

/* =====================================================
   ALERT STYLES
   ===================================================== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #48c774;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #f86c6c;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd666;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #5bc0de;
    border-left: 4px solid var(--info);
}

/* =====================================================
   AVATAR STYLES
   ===================================================== */
.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 15px;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bg-dark);
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.1) 50%, var(--bg-card) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
/* Tablet */
@media (max-width: 992px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .solution-card h3 {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .display-1 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-badge {
        font-size: 0.75rem;
    }
    
    .timeline-card {
        padding: 1rem;
    }
    
    .timeline-card h3 {
        font-size: 1.1rem;
    }
    
    .solution-card,
    .lab-card {
        padding: 1.25rem;
    }
    
    .solution-card i,
    .lab-card i {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .display-1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .timeline-card {
        padding: 0.875rem;
    }
    
    .solution-card,
    .lab-card {
        padding: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
    
    .mt-4 .badge {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-lg {
    border-radius: 16px;
}

.rounded-xl {
    border-radius: 20px;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* Print Styles */
@media print {
    .navbar,
    .social-links,
    .btn,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .timeline-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}