/* CSS Reset and Variables */
:root {
    --bg-color: #05050A; /* Extremely dark blue-black for space vibe */
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    
    /* Neon Accents */
    --accent-cyan: #00F0FF;
    --accent-purple: #B200FF;
    --accent-magenta: #FF0055;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere Layer */
.hologram-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.top-orb {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
    animation: drift 20s infinite alternate;
}

.bottom-orb {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -50px;
    right: -100px;
    animation: drift-reverse 25s infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes drift-reverse {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -50px); }
}

/* Global Typography & Utilities */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

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

.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 150px;
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(178, 0, 255, 0.6);
}

/* About Section */
.about-content {
    padding: 4rem;
    text-align: center;
}

.about-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item.highlight h3 {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Projects Section */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.project-card {
    flex: 1 1 300px;
    max-width: 380px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
}

.highlight-card {
    border-color: rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.project-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #101018; /* fallback */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.tech-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.tech-tag.highlight {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
}

.contact-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-purple);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .nav-links { display: none; /* Add hamburger menu if needed */ }
    .about-content { padding: 2rem; }
}

/* Case Study Page Styles */
.case-study-page .navbar { background: rgba(5, 5, 10, 0.95); }
.cs-hero { min-height: 40vh; padding-top: 150px; padding-bottom: 50px; text-align: center; }
.cs-content { margin-bottom: 100px; max-width: 900px; }
.cs-section { margin-bottom: 3rem; }
.cs-heading { font-family: var(--font-heading); font-size: 2.2rem; color: var(--accent-cyan); margin-bottom: 1.5rem; }
.cs-subheading { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1rem; margin-top: 1rem; }
.text-panel { padding: 2.5rem; margin-bottom: 1.5rem; text-align: left; }
.text-panel p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.2rem; }
.styled-list { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.styled-list li { color: var(--text-muted); padding: 0.5rem 0; position: relative; padding-left: 1.5rem; }
.styled-list li::before { content: '?'; color: var(--accent-purple); position: absolute; left: 0; top: 0.5rem; font-size: 0.8rem; }
.cs-image-wrapper { margin: 2rem 0; text-align: center; }
.cs-image { max-width: 100%; border-radius: 12px; border: 1px solid var(--glass-border); display: block; margin: 0 auto; }
.image-caption { font-size: 0.9rem !important; color: var(--text-muted); margin-top: 0.8rem; text-align: center; font-style: italic; }
.cs-footer { text-align: center; margin-top: 4rem; margin-bottom: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }


/* About Section Grid & Photo Styles */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.about-image-wrapper { position: relative; border-radius: 30px; overflow: visible; display: flex; justify-content: center; align-items: center; }
.profile-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
    filter: contrast(1.1) saturate(1.1);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.profile-photo:hover { transform: scale(1.02); }
.image-glow { position: absolute; width: 110%; height: 110%; background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple)); filter: blur(40px); opacity: 0.3; z-index: 1; border-radius: 50%; }
.about-text-content { padding: 3rem; text-align: left !important; }
.about-text-content p { max-width: none !important; margin-left: 0 !important; }
.stats { justify-content: flex-start !important; gap: 3rem !important; }
@media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; } .about-image-wrapper { order: 1; } .about-text-content { order: 2; padding: 2rem; } .stats { justify-content: center !important; } .profile-photo { max-width: 300px; } }


/* Consolidated Language Switcher Styles */
body.lang-id .lang-en, body.lang-id .lang-en-placeholder { display: none !important; }
body:not(.lang-id) .lang-id, body:not(.lang-id) .lang-id-placeholder { display: none !important; }

.lang-btn { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--accent-cyan); 
    padding: 2px;
    border-radius: 6px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease;
    width: 45px;
    height: 30px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

.lang-btn:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(178, 0, 255, 0.4);
}

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3px;
    display: none;
}

/* Visibility based on active language */
body.lang-id .id-flag { display: block; }
body:not(.lang-id) .en-flag { display: block; }

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.cert-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--glass-border);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Best for certificates to not cut off info */
    transition: transform 0.5s ease;
    padding: 10px;
}

.cert-card:hover .cert-img {
    transform: scale(1.1);
}

.cert-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-info h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}
