/* Base Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0b1120;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-glow: #00f0ff;
    --card-bg: rgba(15, 23, 42, 0.6);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 30%, #172554 0%, var(--bg-color) 60%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: flex-end; /* Ini yang membuat menu ke kanan */
    align-items: center;
    padding: 30px 10%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-glow);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.greeting {
    font-family: 'Fira Code', monospace;
    color: var(--accent-glow);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Efek kursor berkedip untuk animasi typing */
.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 1s step-end infinite;
    color: var(--accent-glow);
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 800px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-glow);
    color: #000;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.9);
}

/* Tech Stack Section */
.tech-stack {
    text-align: center;
    padding: 40px 20px 80px;
}

.tech-stack h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.stack-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Glowing borders */
.card.python { border-color: #ffd43b; box-shadow: 0 0 15px rgba(255, 212, 59, 0.2); color: #ffd43b; }

.card:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    .stack-cards {
        gap: 15px;
    }
    .card {
        padding: 15px 20px;
        font-size: 2rem;
    }
}

/* --- ABOUT PAGE STYLES --- */
.about-section {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 10%;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-content h1 {
    margin-bottom: 30px;
    text-align: left;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kotak placeholder untuk foto kamu */
.image-box {
    width: 350px;
    height: 450px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent-glow);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Responsive untuk HP (Tumpuk ke bawah) */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 40px 5%;
    }
    .about-content h1, .about-content .greeting {
        text-align: center;
    }
}

/* --- PORTFOLIO PAGE STYLES --- */
.portfolio-section {
    padding: 40px 10% 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.portfolio-section h1 {
    margin-bottom: 10px;
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

.project-img-placeholder {
    height: 200px;
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.project-card:hover .project-img-placeholder {
    color: var(--accent-glow);
}

.project-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--accent-glow);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
}

.project-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    color: var(--accent-glow);
}

/* Responsive adjust untuk HP */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 40px 5%;
    }
}

/* --- CONTACT PAGE STYLES --- */
.contact-section {
    padding: 40px 10% 80px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
    line-height: 1.6;
}

.contact-container {
    display: flex;
    gap: 50px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-glow);
    background-color: rgba(0, 240, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input,
.input-group textarea {
    background-color: rgba(11, 17, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.submit-btn {
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Responsive adjust untuk HP */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 30px 20px;
    }
}