:root {
    --bg-dark: #0a0a0f;
    --neon-blue: #00f3ff;
    --neon-blue-dim: rgba(0, 243, 255, 0.2);
    --neon-purple: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, var(--neon-blue-dim), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(112, 0, 255, 0.15), transparent 25%);
    background-attachment: fixed;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Mouse follow glow */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0 0 20px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Main Layout */
main {
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    margin-bottom: 8rem;
}

/* Section Shared */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* offset for navbar */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title span {
    color: var(--neon-blue);
    font-weight: 300;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.gradient-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

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

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.glass-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    backdrop-filter: blur(5px);
}

.primary-btn {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-blue-dim);
}

.primary-btn:hover {
    box-shadow: 0 0 25px var(--neon-blue);
    transform: translateY(-2px);
}

.secondary-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px var(--neon-blue-dim);
    transform: translateY(-2px);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.floating-img {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.4));
}

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

/* About Section */
.about-container {
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), transparent);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neon-blue);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.tech-tag:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.project-tech {
    list-style: none;
    display: flex;
    gap: 1rem;
    color: var(--neon-blue);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: monospace;
}

/* Leadership Section */
.leadership-timeline {
    position: relative;
    padding-left: 3rem;
}

.leadership-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--neon-blue);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--neon-blue);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--neon-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
}

.footer-content {
    padding: 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Leadership Layout */
.leadership-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}
.leadership-text {
    flex: 1;
    padding: 2.5rem;
    border-radius: 20px;
}
.leadership-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.leadership-image {
    flex: 1;
}

/* Certificates Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.cert-card {
    display: block;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
}
.cert-content h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: text-shadow 0.4s ease;
}
.cert-content p {
    font-size: 0.9rem;
    color: var(--neon-blue);
    font-weight: 600;
}
.cert-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-blue-dim), 0 0 30px rgba(0, 243, 255, 0.4);
    border-color: var(--neon-blue);
}
.cert-btn:hover .cert-content h3 {
    text-shadow: 0 0 8px #fff;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 150px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .gradient-text {
        font-size: 3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
}

/* Project Image Updates */
.project-image-wrapper { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; overflow: hidden; border-radius: 12px; background: rgba(0,0,0,0.3); }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-img { transform: scale(1.05); }

/* Social Media & Networking */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 1001;
    background: var(--glass-bg);
    padding: 1rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.1);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Specific Brand Colors & Glow Effects */
.social-icon.linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.5);
    color: #0077b5;
}

.social-icon.github:hover {
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.social-icon.dicoding:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 20px var(--neon-blue-dim);
    color: var(--neon-blue);
}

.social-icon.instagram:hover {
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.5);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon.tiktok:hover {
    border-color: #ff0050;
    box-shadow: -3px 5px 15px rgba(0, 242, 254, 0.4), 3px 5px 15px rgba(255, 0, 80, 0.4);
    text-shadow: 2px 2px 0px #ff0050, -2px -2px 0px #00f2fe;
    color: #fff;
}

/* Footer Socials Overrides */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials .social-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
}

/* Responsive Hide for Sidebar */
@media (max-width: 900px) {
    .social-sidebar {
        display: none;
    }
}
