:root {
    /* Futuristic Color Palette */
    --primary-cyan: #00ffff;
    --electric-blue: #0080ff;
    --matrix-green: #00ff41;
    --neon-purple: #8b00ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #606060;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan), var(--electric-blue));
    --gradient-secondary: linear-gradient(135deg, var(--matrix-green), var(--neon-purple));
    --gradient-accent: linear-gradient(135deg, var(--neon-purple), var(--primary-cyan));
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hard: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Default link styling */
a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-cyan);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-flags {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.flag-container {
    position: relative;
    width: 60px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    border: 2px solid var(--primary-cyan);
    transition: all 0.3s ease;
}

.flag-container:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

.flag-indonesia {
    background: linear-gradient(to bottom, #ff0000 50%, #ffffff 50%);
}

.flag-palestine {
    position: relative;
    background: linear-gradient(to bottom, #000000 33%, #ffffff 33%, #ffffff 66%, #00c853 66%);
}

.flag-palestine::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: 20px solid #ff0000;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 255, 0.1);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface);
    border-radius: 15px;
    padding: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-cyan);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-name {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.typing-text {
    color: var(--matrix-green);
    border-right: 2px solid var(--matrix-green);
    padding-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--matrix-green); }
    51%, 100% { border-color: transparent; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-cyan);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease 1.3s forwards;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.social-links {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

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

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.info-card {
    background: var(--surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: fit-content;
    min-height: 280px;
}

.info-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.info-card h4 {
    font-family: var(--font-primary);
    color: var(--matrix-green);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-cyan);
}

.info-list strong {
    color: var(--primary-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-list span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    word-break: break-word;
}

.info-list .email-span {
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-card {
    background: var(--surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px var(--primary-cyan);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -60px;
}

.timeline-date {
    font-family: var(--font-primary);
    color: var(--matrix-green);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-company:hover {
    color: var(--primary-cyan);
}

.timeline-company-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.timeline-company-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: var(--surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-category h3 {
    font-family: var(--font-primary);
    color: var(--matrix-green);
    margin-bottom: 20px;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.skill-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-item:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.skill-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.1);
    padding: 8px;
    transition: all 0.3s ease;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2) saturate(1.1);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.skill-item:hover .skill-icon img {
    filter: brightness(1.4) saturate(1.3);
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.skill-level {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.3);
}

.skill-dot.active {
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 3rem;
    color: var(--matrix-green);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: var(--surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.tool-card:hover::before {
    transform: scale(1);
}

.tool-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.tool-card.coming-soon {
    opacity: 0.7;
}

.tool-card.coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tool-info h3 {
    font-family: var(--font-primary);
    color: var(--primary-cyan);
    margin-bottom: 5px;
}

.tool-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.tool-features {
    list-style: none;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.tool-features li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tool-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--matrix-green);
    font-size: 0.8rem;
}

.tool-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-tool {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    background: transparent;
}

.btn-tool:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn-tool.primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
}

.btn-tool.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 50px 0 30px;
    text-align: center;
    border-top: 1px solid var(--surface);
}

.footer-content {
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-card {
        min-width: 100px;
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
    }

    .timeline-card::before {
        left: -30px !important;
    }

    .social-links {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
    }

    .skills-grid,
    .services-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.3s ease;
}