/* Reset dan Variabel */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #00ff00;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --gradient-1: linear-gradient(45deg, #000000, #1a1a1a);
    --gradient-2: linear-gradient(45deg, #00ff00, #00cc00);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--secondary-color);
    margin-top: 20px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Welcome Section */
.welcome-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-1);
    padding-bottom: 0;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: linear-gradient(180deg, transparent, var(--accent-color));
    animation: matrix 20s linear infinite;
}

.welcome-content {
    text-align: center;
    z-index: 1;
}

.glitch {
    font-size: 5em;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.subtitle {
    font-size: 1.5em;
    margin: 20px 0;
    color: var(--accent-color);
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.tech-stack i {
    font-size: 2.5em;
    transition: transform 0.3s ease;
}

.tech-stack i:hover {
    transform: scale(1.2);
}

/* Profile Section */
.profile-section {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--gradient-1);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-image {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover .profile-overlay {
    opacity: 1;
}

.profile-stats {
    text-align: center;
}

.stat {
    margin: 15px 0;
}

.stat i {
    font-size: 2em;
    color: var(--accent-color);
}

.stat span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    margin: 5px 0;
}

.profile-info h2 {
    font-size: 3em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.8em;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Skills Section */
.skills-section {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--gradient-1);
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.skill-header i {
    font-size: 2em;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.skill-level {
    background: var(--gradient-2);
    height: 100%;
    border-radius: 10px;
    text-align: right;
    padding-right: 10px;
    color: var(--primary-color);
    font-weight: bold;
    animation: fillBar 2s ease-out;
}

/* Stats Section */
.stats-section {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--gradient-1);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card:hover::after {
    opacity: 0.1;
}

.stat-card i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.counter {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
}

/* About Section */
.about-section {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--gradient-1);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.interest-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
}

.interest-card i {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--gradient-1);
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-card:hover::before {
    opacity: 0.1;
}

.contact-card i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.contact-card p {
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.contact-button i {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes matrix {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
}

@keyframes fillBar {
    from { width: 0; }
}

/* Update Stats Section */
#projectCount {
    font-size: 3em;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Section Headers Styling */
section h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .glitch {
        font-size: 3em;
    }

    .tech-stack {
        flex-wrap: wrap;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

.experience-text {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
} 